User manual

address table
3.2.12 SNMP Commands Set
Table 3.12: SNMP Commands Set
Commands Level Description Example
snmp system-name
[System Name]
G
Set SNMP agent system name switch(config)#snmp system-name l2switch
snmp system-location
[System Location]
G
Set SNMP agent system location switch(config)#snmp system-location lab
snmp system-contact
[System Contact]
G
Set SNMP agent system contact switch(config)#snmp system-contact where
snmp agent-mode
[v1v2c|v3|v1v2cv3]
G
Select the agent mode of SNMP switch(config)#snmp agent-mode v1v2cv3
snmp community-strings [Community]
right
[RO/RW]
G
Add SNMP community string. switch(config)#snmp community-strings public
right rw
snmp-server host
[IP address]
community
[Community-string]
trap-version
[v1|v2c]
G
Configure SNMP server host
information and community string
switch(config)#snmp-server host 192.168.1.50
community public trap-version v1
(remove)
Switch(config)#
no snmp-server host
192.168.1.50
snmpv3 context-name
[Context Name ]
G
Configure the context name switch(config)#snmpv3 context-name Test
snmpv3 user
[User Name]
group
[Group Name]
password
[Authentication Password] [Privacy
Password]
G
Configure the userprofile for
SNMPV3 agent. Privacy password
could be empty.
switch(config)#snmpv3 user test01 group G1
password AuthPW PrivPW
snmpv3 access context-name
[Context Name ]
group
[Group Name ]
security-level
[NoAuthNoPriv|AuthNoPriv|AuthPriv]
match-rule
[Exact|Prifix]
views
[Read View Name] [Write View Name]
[Notify View Name]
G
Configure the access table of
SNMPV3 agent
switch(config)#snmpv3 access context-name Test
group G1 security-level AuthPriv
match-rule Exact views V1 V1 V1
snmpv3 mibview view
[View Name]
type
[Excluded|Included]
sub-oid
[OID]
G
Configure the mibview table of
SNMPV3 agent
switch(config)#snmpv3 mibview view V1 type
Excluded sub-oid 1.3.6.1
show snmp P Show SNMP configuration switch#show snmp
no snmp community-strings
[Community]
G
Remove the specified community. switch(config)#no snmp community-strings public
no snmp-server host
[Host-address]
G
Remove the SNMP server host. switch(config)#no snmp-server 192.168.1.50
no snmpv3 user
[User Name]
G
Remove specified user of SNMPv3
agent.
switch(config)#no snmpv3 user Test
no snmpv3 access context-name
[Context Name ]
group
[Group Name ]
security-level
[NoAuthNoPriv|AuthNoPriv|AuthPriv]
match-rule
[Exact|Prifix]
views
[Read View Name] [Write View Name]
[Notify View Name]
G
Remove specified access table of
SNMPv3 agent.
switch(config)#no snmpv3 access context-name
Test group G1 security-level AuthPr
iv match-rule Exact views V1 V1 V1
no snmpv3 mibview view G Remove specified mibview table of switch(config)#no snmpv3 mibview view V1 type
EKI-2748FI_Manual 46