再就是登录设备,运行巡检命令,对设备进行巡检,查看设备运行是否有异常。下面附上整理的华为、华三、思科、锐捷等设备的常用巡检命令,方便大家查阅。因设备型号、版本差异,可能部分命令无法执行,可以通过tab键补全查看支持的命令。 运行巡检命令后,还需要查看设备是否异常,有些因业务使用变化较大的参数,还需要多次运行巡检命令,巡检的数据才相对准确,比如CPU、内存利用率,接口占用率,因隔几秒钟运行一次,并运行多次,从而获取比较准确的巡检数据,下面大概说一下常用的正常异常数值:
华为screen-length 0 temporary 取消分页 display esn 查看设备的序列号 display version 查看版本 display cpu-usage 查看CPU利用率 display memory-usage 查看内存利用率 display device 查看设备部件及状态 display fan 查看风扇状态 display power 查看电源信息 display temperature all 查看所有单板温度 display alarm all 查看硬件告警 display current-configuration 查看设备当前生效的配置 display ip interface brief 查看接口IP简要信息 display transceiver 查看光模块信息 display ospf peer 查看OSPF邻居信息 display bgp peer 查看BGP对等体 display ip routing-table 查看路由表 display arp 查看arp信息 display vlan 查看vlan信息 display clock 查看日期时钟 display logbuffer 查看日志 display lldp neighbor brief 查看邻居设备的概要 display license 查看license 华三
思科terminal length 0 取消分页 show version 查看版本 show clock 查看设备时钟信息 show inventory 查看板卡模块型号及SN show environment all 查看设备温度、电源和风扇运转参数 show license 查看license show startup-config 查看启动配置 show running-config 查看运行配置 show vlan 查看vlan show ip arp 查看arp show spanning-tree 查看生成树 show mac-address-table 查看mac地址表 show interface stats 查看接口状态 show interface summary 查看接口流量 show interfaces transceiver 查看光模块信息 show ip interface brief 查看ip接口信息 show ip ospf neighbor 查看OSPF邻居信息 show ip route 查看路由表 show ip bgp summary 查看bgp邻居 show lldp neighbors 查看lldp邻居 show cdp neighbors 查看邻接思科设备信息 show processes cpu 查看设备CPU负载 show processes memory 查看内存负载 show logging 查看日志 show ntp status 查看NTP服务的状态 dir 查看flash空间大小 锐捷
|
|