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:
How do I install and mount an exFAT partition?Microsoft introduced the new exFAT file system with Vista SP1. Extended File Allocation Table (exFAT) is the successor to the old FAT32 file system [1… Read More
Reset mysql root Password I wanted to reset the mysql root password of one of my temporary hosted mysql database server. Since it was not used for a long period of time, I coul… Read More
Network Time Protocol(NTP) Based DDoS Attacks.Accurate, reliable time is necessary for financial and legal transactions, transportation and distribution systemsand many other applications involvin… Read More
Security Vulnerabilities: Oracle GlassFish Server Administration Console Authentication BypassDescription: When the server is vulnerable to Oracle GlassFish Server Administration Console GET Request Authentication Bypass, it fails to enforce au… Read More
DoS-ing & Countering Apache Web Link SaturationTesting your webserver - DoS-ing DoS, or Denial of Service attacks, are nothing new. The main idea behind a DoS attack is to exhaust a devices … Read More
0 comments:
Post a Comment