显示 SNMP
您可以在 Junos OS 操作模式下访问多个命令来监控 SNMP 信息。其中一些命令是:
show snmp health-monitor
,其中显示运行状况监视器日志和警报信息。show snmp mib
,显示来自 MIB 的信息,例如设备和系统信息。show snmp statistics
,其中显示 SNMP 统计信息,例如数据包数、静默丢弃和无效输出值。show snmp rmon
,其中显示 RMON 告警、事件、历史记录和日志信息
以下示例提供了命令 show snmp health-monitor
的示例输出:
user@switch> show snmp health-monitor Alarm Index Variable description Value State 32768 Health Monitor: root file system utilization jnxHrStoragePercentUsed.1 58 active 32769 Health Monitor: /config file system utilization jnxHrStoragePercentUsed.2 0 active 32770 Health Monitor: RE 0 CPU utilization jnxOperatingCPU.9.1.0.0 0 active 32773 Health Monitor: RE 0 Memory utilization jnxOperatingBuffer.9.1.0.0 35 active 32775 Health Monitor: jkernel daemon CPU utilization Init daemon 0 active Chassis daemon 50 active Firewall daemon 0 active Interface daemon 5 active SNMP daemon 11 active MIB2 daemon 42 active ...
以下示例提供了命令 show snmp mib
的示例输出:
user@switch> show snmp mib walk system sysDescr.0 = Juniper Networks, Inc. qfx3500s internet router, kernel JUNOS 11.1-20100926.0 #0: 2010-09-26 06:17:38 UTC builder@abc.example.net: /volume/build/junos/11.1/production/20100926.0/obj-xlr/bsd/sys/compile/JUNIPER-xxxxx Build date: 2010-09-26 06:00:10 U sysObjectID.0 = jnxProductQFX3500 sysUpTime.0 = 24444184 sysContact.0 = J Smith sysName.0 = Lab QFX3500 sysLocation.0 = Lab sysServices.0 = 4
以下示例提供了命令 show snmp statistics
的示例输出:
user@switch> show snmp statistics SNMP statistics: Input: Packets: 0, Bad versions: 0, Bad community names: 0, Bad community uses: 0, ASN parse errors: 0, Too bigs: 0, No such names: 0, Bad values: 0, Read onlys: 0, General errors: 0, Total request varbinds: 0, Total set varbinds: 0, Get requests: 0, Get nexts: 0, Set requests: 0, Get responses: 0, Traps: 0, Silent drops: 0, Proxy drops: 0, Commit pending drops: 0, Throttle drops: 0, Duplicate request drops: 0 Output: Packets: 0, Too bigs: 0, No such names: 0, Bad values: 0, General errors: 0, Get requests: 0, Get nexts: 0, Set requests: 0, Get responses: 0, Traps: 0