Configuring SNMP 281
â– Set SNMP System Information
â– Set the Engine ID of a Local or Remote Device
â– Set/Delete an SNMP Group
â– Set the Source Address of Trap
â– Add/Delete a User to/from an SNMP Group
â– Create/Update View Information or Deleting a View
â– Set the Size of SNMP Packet Sent/Received by an Agent
â– Enable/Disable a Port Transmitting Trap Information SNMP Agent
â– Disable SNMP Agent
Setting Community
Name
SNMP V1 and SNMPV2C adopt the community name authentication scheme. The
SNMP message incompliant with the community name accepted by the device will
be discarded. SNMP Community is named with a character string, which is called
Community Name. The various communities can have read-only or read-write
access mode. The community with read-only authority can only query the device
information, whereas the community with read-write authority can also configure
the device.
You can use the following commands to set the community name.
Perform the following configuration in System View.
Tab le 315 Set Community Name
Enabling/Disabling
SNMP Agent to Send
Trap
The managed device transmits a trap without request to the Network
Management Station to report some critical and urgent events (such as restart).
You can use the following commands to enable or disable the managed device to
transmit trap messages.
Perform the following configuration in System View.
Tab le 316 Enable/Disable SNMP Agent to Send Trap
Operation Command
Set the community name and
the access authority
snmp-agent community { read | write }
community-name [ mib-view view-name ] [ acl
acl-list ]
Remove the community name
and the access authority
undo snmp-agent community community-name
Operation Command
Enable to send trap snmp-agent trap enable [ configuration | flash |
ospf [ process-id ] [ ospf-trap-list ] | standard
[ authentication | coldstart | linkdown | linkup
| warmstart ]* | system ]
Disable to send trap undo snmp-agent trap enable [ bgp [
backwardtransition ] [ established ] |
configuration | flash | ospf [ process-id ] [
ospf-trap-list ] | standard [ authentication |
coldstart | linkdown | linkup | warmstart ]* |
system ]