Skip to main content

TechTalk: Enabling SNMP in Cisco Routers / Switches

 TLDR

This article will guide your through the steps to enable SNMP in Cisco Routers and Switches

Description

Telnet to the router/switch

prompt# telnet testrouter

Go to the enable mode by specifying the password:

Router>enable

Password:

Router#

Go into configuration mode:

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#

Use the command below to add a Read-Only community string:

Router(config)#snmp-server community public RO

where "public" is the Read-only community string.

To add a Read-Write Community string, use the command below:

Router(config)#snmp-server community private RW

where "private" is the Read-write community string.

Exit the configuration mode and save the settings:

Router(config)#exit

Router#write memory

Building configuration...

[OK]

Router#

To enable SNMP traps, follow the steps below in the Configuration mode of the Router/Switch:

First, set the host to which the traps have to be sent using the folowing command:

snmp-server host <IP Address> version <v1 or 2c> <RO community string>

where,

<IP Address> refers to the IP Address of the device to which the traps have to be sent
<v1 or 2c> refers to the SNMP version

<RO community string> refers to the Read-Only community string

Then, enable SNMP Traps using the command below:

snmp-server enable traps [notification-type] [notification-option]

Ex: snmp-server enable traps config [this will send all configurationnotifications as traps]

Comments

Popular posts from this blog

Telecoms: ePSK - Multiple Pre-Shared Keys

Originally posted on the Cambium Community Networks Just in case you missed it cnMaestro Version 2.2.1 (Cloud and On-Premise), brings us a great new feature called ePSK. If you’re not familiar with ePSK it’s maybe because Cambium are too modest to toot their own trumpet so I’m going to do it for them. In short ePSK gives each user a unique PSK (pre-shared key) when using WPA2-Personal, for me to explain why this is such a useful feature let me first explain the problem with using a shared PSK across the whole WLAN. When a wireless client connects to an AP it completes a 4-Way handshake, this generates the encryption keys used to encrypt wireless traffic. For the 4-way handshake to work it is a requirement that both the client and AP know the passphrase, however the passphrase is never transmitted over the air thereby making this exchange reasonably secure. But what happens when a 3rd party already knows the passphrase? It means they just need to capture the 4-way handshake to gener...

7 Apps You Should Delete Right Now And Why the Law Makes Them Dangerous

  There is a conversation happening in security research circles, government agencies, and regulatory bodies around the world, and most Papua New Guineans are not part of it. It concerns a small group of applications that sit on hundreds of millions of Android and iOS devices, including many in PNG, quietly running in the background, collecting data, and transmitting that data to servers governed by a legal system that has no obligation to protect you. In PNG, where mobile phones are the primary gateway to banking, communication, and identity, this risk is amplified. For many users, a smartphone is not just a device. It is their wallet, their ID, and their connection to essential services. This is not about a theoretical vulnerability or an obscure technical exploit. It is about the intersection of consumer software and national law, specifically the legal architecture that governs what foreign technology companies must do when their government asks for your data. The Legal Foun...

Tales of Somare: An old man loses a friend

Originally posted by Lucy Kopana on Facebook 82-year-old Nanong Gideon Ahe placed a hand on his chest and managed to utter through his tears, "em barata dai ya". He wiped his tears and looked down at the photo he had in his hand. It was a laminated picture of him and his schoolmates at the Administrative College in Port Moresy, in 1965.  Lapun Nanong pointed to  where he was in the photo and went on to call his mates by name, and where they were from. Amongst them were Albert Maori Kiki, Jerry Nalau, and Michael Somare to name a few.  These were the founding members of the Bully Beef Club that was formed at the Administrative College. "Mipla olgeta sanap ya, liklik liklik tingting mipla i save tromoi lo taim blo kaikai rais wantem bully beef ya."  While the three and others in the club chose the political path and went on to becoming key figures in PNG politics - Nanong Ahe chose a path in the civil service. He paid tribute to his friend, the late Sir Michael Somare...