H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – SNMP and RMON
H3C S7500 Series Ethernet Switches Chapter 1
SNMP Configuration
1-5
To do… Use the command… Remarks
Enter system view
system-view
Enable SNMP agent
snmp-agent
Required
By default, SNMP agent is
disabled.
You can enable SNMP agent
by executing this command or
any configuration command of
snmp-agent
Set system
information
snmp-agent sys-info
{ contact sys-contact |
location sys-location |
version { { v1 | v2c | v3 }* |
all } }
Optional
By default, the contact
information for system
maintenance is "Hangzhou
H3C Technologies Co., Ltd. ",
the physical location is
"Hangzhou China", and the
SNMP version is SNMPv3.
Set an SNMP group
snmp-agent group v3
group-name
[ authentication |
privacy ] [ read-view
read-view ] [ write-view
write-view ] [ notify-view
notify-view ] [ acl
acl-number ]
Required
Add a new user to
an SNMP group
snmp-agent usm-user
v3 user-name
group-name
[ authentication-mode
{ md5 | sha }
auth-password
[ privacy-mode des56
priv-password ] ] [ acl
acl-number ]
Required
Set the size of a
SNMP packet that
the agent can
send/receive
snmp-agent packet
max-size byte-count
Optional
By default, it is 2,000 bytes.
Set the device
engine ID
snmp-agent
local-engineid engineid
Optional
By default, the device engine
ID is "enterprise number +
device information".
Create or update the
view information
snmp-agent mib-view
{ included | excluded }
view-name oid-tree
Optional
By default, the view name is
ViewDefault and OID is 1.