首页 > 其他 > 详细

工作笔记整理

时间:2019-04-10 15:33:10      阅读:153      评论:0      收藏:0      [点我收藏+]

1. 利用my_message_from_json调用将json转化成proto message,则json中的bool类型一定要是true或者false,不能是1或者0;同时,option类型的string字段,没有使用时json中该字段填空串或者不传这个字段,不能传NULL,否则会转化失败。

1.1. 查看端口地址:ovsdb-client dump Port ip4_address ip6_address name

1.2. 查看下发到芯片上的vlan信息:bcmsh vlan show

1.3. 后台查看mlag状态: telnet 127.0.0.1 20099 

1.3. 查看sw_config_sevd下发的内容: telnet 127.0.0.1 18687 

1.3. 查看dhcp信息: telnet 127.0.0.1 10067 

1.4. 出现这种提示一般都是因为switch_confd挂掉了

       技术分享图片

1.5. switch_confd配置下发时,当vytsh执行成功,会在/var下面创建标记文件vtysh_flag_file

1.6. 查看一个端口的运行时配置

Sundray-SW / #vtysh
log_wns params null, wns_log_size 512000
[main /home/wns/source/wns/apps/openswitch_ori/ops-cli/vtysh/vtysh_main.c:536]wns_log_enable success.
[main /home/wns/source/wns/apps/openswitch_ori/ops-cli/vtysh/vtysh_main.c:544]count=0

(none)# show running-config interface ge3
interface ge3
   no shutdown
   speed 1000
    qos cos 0
    no routing
    vlan trunk native 1
    vlan trunk allowed 15,1-4 clean-other
   exit

 

1.8. swich_confd的日志文件: /var/switch_confd_main.log   /var/log/openswitch/ovsdb-err.log 

1.9. 交换机备份配置

技术分享图片

恢复默认配置:

技术分享图片

 

1.10 使用分组配置需要配置vlanif 静态路由 和 DNS

 

2. cgi中使用多层IPC(注意,js调用本身会消耗一个IPC)

1 g_is_multi_ipc_flag = 1;
2 ret = multi_wns_ipc_init();
3 if (0 != ret){
4     goto error;
5 }
6 if (g_is_multi_ipc_flag){
7     wns_ipc_uninit();
8 }

 

工作笔记整理

原文:https://www.cnblogs.com/fallenmoon/p/10683424.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!