没有合适的资源?快使用搜索试试~ 我知道了~
Zebra shell Command Line Interface.pdf
4星 · 超过85%的资源 需积分: 15 37 下载量 99 浏览量
2012-11-16
13:41:29
上传
评论 1
收藏 23KB PDF 举报
温馨提示
试读
7页
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);
资源评论
- zhangyh19862013-04-26刚好下了ZEBRA的源码,学习下了
- michael_212013-12-17不错,很强大~但是功能有点臃肿
- luoyue6252013-10-30虽然是规范文档,但是有的地方说得还是不是非常明了!
- hellowaichan2014-05-06不怎么可以用
一琳10
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功