没有合适的资源?快使用搜索试试~ 我知道了~
首页Zebra shell Command Line Interface.pdf
Zebra shell Command Line Interface.pdf

Zebra CLI Actual Zebra Command Skeleton Zebra shell Command DEFUN Macro ALIAS Macro Zebra shell Command Syntax Description
资源详情
资源评论
资源推荐

Zebra shell Command Line Interface
Zebra CLI
The Zebra shell Command Line Interface is comprised of several components. This interface aggregates control for
the many daemons and processes that use CLIs into one shell, collecting all commands into a command tree.
Commands throughout Zebra shell, therefore, must have unique names.
Actual Zebra Command
This command shows the basic structure of a command. (ex. vtysh/user_llp.c) Complete details of the function
body are omitted for brevity.
DEFUN( setSAToPChan,
setSAToPChan_cmd,
"set satop <1-8> clock (internal|adaptive|differenial) cdv <2000-32000>",
"Set SAToP Service"
"SAToP option"
"Number of Service : 1 ~ 8"
"Clock option\n"
"Internal(Synchronous) Clock Mode"
"Adataive(Asynchronous) Clock Mode"
"Differential(Asynchronous) Clock Mode"
"CDV(Cell Delay Variation) option"
"CDV Size: 2000us ~ 32000us")
{
....
/*** function body ***/
if (!ok)
return CMD_WARNING;
return CMD_SUCCESS;
}
In the user_llp.c file, the following function installs the “set satop <1-8> clock (internal|adaptive|differenial) cdv
<2000-32000>" command:
/* CLI init functions. */
void reg_element_llp (void)
{
install_element (ENABLE_NODE, &setSAToPChan_cmd);
install_element (ENABLE_NODE, &setSAToPChanStatus_cmd);
install_element (ENABLE_NODE, &configure_tdmInterface_cmd);


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论4