VR|網工必備命令:思科、華為、H3C交換機巡檢命令全收錄

VR|網工必備命令:思科、華為、H3C交換機巡檢命令全收錄

當我們想要查看交換機配置是否正確 , 不可能將每條命令都看一遍 , 畢竟數據龐大 , 這時候就需要精準使用交換機的巡檢命令 , 下面我們來介紹一下幾個常見廠商的巡檢命令

思科1、show interface stats:查看交換機所有接口當前接口流量
2、show running-config:查看當前設備配置
3、show version:查看IOS版本信息及設備正常運行時間
4、show clock:查看設備時鐘信息
5、show vtp status:查看交換機vtp配置模式
6、show vtp password:查看交換機vtp配置口令
7、show env all:查看設備溫度 , 電源和風扇運轉參數及是否報警
8、show inventory:調取設備內部板卡出廠模塊型號及序列號
9、show spanning-tree root:查看交換機生成樹根位置
10、show cdp neighbors:查看鄰接cisco設備基本信息
11、show cdp neighbors detail:查看鄰接cisco設備詳細信息
12、show interface status:查看交換機接口狀態是否存在errordisable接口disable接口
13、show interface summary:查看交換機所有接口當前接口流量
14、show interface |ierrors|FastEthernet|GigabitEthernet:查看接口是否存在大量input或output errors包錯誤
15、show processes cpu:查看設備cpu負載
16、show processes mem:查看設備mem負載
17、show access-list:查看訪問控制列表配置及匹配數據包數量
18、show logging:查看本機內部日志記錄情況
19、show ip route:查看路由表
20、show firewall:檢查防火墻的工作模式
21、show conn count:檢查防火墻并發數
22、show xlate count:檢查防火墻nat工作狀態
華為/H3C交換機常用巡檢命令system-view #進入系統視圖
user-interface vty 0 4 #vty就是用telnet/ssh遠程進入交換機的界面(虛擬界面)
screen-length 0 #指定要在屏幕上顯示行數 , 0默認是沒有分頁(全部顯示)
01 硬件狀態、IOS版本信息檢查
display?clock? #系統時間
display?version?#查看版本信息 , 最近一次重新啟動的時間
display?enviroment?#設備溫度
display?device?#單板運行狀態
display?device manuinfor #查看設備序列號
display?power?#查看電源狀況
display?fan? #查看風扇狀況
display?cpu-usage? #查看cpu最近5S、1m、5m占用率
display?cpu?history?#查看cpu使用記錄
display cpu-usage task #查看CPU利用率
display?memory? #查看內存大小和占用率
display logbuffer #日志緩沖區
dir flash: #查看flash
dis boot-loader #顯示軟件映像文件
display arp #查看arp表(目的IP與目的MAC的映射關系)
display mac-address #查看mac地址表(二層轉發通過mac地址表)
【VR|網工必備命令:思科、華為、H3C交換機巡檢命令全收錄】display ntp status #ntp狀態信息
reset counters interface #清除接口統計信息 , 方便下次巡檢查看接口錯誤包是否增加
display elabel #路由器設備命令—查看電子標簽信息(華為)改用display device manuinfo
display ndp #路由器設備命令—華三V5版本支持 , 現在改用display lldp neighbor-information
display diagnostic-information #故障信息收集
02 系統運行配置狀態檢查
display interface #接口流量、鏈路狀態
dis current-configuration inter #地址分配
dis current-configuration |include ospf #路由擴散
display ip routing-table #路由信息
display ip interface #顯示 vlan 端口統計數據
display saved-configuration #保存配置文件
display logbuffer #日志信息
display port trunk #查看參與 trunk 的端口
03 STP 信息檢查

相關經驗推薦