Fujitsu XG2000 Switch User Manual


 
XG2000 series User's Guide
237/315
All Rights Reserved, Copyright (C) PFU LIMITED 2009
5.17.5 snmp-server trap
Function
Sets the destination for SNMP trap notifications. Up to four (4) destinations can be registered.
Use the no form to delete the existing destination names.
Prompt
xg(config)#
Command syntax
snmp-server trap host HOSTNAME community COMMUNITY-NAME [ protocol {v1|v2c} ]
no snmp-server trap host HOSTNAME
Parameter
z host HOSTNAME
Specifies a host name or an IP address for the destination SNMP manager.
The IP address can be within the range of 1.0.0.1 to 126.255.255.254, 128.0.0.1 to
191.255.255.254, or 192.0.0.1 to 223.255.255.254.
z community COMMUNITY-NAME
Specifies a community name for the destination SNMP manager. The community name can be up
to 255 alphanumeric characters.
z [ protocol {v1|v2c} ]
Specifies the SNMP protocol to be used.
v1
The SNMP v1 protocol is used for trap notification.
v2c
The SNMP v2c protocol is used for trap notification.
The SNMP v2c protocol is the default if not specified.
Command type
Configuration command
Default
None
Message
% SNMP Trap Manager can register up to 4.
Explanation
Four SNMP trap managers have already been registered.
Solution
Delete unnecessary SNMP trap managers then reissue the command.
% Cannot find %1$
Explanation
The name cannot be resolved. An incorrect host name was specified.
[[Inserted string]]%1$: Specified host name
Solution
Review the host name then reissue the command by specifying the correct hostname or IP
address.
% Hostname is too long.
Explanation
The specified host name exceeded the length limit.
Solution
Reduce the host name length then reissue the command.
% COMMUNITY-NAME is too long.
Explanation
The specified community name exceeded the limit length.
Solution
Review the community name length then reissue the command.
% COMMUNITY-NAME cannot be used.
Explanation
An illegal character was used in the community name.
Solution
Review the community name setting then reissue the command.
% Invalid IP-address.
Explanation
The IP address was specified in an incorrect format or an incorrect address was specified.
Solution
Specify the correct IP address in the correct format then reissue the command.
Note
z If a previously defined host name is specified with new parameters the prior parameters are overwritten.
z If the host name is specified instead of IP address of the destination for SNMP trap notifications, changing the NTP
server’s IP address at the destination for SNMP trap notifications will not be enabled. It is necessary to restart the
device after DNS server’s IP address has been changed.
Example
Specify trap notification using the SNMP v2c protocol for the SNMP manager with the IP address “192.168.1.10” and the
community name “xgpublic”.
xg(config)# snmp-server trap host 192.168.1.10 community xgpublic protocol v2c