Changes between Version 6 and Version 7 of NSM2021/Agenda/SNMP-Hands-on


Ignore:
Timestamp:
May 17, 2021, 1:15:48 AM (3 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/SNMP-Hands-on

    v6 v7  
    186186
    187187To use the SNMP v2 or v1 we can add an option as below. Which will override the settings in the configuration file(/.snmp/snmp.conf).
    188 
    189 snmpstatus -v2c <IP_ADDRESS>
    190 snmpstatus -v1 <IP_ADDRESS>
     188{{{
     189$ snmpstatus -v2c <IP_ADDRESS>
     190$ snmpstatus -v1 <IP_ADDRESS>
     191}}}
    191192
    192193Again we didn't want set Community string as it was set in the manager configuration file.
     
    200201{{{
    201202#snmpstatus <Switch IP>
     203}}}
     204
     205More useful OIDs for Cisco devices,
     206
     207System Name:
     208{{{
     209snmpget -v 2c 192.248.4.22 sysName.0
     210}}}
     211System Up time,
     212{{{
     213snmpget -v 2c 192.248.4.22 sysServices.0
     214}}}
     215Interface Status:
     216{{{
     217snmpwalk -v 2c 192.248.4.22 ifOperStatus
     218snmpwalk -v 2c 192.248.4.22 IF-MIB::ifOperStatus
     219}}}
     220Average CPU load in 5 minutes:
     221{{{
     222snmpget -v 2c 192.248.4.22  .1.3.6.1.4.1.9.2.1.58.0 (avgBusy5)
     223}}}
     224Free memory:
     225{{{
     226snmpget -v 2c 192.248.4.22 1.3.6.1.4.1.9.2.1.8.0 (freeMem)
    202227}}}
    203228