To check the SNMP agent status of the targeted switch. A remote connection or terminal session is required for the Switch to configure SNMP.
Switch# show snmp
When the SNMP agent is not enabled.
Switch# configure terminal
Switch (Config)# snmp-server enable traps
Switch (Config)# snmp-server community public ro //ro - read-only
Switch (Config)# snmp-server community private rw //rw - read-write
Switch (Config)# snmp-server location myoffice-location
Switch (Config)# snmp-server contact myoffice-contact
Switch (Config)# end
Switch# show snmp //display the current configuration
Lets do a SNMPWALK to snmp configuration (SNMPv1 or SNMPv2). This was tested using ubuntu
First to install snmp
# apt install snmp
Then to run a snmpwalk
#snmpwalk -v 1 -c public 192.168.10.1 1.3.6.1.2.1.2
For more information on snmpwalk attributes refer the man page
For more information on SMP MIBs, refer the below guide.
Base OID for MIB-2 defined SNMP variables
Superior references
1.3.6.1.2 - IETF Management
1.3.6.1 - OID assignments from 1.3.6.1 - Internet
1.3.6 - US Department of Defense
1.3 - ISO Identified Organization
1 - ISO assigned OIDs
Top of OID tree
Subsidiary references (single level)
1.3.6.1.2.1.1 - SNMP MIB-2 System
1.3.6.1.2.1.2 - SNMP MIB-2 Interfaces
1.3.6.1.2.1.3 - at
1.3.6.1.2.1.4 - ip
1.3.6.1.2.1.5 - icmp
1.3.6.1.2.1.6 - tcp
1.3.6.1.2.1.7 - udp
1.3.6.1.2.1.8 - egp
1.3.6.1.2.1.9 - cmot
1.3.6.1.2.1.10 - transmission
1.3.6.1.2.1.11 - snmp
1.3.6.1.2.1.14 - OSPF Version 2 MIB
1.3.6.1.2.1.15 - BGPv4
1.3.6.1.2.1.16 - Managed Objects for Bridges
1.3.6.1.2.1.17 - Bridge Mib
1.3.6.1.2.1.22 - rptrHealth
1.3.6.1.2.1.25 - HOST-RESOURCES-MIB, from RFC 1514
1.3.6.1.2.1.26 - Ethernet MAU mib
1.3.6.1.2.1.27 - Application MIB module
1.3.6.1.2.1.28 - MTA MIB module
1.3.6.1.2.1.29 - X.500 Directory MIB module
1.3.6.1.2.1.31 - ifMib
1.3.6.1.2.1.33 - upsMIB
1.3.6.1.2.1.34 - snaNode
1.3.6.1.2.1.38 - mdmMib
1.3.6.1.2.1.41 - sdlcStatus
1.3.6.1.2.1.43 - Printer-MIB
1.3.6.1.2.1.47 - entity-mib
1.3.6.1.2.1.69 - docsDev
1.3.6.1.2.1.92 - notificationLogMIB
Run SNMPWALK on CISCO Switch from Ubuntu Desktop
August 08, 2019 / by Kushan Sharma / with No comments /
Related Posts:
Event Log Retention Requirements as mandated by Major Compliance RegulationsOn September 20th, 2016, Digital Edge released an article on Log Management Laws and Regulations. Below is a little "Cheat Sheet" on the Event Lo… Read More
Essential Event Log Configurations to be CorelatedConsidering Windows audit event logging, there are plenty of guides available in the Internet to follow. Most of the event configurations would overla… Read More
One-way and two-way SSL authenticationHow One-Way SSL Works?Below is the high level description of the steps involved in establishment of connection and transfer of data between a client a… Read More
Remove PostgreSQL in Ubuntu 18.04Once I was using PostgreSQL and when I no longer need to keep the installation, I wanted to remove it completely. So I used the command listed b… Read More
Uninstall Windows Update with Command PromptUse of WUSA command tool to uninstaill If you are unable to remove an update from the Settings app or Control Panel, you can also use the Windows Upda… Read More
0 comments:
Post a Comment