1、硬件状态检查
display version
巡检描述:显示设备的版本信息、启动时间等。
display clock
巡检描述:显示设备的当前系统时间。
display environment
巡检描述:显示设备的温度信息,有助于了解设备的散热情况。
display power
巡检描述:显示设备的电源模块状态和供电情况。
display fan
巡检描述:显示设备风扇的运转状态,确保设备散热正常。
display cpu-usage
巡检描述:查看CPU的最近5秒、1分钟、5分钟的占用率。
display cpu history
巡检描述:查看CPU的使用记录。
display memory
巡检描述:显示内存的总大小和当前占用情况。
2、配置信息检查
display current-configuration
巡检描述:显示设备当前运行的配置信息。
display saved-configuration
巡检描述:显示设备保存的配置文件内容。
3、接口状态检查
display interface brief
巡检描述:快速查看接口的基本状态和流量信息。
display interface
巡检描述:详细查看某个接口的详细信息,包括流量、链路状态等。
dis current-configuration inter
巡检描述:显示接口的地址分配配置。
display port trunk
巡检描述:查看参与trunk(端口聚合)的端口信息。
display link-aggregation summary
巡检描述:查看链路聚合组的情况。
4、网络协议检查
display ip routing-table
巡检描述:显示设备的IP路由表信息。
display ospf peer
巡检描述:显示OSPF协议的邻居信息。
display vrrp
巡检描述:查看虚拟路由冗余协议(VRRP)的配置信息。
display vrrp statistics
巡检描述:查看VRRP的主备用状态。
display stp root
巡检描述:查看STP的根桥信息。
display stp brief
巡检描述:查看STP的简要信息。
display stp abnormal-port
巡检描述:查看STP中是否有非正常端口。
5、安全设置检查
display arp
巡检描述:查看ARP表,即目的IP与目的MAC的映射关系,有助于检测ARP欺骗等安全问题。
display mac-address
巡检描述:查看设备的MAC地址表,用于二层转发和MAC地址学习。
6、其他常用命令
display logbuffer
巡检描述:查看设备的日志缓冲区信息,有助于了解设备的运行状态和故障排查。
screen-length 0 temporary
巡检描述:取消命令输出的分页显示,方便查看长输出信息。
display ndp
巡检描述:查看邻居发现协议的信息,适用于路由器设备。
display ntp status
巡检描述:查看网络时间协议(NTP)的状态信息,确保设备时间同步。
display elabel
巡检描述:查看设备的电子标签信息(部分设备支持)。
display transceiver interface
巡检描述:查看光模块的状态和参数信息。
以上巡检命令可以帮助大家更好的发现设备上的软硬件告警,协议状态运行的情况,及时发现网络设备上的缺陷与安全隐患,保持设备健康、稳定的运行。