3com 8807 User Guide

Page of 883
742
C
HAPTER
 64: SNMP C
ONFIGURATION
Perform the following configuration in system view.
Currently, this command takes effect only on the interfaces with vlan-interface 
type.
Adding/Deleting a User 
to/from an SNMP Group
You can use the following commands to add or delete a user to/from an SNMP 
group.
Perform the following configuration in system view.
You must first configure the SNMP engine ID before configuring the remote user 
for an agent, because the engine ID is required during the authentication. If you 
forget to configure the engine ID before adding a user, the operation of adding 
this user will fail.
For SNMP V1 and V2c, this operation is adding a new community name, while for 
SNMP V3, this operation is adding a user for an SNMP group.
Creating/Updating View 
Information or Deleting 
a View
You can specify the view to control the access to the MIB by SNMP manager. You 
can use either the predefined views or the self-defined views. You can use the 
following commands to create, update the information of views or delete a view.
Perform the following configuration in system view.
Table 685   Set the source address of trap
Operation 
Command 
Set the Source Address of Trap 
snmp-agent trap source interface-type 
interface-number 
Remove the source address of trap 
undo snmp-agent trap source
Table 686   Add/Delete a user to/from an SNMP group
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 }
Table 687   Create/Update view information or delete a view
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