The Simple Network Management Protocol (SNMP) is an Internet-standard protocol used to manage devices on IP network. The SNMP messages are used to inspect and communicate information about managed objects. SNMP uses Management Information Bases (MIBs) to store available objects in a hierarchical or tr-structured namespace that contains object identifiers (OIDs). An OID identifies the information in the MIB hierarchy that can be read or set via SNMP.
SNMP Views are a subset of MIB objects that can be assigned to an SNMP access group to control write, read and notification privileges of SNMP users over MIB object information. A view is a user-defined label for a collection of MIB subtrees. Each subtree ID is defined by the OID of the root of the relevant subtrees.
This article provides instructions on how to configure the SNMP Views on your switch through the Command Line Interface (CLI) of the device. This can also be done through the web-based utility of the device. For instructions, click here.
Step 1. Access the CLI of the switch.
Note: In this example, PuTTY is the application used to access the switch CLI. The default username and password is cisco/cisco. If you have customized your credentials, use your username and password.
Step 2. Switch to Global Configuration mode by entering the configure terminal command:
Step 3. Create an SNMP View using the following syntax:
snmp-server view view-name oid-tree included/excluded
Where:
Note: In this example, snmp-server view user-view system.7 excluded is entered.
Step 4. Switch to Global Configuration Mode by entering the exit command.
Step 5. (Optional) Execute the following command to save in the startup configuration:
Step 6. (Optional) Press Y to save the settings in the startup configuration of the switch otherwise, press N to proceed without saving the configuration to the startup configuration of the switch.
Step 7. Verify SNMP group using the following command in privileged mode:
You should now have configured an SNMP views settings through the CLI of the switch.
Revision | Publish Date | Comments |
---|---|---|
1.0 |
13-Dec-2018 |
Initial Release |