Changes between Version 6 and Version 7 of NSM2021/Agenda/SNMP-Hands-on
- Timestamp:
- May 17, 2021, 1:15:48 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/SNMP-Hands-on
v6 v7 186 186 187 187 To 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 }}} 191 192 192 193 Again we didn't want set Community string as it was set in the manager configuration file. … … 200 201 {{{ 201 202 #snmpstatus <Switch IP> 203 }}} 204 205 More useful OIDs for Cisco devices, 206 207 System Name: 208 {{{ 209 snmpget -v 2c 192.248.4.22 sysName.0 210 }}} 211 System Up time, 212 {{{ 213 snmpget -v 2c 192.248.4.22 sysServices.0 214 }}} 215 Interface Status: 216 {{{ 217 snmpwalk -v 2c 192.248.4.22 ifOperStatus 218 snmpwalk -v 2c 192.248.4.22 IF-MIB::ifOperStatus 219 }}} 220 Average CPU load in 5 minutes: 221 {{{ 222 snmpget -v 2c 192.248.4.22 .1.3.6.1.4.1.9.2.1.58.0 (avgBusy5) 223 }}} 224 Free memory: 225 {{{ 226 snmpget -v 2c 192.248.4.22 1.3.6.1.4.1.9.2.1.8.0 (freeMem) 202 227 }}} 203 228