內容來自星球成員馬磊分享,感謝分享

H3C交換機:
screen-length disable
display version
display current-configuration
display cpu
display memory
display clock
display device
display device manuinfo
display power
display fan
display environment
display tcp status
display tcp statistics
display stp region-configuration
display irf configuration
display irf link
display irf topology
display stp root
display arp
display mac-add
display lldp neighbor-information list
display stp brief
display stp abnormal
display ndp
display ospf peer
display ospf inter
display interface
display logbuffer
dis boot-loader
display ip routing-table
display ip interface
display ip interface brief
display startup
display boot-loader
display link-aggregation verbose Bridge-Aggregation 901
display link-aggregation summary
display logbuffer reverse
more flash:/logfile/logfile.log
進入probe模式關閉8號板卡電源
probe
debug sysm power-down slot 8
display process cpu slot 9
F5設備
F5-console波特率19200
bigpipe failover:檢查是active還是standby狀態
bigpipe version:查看系統版本
bigpipe list:顯示設備基本清單
bigpipe base :顯示配置
bigpipe interface show:檢查端口狀態
bigpipe service show:檢查服務狀態
bigpipe self show:檢查網絡設置
bigpipe global show:全局變量
bigpipe internal show:內部設置
bigpipe trunk show:查看trunk
bigpipe stp show:查看STP狀態
bigpipe summary:查看系統總體運行情況統計
bigpipe ms:內存使用情況
bigpipe virtual show:檢查virtual server情況
who -aH :查看登錄信息
b platform :顯示設備平臺信息
顯示設備日志信息:
cat /var/log/messages
cat /var/log/bigip
cat /var/log/bigd
date :顯示系統時間
收集/var/log下日志:root登錄#tar cvzf/var/tmp/$HOSTNAME-log.tar.gz/var/log/*
保存配置:b config save config20140708.ucs(默認保存在/var/local/ucs)
恢復配置:b config install config20140708.ucs
ifconfig -a :接口地址查詢
netstat -rn :路由表查詢
top :查詢系統CPU及內存使用率
bigpipe node monitor show :查詢各節點狀態
bigpipe pool show :查詢Pool中的負載均衡情況
watch b conn :查看當前建立的所有連接(退出請按Ctrl+C)
bigstart status :檢查BIG-IP服務狀態
bigstart list :檢查BIG-IP服務狀態
b config check all :檢查設備配置報告
b failover show :檢測各臺BIG-IP設備的主備工作狀態
bigtop :檢測當前BIG-IP上的連接數量,以及每個對外服務的虛擬服務器的用戶連接數量
b conn :實時監視BIG-IP的連接狀態
b standby show bigtop ;查看雙機狀態
b failover standby ;強制備用
華為交換機:
screen-length 0 temporary
display version
display current-configuration
dir flash:
display debug
display interface
display ip interface
display ip interface brief
display interface brief
display device
display fan
display power
display reboot-info
display environment
display alarm urgent
display vlan all
display cpu-usage
display memory-usage
display mac-address
display logbuffer
display clock
display trapbuffer
display igmp-snooping port-info
display igmp-snooping statistics
display dhcp snooping bind-table all
display mac-address sticky
display startup
display boot-loader
display memory-usage
display cpu-
display acl resource
display ip route
display ip vpn-intance
display ospf peer brif
display ospf peer
display bgp peer
display bgp vpnv4 all brif
display ldp peer all
display ldp adjacency
display lldp nei
display lldp sta
display diagnostic-information
MDS9000光纖交換機:
show run 顯示當前配置
show zone 顯示當前配置的ZONE的信息
show zoneset 顯示當前配置的ZONESET的信息
show interface fc1/1 顯示端口fc1/1信息
show zone activate 顯示當前活動的ZONE信息
show zoneset activate 顯示當前活動的ZONESET信息
show flogi database detail 查看交換機端口連接的HBA卡的WWN號
show license fcports.lic 顯示指定License
show license all 顯示全部license
show license hostid 顯示ID
show vsan 100 瀏覽VSAN100設置
show vsan usage 瀏覽VSAN設置
show zone 瀏覽Zone信息
show zoneset vsan 2-3 瀏覽Zone vsan2-3信息
show zoneset active 瀏覽zone的狀態
show zoneset active detail 端口速率check
show inventory 查看設備序列號
show environment 查看設備環境及硬件狀態
show tech-support 查看設備診斷信息
show logging 查看設備日志
show int bri
show ip int
show hardware
show module
下載配置文件:
switch# copy
://
system:running-config
switch# copy tftp://172.16.10.1/237.img bootflash: 237.img
copy run start 保存當前配置
Eudemon防火墻:
terminal len 0
display ver
display current-configuration
dir
display cpu-usage
display memory-usage
display histroy
display local-user
display interface
display device
display fan
display power
display environment
display zone
display interzone
display acl all
display trapbuffer
display logbuffer
display diagnostic-information:收集診斷信息
display exception 10 verbose history:收集有異常信息
display deadloop 10 histroy:收集死循環信息
display startup-type:查看系統啟動方式信息
display startup
display boot-loader
display device
display fan
display diagnostic-information
---------------------------------------------------------------
show tech-support的分析工具
巡檢命令
GSR 12000:
terminal len 0
show run
show version
show hardware
Show log
Show log summary
show logging | include Mar 10
show logging | include Mar 11
show processes cpu
show process cpu history
show processes memory
show LED
Show context summary
show hw-module subslot all oir
show hw-module all sensors
show hw-module all fpd
show environment all
show environment led
show environment power
show environment fan
show environment temperature
show standby bri
show ip osp nei
show ip osp int bri
show ip bgp vpnv4 all summ
show redundancy all
Show redundancy state
Dir all
Show clock
show gsr chassis-info
show diag
show diag detail
show inventory
show monitor event-trace lci
show monitor event-trace fab
show monitor event-trace agent-ctrl
show monitor event-trace board_mgr
show monitor event-trace slot –state X
show controller errors fabric
show controller errors fabric counters
show controller xbar
show controllers sca
show controllers clock
show controllers fab-clk
show controllers fia
show controllers fia register
show context all
show fabric
show mbus counters
show mbus can-error
execute-on all show controller fia
show ip int bri
show ip vrf
show ip bgp vpnv4 all summ
show ip os nei
show ip vrf
show ip route vrf BSS summary
show ip route vrf BSS ospf
show ip vrf BSS
show ip arp vrf BSS
show process cpu History
ASR 9K
show mem summary
CISCO7200:
terminal len 0
show run
show ver
show logging
show logging | include Mar 10
show logging | include Mar 11
show clock
show processes cpu
show processes memory
show context
show environment all
show ip int bri
show ip vrf
show int
dir all
show ip ospf nei
show ip route summ
show bgp vpnv4 unicast all summa
show ip route all
show cdp nei
show inventory
show standby brief
show c7200
show inter
show diag
show tech-support
CISCO7600:
terminal len 0
show ver
show run
show processes cpu
show processes memory
show context
show environment alarm
show environment status
show environment temperature
show ip int bri
show ip vrf
show int
dir all
show ip ospf nei
show ip ospf interf
show ip ospf interf brief
show ip bgp summ
show ip bgp vpnv4 all summ
show ip route all
show cdp nei
show idprom all
show inventory
show module
show standby brief
show arp
show arp summ
show ip arp summ
show mac-address
show logging
show logging | include Mar 7
show clock
show inter
show diagbus
show tech-support
-----------------------------------------------------------------
catos6509:
terminal len 0
show run
show config all
show version
show logg buff
Show log
show logging | include Mar 22
show logging | include Mar 11
show proc cpu
show proc mem
Show environment all
show envi temper
show envir power
Show module
show port
show cam dynamic
show vlan
Dir all
Show time
debug platform packek all count
show platform cpu packet statistics
show int statu err-dis 查看err出發原因
Show tech
————————————————————————————————
CSICO6509:
terminal len 0
show run
show version
Show logg
Show clock
show processes cpu
show processes memory
Show environment alarms
Show environment sta
show environment temperature
Show context
Show module
Show idprom all
show controllers
show idb
Dir all
show interf
show ip int bri
show int summ
show ip protocols
show standby bri
show ip ospf nei
show ip ospf int bri
show cdp nei
show cdp nei de
show ip route
show vlan bri
show inv
show arp
show ip arp summa
show mac-address-table count
show mac-add
Show tech
CISCO 3750 、3550
show version
show inventory
show processes cpu
show processes memory
show clock
show standby
show int status
show ip int b
show vlan bri
show int
show arp
show mac-a
show run
show env all
show logg
show logging | include Mar 10
show logging | include Mar 11
show tech
CISCO PIX:
terminal len 0
show ver
show runn
show cpu usage
show memory detail
show processes memory
show module
show memory
show conn cou
show xlate count
show failov
show clock
show ntp sta
show inter
show logging
show logging | include Mar 10
show logging | include Mar 11
show traffic
show ip address
show nameif
show environment fans
show environment power
show environment
show tech
ASA5580:
terminal len 0
show runn
show ver
show clock
show nameif
show inventory
show mode
show modu
show resource usage
show asp drop
show conn count
show xlate count
show firewall
show perfmon detail
show ip audit count
dir all
show arp
show interface
show cpu usa
show processes cpu-usage
show mem
show debug
show access-list
show logging
show logging | include Mar 10
show logging | include Mar 11
show failover
show traffic
show int ip brief
show ip add
show run nat
show run global
show environment driver
show environment fans
show environment power-supplies
show environment temperature
show tech-support
clear access-list ACL_OUT contuear
中興M6000路由器:
terminal len 0
show running
show version
show software
show hardware
show fan
show power
show opticalinfo
show logfile
show logging alarm
show temperature detail
show processor
show ip interface brief
show interface
show sysnchronization
show nvram
show clock
show running-config adm-mgr
show running-config oam
show interface description
show ftp-server
dir
show ip forwarding route
show ip protocol routing
show ip interface brief
show ip vrf
show interface
show ip ospf neighbor
show ip ospf neighbor detail
show ip bgp summary
show bgp all summary
show ip forwarding route
show ip protocl routing summary
show ip bgp vpnv4 all summary
show ip bgp neighbors
show ip bgp vpnv4 all neighbors
show mpls interfaces all
show mpls ldp neighbor all
show mpls ldp discovery
show ip arp vrf SC_scteloa
show ip protocol routing vrf SC_sctelbilling
中興T40G
terminal len 0
Show run
Show version
Show processor
show vlan
show monitor session all
show traffic-statistics 對端口流量進行統計
show bootrom
show logging alarm
Show ip ospf nei
Show ip bgp sum
Show interface
Show ip interface br
show interface brief
Show mac
Show mac interface
show logging alarm
show logfile 查看操作記錄
show power
show fan
show flash-info
show clock
dir
ZXR10:
show run
show ver
show processor
show vlan
show ip protocol routing
show ip protocol routing summary
show ip int bri
show logging alarm
show logfile
show ip route
show power
show fan
show flash-info
show monitor session all
show clock
dir
juniper巡檢命令:
terminal len 0
show system uptime | no
show version | no
show chassis hardware detail | no
show chassis routing-engine | no
show chassis fpc pic-status | no
show chassis craft-interface | no
show pfe statistics error | no
show chassis alarms | no
show system storage | no
show log messages | no | last 200
show configuration | display set | no
show interfaces extensive | no
juniper netscreen防火墻巡檢命令:
http://wenku.baidu.com/view/9c4e7d8dd0d233d4b14e69e5.html
get chassis:查看設備序列號及其設備硬件(cpu,power,fan)的基本情況
get tech:備份設備整體狀態信息
get memory:查看設備mem的使用情況
get os cost:查看設備cup利用率
get file :查看設備文件系統內容
get system:查看系統基本情況(設備名稱,版本信息,端口狀態,用戶名等)
get nvram :查看NVRAM信息
get route :查看路由表用于協助排錯
get mac-learn :查看學習到的mac地址
get DNS :查看dns server的基本情況以及dns緩存
get arp:查看arp表
get config :查看當前配置文件
get performance:查看CPU的利用率
get performance cpu:查看設備利用率
get performance session
get session:查看并發連接數
get alarm:查看告警
get nsrp:查看failver狀態
juniper SRX 巡檢命令行
show chassis routing-engine CPU利用率核查
show chassis routing-engine MEM利用率核查
show ospf neighbor OSPF鄰居關系核查
show ldp interface LDP端口狀態檢查
show isis adjacency ISIS鄰居關系檢查
show bgp neighbor BGP鄰居關系檢查
show vrrp extensive HSRP信息檢查
生成樹STP信息檢查
show chassis environment pem 電源狀態核查
show chassis environment 風扇狀態核查
show chassis alarms 單板告警核查
show chassis fpc/show chassis fpc pic-status 單板狀態核查
show chassis fpc/show chassis fpc pic-status 單板溫度核查
show chassis fpc detail 單板固件版本信息檢查
show chassis hardware
show configuration interfaces 接口配置核查
show interface descriptions 接口描述規范性核查
show configuration system AAA認證檢查
show configuration chassis redundancy 引擎板冗余狀態檢查
show ntp associations NTP狀態核查
show configuration system syslog SYSLOG配置指向檢查
TRAP配置指向檢查
show configuration | display xml
show configuration | display set
show configuration | display xml
show configuration system login Telnet安全登錄配置檢查
show configuration system name-server DNS配置檢查
show version 補丁版本核查
Show log messages 日志查看
show log dcd
Show security flow traceoptions 正常運行時所有Debug開關應該全部關閉
show security flow session summary
Show groups node0 system host-name
Show system uptime 時間
show system users
Show configuration 配置
Show chassic cluster interfaces 所有的接口都是up狀態
show chassic cluster status 雙機是否正常
Show interface terse 正在使用的接口應為UP或Active。
Show interface X detail 口模式(包括速率、雙工模式)配置對接雙方必須一致
Show interface terse 查看端口狀態
Show route 路由
Show chassis route-engine CPU
Show security flow session summary 連接數
Show security zones 防火墻所屬區域
Show security policies 查看域間應用的訪問策略
流量匹配測試:
show security match-policies protocol tcp from-zone weihu to-zone inside source-ip 10.95.237.66 source-port 8080 destination-ip 10.95.240.9 destination-port 8080
show | match 20150927-linshi | display set
delete security policies from-zone weihu to-zone inside policy 20150927-linshi
show configuration | compare
show | compare檢查配置增加或者刪除
commit check
commit
show | match 20150927-linshi | display set
delete security policies from-zone weihu to-zone inside policy 20150927-linshi
juniper路由交換設備(維護命令):
> request system halt //設備關閉
> request system reboot //設備重啟
> request chassis routing-engine master switch //路由引擎切換
> request system logout //踢掉空閑用戶
> show chassis alarms //機框及引擎告警
> show chassis fpc //查看FPC狀態
> show chassis fpc detail //FPC詳細狀態
> show chassis fpc pic-status //查看PIC狀態
> show chassis environment //環境風扇溫度
> show chassis routing-engine //路由引擎狀態
> show chassis environment cb //控制板狀態
> show chassis environment scg //SCG狀態
> show chassis fpc detail 0 //fpc詳細信息
radware巡檢:
system device info:確認當前設備的版本
system license get:查看當前設備的License
net ip:查看接口地址
net route table:查看路由表
sys os cpu:查看CPU
system inf-stats :查看端口流量
net l2-information :查看2層端口狀態
sys logfile :顯示日志信息
sys hardware temperature-show :查看設備溫度(僅限ODS)
ip servers extended-table :查看服務器的連接數
Appdirector client table :查看LinkProof的會話表
red v v :查看LinkProof雙機冗余狀態
sys config immediate :查看LinkProof的命令全部配置
logout
阿爾卡特7750巡檢
show port
show port 1/1/1
show service service-using
show router 652100003 route-table 133.37.116.223
admin display-config
show router arp
show router arp 133.51.5.1
show router arp ip-int-name
show router 652100000 arp
show router 652100000 ospf interface
show router 652100000 ospf neighbor
show router 652100000 ospf database
show router 652100000 bgp summary
show router 652100000 bgp routes
show router 652100000 bgp routes 133.51.5.1
show router 652100000 static-route
show router 652100000 mpls interface
show router 652100000 mpls status
traceroute router 652100003 133.37.116.223
安氏防火墻巡檢
:FireWall-3600 5.1.A3600.33HVIPD
show version
show license
show login
show hostid
show interface
show arp
show date
show memory
show process
show route
show runningconfig
show system version
show system time
show addressbook address
show arp
show configuration
show interface
show license limits
show license modules
show login user
show modules
show ospf database
show policy
show running-config
show servicebook service
show system modules
show zone
江南科友:
HSM-AUTH3>a
Super/Administer/Worker [S/A/W]:S
Insert the super card1 and enter Pin:******
Insert the super card2 and enter Pin:******
Insert the super card3 and enter Pin:******
HSM-AUTH3>ip
Enter IP address:10.214.0.199
Enter Default Gateway:10.214.0.1
Enter Subnet mask:255.255.255.0
Please wait for ...!
list //顯示加密機自帶的所有終端命令
a //管理員權限
s //super密碼登錄設備
ip //設置加密機IP
ct //添加白名單
qp //查看加密機IP地址、網關和子網掩碼
序列號查詢匯總
設備型號 機箱序列號查看 板卡序列號查看
GSR 12000 show gsr chassis-info show diag
CISCO 7500 show rsp chassis show diag
CISCO 7200 show c7200 show diag
Catalyst 6500 show verison show module
AS5800 show nitro show diag
AS5300 show VER show diag
Catalyst 4000 show verison show module
--------------------------------------------------------------
華為序列號查詢
1、低端交換機支持查看設備
2000HI、2000MI、2000EA、3500EA、3900、5600
display device manuinfo
2、S23/S33/S53/63/93/S27/S37/S57/67/77/97系列交換機
display elable
3、S6500設備
dis lpu manuinfo slotid
4、S8500設備
display manuinfo slotnum slotid
5、S7800設備
display manuinfo slotid
各廠商查看光功率:
Cisco GSR:
POS:
show controllers pos 10/1
GE:
show hw-module subslot 0/0 transceiver 8 status(查看光功率)
show hw-module subslot 0/0 transceiver 8 idprom detail(sn 光功率 頻率)
Cisco 7609:
show int gi1/1 transceiver detail
Cisco CRS:
show controllers gi 0/1/1/0
show controllers sonet 0/1/1/0
HuaWei routers:
display int pos 0/0/0
HuaWei switch:
dispaly transceiver interface gi 1/0/0
display transceiver interface g3/0/10 verbose(光功率)
Juniper router:
show interfaces diagnostics optics xe-21/0/0
Alcatel 7750
show port detail
----------------------------------------------------------------
華為光纖交換機OseanSror SNS 2248 Fabric OS: v7.2.1
version 查看版本
ipfilter --show 查看防火墻列表
chassisshow 查看序列號
ipaddrshow 查看網絡接口設置
switchShow 顯示在當前(邏輯)交換機上的所有端口及其相應的端口區域ID
snmpconfig --show snmpv1
fosconfig --show 顯示是否開啟虛擬Fabric
cfgshow 查看所有zone配置
snmpconfig --show mibCapability
haShow 驗證HA特性是否開啟
fanShow 風扇的當前狀態和速度
psShow 交換機電源當前的狀態
slotShow -m 顯示系統中所有槽位的當前狀態和占用量
portcfgshow 查看交換機的端口信息
trunkshow 查看鏈路聚合信息
licenseshow 確保License已正確安裝
switchstatusshow 查詢交換機整體狀態
sensorshow 檢查溫度,風扇和電源
supportsave 獲取交換機的調試信息
supportShow
END