88 | |
|
|
SNMP Commands Set
|
|
|
|
|
|
| Netstar Commands | Level | Description | Example |
|
|
|
|
|
|
|
| snmp | G | Set SNMP agent system | switch(config)#snmp |
|
| [System Name] | name |
| ||
|
|
|
| ||
|
|
|
|
|
|
| snmp | G | Set SNMP agent system | switch(config)#snmp |
|
| [System Location] |
| location |
|
|
| snmp | G | Set SNMP agent system | switch(config)#snmp |
|
| [System Contact] | contact | where |
| |
|
|
| |||
|
|
|
|
|
|
| snmp | G | Select the agent mode of | switch(config)#snmp |
|
| [v1v2cv3v1v2cv3] | SNMP |
| ||
|
|
|
| ||
| snmp community- |
|
|
|
|
| strings [Community] | G | Add SNMP community | switch(config)#snmp |
|
| right | string. | public right rw |
| |
|
|
| |||
| [RO/RW] |
|
|
|
|
|
|
|
| ||
|
|
| 192.168.1.50 community public trap- |
| |
| [IP address] |
|
|
| |
|
| Configure SNMP server | version v1 |
| |
| community |
|
| ||
| G | host information and | (remove) |
| |
|
|
| |||
|
| community string | Switch(config)# |
| |
|
|
|
| ||
|
|
| no |
| |
| [v1v2c] |
|
|
| |
|
|
| 192.168.1.50 |
| |
|
|
|
|
| |
|
|
|
|
|
|
| snmpv3 | G | Configure the context name | switch(config)#snmpv3 |
|
| [Context Name ] |
|
|
|
|
| snmpv3 user |
|
|
|
|
| [User Name] |
|
|
|
|
| group |
| Configure the userprofile |
|
|
| [Group Name] |
| switch(config)#snmpv3 user test01 group |
| |
| G | for SNMPV3 agent. Privacy |
| ||
| password | G1 password AuthPW PrivPW |
| ||
|
| password could be empty. |
| ||
| [Authentication |
|
|
| |
|
|
|
|
| |
| Password] [Privacy |
|
|
|
|
| Password] |
|
|
|
|
| snmpv3 access |
|
|
|
|
|
|
|
|
| |
| [Context Name ] |
|
|
|
|
| group |
|
|
|
|
| [Group Name ] |
|
|
|
|
|
|
| switch(config)#snmpv3 access context- |
| |
| [NoAuthNoPrivAuth |
| Configure the access table |
| |
| G | name Test group G1 |
| ||
| NoPrivAuthPriv] |
| of SNMPV3 agent |
| |
|
|
|
| ||
|
|
|
|
| |
| [ExactPrifix] |
|
|
|
|
| views |
|
|
|
|
| [Read View Name] |
|
|
|
|
| [Write View Name] |
|
|
|
|
| [Notify View Name] |
|
|
|
|