Showing posts with label snmp. Show all posts
Showing posts with label snmp. Show all posts

Monday, 28 July 2025

Core SNMP Operations Explained

 

Simple Network Management Protocol (SNMP) enables centralized monitoring and control of networked devices. It uses a set of well-defined operations to exchange management data between SNMP managers and agents.

1. GET Request

Used to retrieve specific data from a managed device. It queries a particular object identifier (OID) to check the current status or configuration.

2. GET-NEXT Request

This operation fetches the next sequential object in the MIB (Management Information Base). It's essential for walking through tables or lists of data without knowing all the OIDs in advance.

3. GET-BULK Request

Introduced in SNMPv2, this operation is optimized for retrieving large volumes of data efficiently. It minimizes the number of requests needed to gather multiple values, especially from tables.

4. SET Request

Allows the SNMP manager to modify the value of a managed object on the agent. This is used for configuration changes, such as enabling or disabling interfaces.

5. TRAP Notification

An unsolicited alert sent from the agent to the manager when a predefined event occurs (e.g., device reboot, link failure). It’s a one-way message and doesn’t require acknowledgment.

6. INFORM Notification

Similar to a TRAP, but with a key difference: it requires acknowledgment from the manager. This ensures the alert was received, making it more reliable for critical notifications.

7. REPORT Message

Exclusive to SNMPv3, this operation is used for diagnostic and error reporting between SNMP entities. It helps troubleshoot issues like authentication failures or unsupported features.

 

Wednesday, 5 August 2020

SNMPv3 config on Cisco routers/Switches

   
1) Create an access-list to allow SNMP source servers.

access-list 10 permit 10.10.10.10
access-list 10 permit 10.10.10.11
access-list 10 permit 10.10.10.12

All SNMP servers must be allowed in above ACLs.

2) Now, Create the new Group using below command.

snmp-server group GROUP1 v3 auth read access 10

3) Create new credentials using the group "GROUP1"

snmp-server user SNMP_USER v3 auth md5 PASSWORD-AUTH priv aes 128 PASSWORD2-PRIV

All bold text are variables.