SNMP Configuration 349
Tab le 424 Add/Delete a user to/from an SNMP Group
Creating/Updating View
Information or Deleting
a View
You can use the following commands to create, update the information of views
or delete a view.
Perform the following configuration in System View.
Tab le 425 Create/Update View Information or Deleting a View
Setting the Size of SNMP
Packet Sent/Received by
an Agent
You can use the following commands to set the size of SNMP packet sent/received
by an agent.
Perform the following configuration in System View.
Tab le 426 Set the Size of SNMP Packet sent/received by an Agent
The agent can receive/send the SNMP packets of the sizes ranging from 484 to
17940, measured in bytes. By default, the size of SNMP packet is 1500 bytes.
Enabling/Disabling a
Port Transmitting Trap
Information SNMP
Agent
To enable/disable a port transmitting trap information SNMP Agent. Perform the
following configuration in Ethernet Port View.
Tab le 427 Enable/Disable a Port Transmitting Trap Information SNMP Agent
Disabling SNMP Agent To disable SNMP Agent, perform the following configuration in System View.
Tab le 428 Disable SNMP Agent
Operation Command
Add a user to an SNMP
group.
snmp-agent usm-user { v1 | v2c }
username
groupname
[ acl
acl-list
] snmp-agent usm-user v3
username groupname
[ authentication-mode { md5 |
sha }
authpassstring
[ privacy-mode { des56
privpassstring
} ] ] [ acl
acl-list
]
Delete a user from an
SNMP group.
undo snmp-agent usm-user { v1 | v2c }
username
groupname
undo snmp-agent usm-user v3
username
groupname
{ local | engineid
engine-id
}
Operation Command
Create/Update view information snmp-agent mib-view { included |
excluded }
view-name oid-tree
Delete a view undo snmp-agent mib-view
view-name
Operation Command
Set the size of SNMP packet sent/received
by an agent
snmp-agent packet max-size
byte-count
Restore the default size of SNMP packet
sent/received by an agent
undo snmp-agent packet max-size
Operation Command
enable current port to transmit the trap information enable snmp trap updown
disable current port to transmit the trap information undo enable snmp trap updown
Operation Command
Disable snmp agent undo snmp-agent