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 to Disable Directory Listings in IIS/ApacheThe easiest way to disable directory listing is to create an index file. The name of the index file depends on the web server configuration. On Apache… Read More
Install and Use Nmap/Zenmap 6 in Ubuntu 14.04For the installation, you follow the steps listed below. If you don't have the alien command, install it with a command such as $sudo apt-get install… 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
Blocking intrusion attempts using authentication module pam_tally2It is possible to block these intrusions using the authentication module called "pam_tally2". This module maintains a count of attempted accesses, can… Read More
Forcing Password Complexity in Red Hat LinuxMy requirement was to enforce the password complexity for all the users of my RHEL 5 server (This will works for RHEL 4/5 also). This would be helpful… Read More
0 comments:
Post a Comment