SNMP anzeigen
Es gibt mehrere Befehle, auf die Sie im Betriebsmodus von Junos OS zugreifen können, um SNMP-Informationen zu überwachen. Einige der Befehle sind:
show snmp health-monitor
, in dem das Protokoll der Integritätsüberwachung und die Alarminformationen angezeigt werden.show snmp mib
, in dem Informationen von den MIBs angezeigt werden, z. B. Geräte- und Systeminformationen.show snmp statistics
, in dem SNMP-Statistiken wie die Anzahl der Pakete, Silent Drops und ungültige Ausgabewerte angezeigt werden.show snmp rmon
, in dem der RMON-Alarm, das Ereignis, der Verlauf und die Protokollinformationen angezeigt werden
Das folgende Beispiel enthält eine Beispielausgabe des show snmp health-monitor
Befehls:
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 ...
Das folgende Beispiel enthält eine Beispielausgabe des show snmp mib
Befehls:
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
Das folgende Beispiel enthält eine Beispielausgabe des show snmp statistics
Befehls:
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