Zhone 5100 参照マニュアル

ページ / 186
SNMP
Vpacket 5100/6100 Series Reference Manual
                                                                                               
131
Setting SNMP trap destinations
You can assign an SNMP trap destination by IP address, community name and port number by 
issuing the set snmp trap destination add command.
Syntax: set snmp trap destination add <ip address or trap destination name> 
             <port number> <name> 
Arguments:
ip address or trap destination name
the name (up to 127 characters; if the name has spaces, you can enclose 
the name in quotation marks) or IP address in standard notation of 
where you want the trap sent
port number
UDP port number
name
community name
Example:
In this example, an SNMP trap destination is added by IP address, the UDP port number (161), 
and community name.
Deleting an SNMP trap destination 
You can delete SNMP trap destinations by issuing the set snmp trap destination delete 
command.
Syntax: set snmp trap destination delete <ip address> <community name>
Arguments:
ip address
IP address or trap destination name of the SNMP trap you want to 
delete
community name
name of the community that the trap belongs to
Example:
In this example, the SNMP trap destination 192.34.45.2 within the community named “yellow” 
was deleted. A message confirms the deletion.
VPacket# set snmp trap destination add 192.168.101.9 161 reset
Trap destination 192.168.101.9 reset added.
VPacket#
VPacket# set snmp trap destination delete 192.34.45.2 yellow
Trap destination 192.34.45.2 yellow deleted.
VPacket#