光纤交换机学习,光衰grep
1.序列号
chassisshow可查看序列号
看CHASSIS/WWN Unit: 1这里,有Factory Serial Num和Serial Num这2段数据(一般是一样的),是设备序列号
2.许可证
licenseshow可查看许可证id
3.查看端口
switchshow可查看对端的wwn号
4.userconfig --add admin -r admin -p password
添加用户admin,-r角色:管理员
passwd admin
修改密码
5.ACS8000串口交换机连接光交设置:针脚输出设置为cisco
6.sfpshow :Brocade查看sfp模块光信号强度方法
============= Slot 1/Port 0: ============= Identifier: Connector: Transceiver: Encoding: Baud Rate: Length 9u: Length 9u: Length 50u (OM2): Length 50u (OM3): Length 62.5u: Length Cu: Vendor Name: Vendor OUI: Vendor PN: Vendor Rev: Wavelength: Options: BR Max: BR Min: Serial No: Date Code: DD Type: Enh Options: Status/Ctrl: Pwr On Time: E-Wrap Control: O-Wrap Control: Alarm flags[0,1] = 0x5, 0x0 Warn Flags[0,1] = 0x5, 0x0 Temperature: 33 Centigrade Current: Voltage: RX Power: -3.4 dBm (455.8uW) TX Power: -2.6 dBm (549.3 uW) State transitions: 1 Last poll time:
查看光衰:
sfpshow -all | grep -e RX -e TX -e Port
sfpshow -all | grep -i rx
RX Power: -19.2 dBm (12.1 uW) RX Power: -14.5 dBm (35.2 uW) RX Power: -18.2 dBm (15.1 uW) RX Power: -18.7 dBm (13.4 uW) RX Power: -20.9 dBm (8.2 uW) RX Power: -20.5 dBm (8.9 uW) RX Power: -13.7 dBm (43.0 uW) RX Power: -14.2 dBm (37.7 uW) RX Power: -13.4 dBm (46.2 uW) RX Power: -14.6 dBm (35.0 uW) RX Power: -19.7 dBm (10.7 uW)
grep文本处理,过滤工具 grep的常见选项 -i 忽略大小写 -A 显示匹配后和它后面的n行。 -B 显示匹配行和它前面的n行。
正则表达式:
[xyz] 字符集合。匹配所包含的任意一个字符。例如,“[abc]”可以匹配“plain”中的“a”。
[a-z] 字符范围。匹配指定范围内的任意字符。例如,“[a-z]”可以匹配“a”到“z”范围内的任意小写字母字符。
获取光衰过大:
sfpshow -all | grep -E -i 'rx power: -4\.[1-9]' -B 37
sfpshow -all | grep -E -i 'rx power: -[5-9]' -B 37
sfpshow -all | grep -E -i 'rx power: -1[0-9]' -B 37
sfpshow -all | grep -E -i 'rx power: -2[0-9]' -B 37
sfpshow -all | grep -E -i 'rx power: -3[0-9]' -B 37
sfpshow -all | grep -E -i 'rx power: -4[0-9]' -B 37
sfpshow -all | grep -E -i "tx power: -4[0-9]" -B 38
posted on 2020-06-12 11:31 vanspumakappa 阅读(2881) 评论(0) 编辑 收藏 举报