XG700 User's Guide
196/266
All Rights Reserved, Copyright (C) PFU LIMITED 2005-2006
5.16.4 snmp-server access
Function
Sets an SNMP agent. The SNMP manager provides read-only access privileges only. You can register up to four
access-enabled SNMP managers.
Use the no form to delete the existing SNMP managers.
Prompt
xg(config)#
Command syntax
snmp-server access host HOSTNAME community COMMUNITY-NAME
no snmp-server access host HOSTNAME
Parameter
host HOSTNAME
Specifies a host name or an IP address of the 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.
community COMMUNITY-NAME
Specifies a community name of the SNMP manager. The community name can be up to 255 alphanumeric characters.
Command type
Configuration command
Default
None
Message
% SNMP Manager can register up to 4.
Explanation
Four SNMP managers have already been registered and you cannot register any more SNMP manager.
Solution
Delete unnecessary SNMP manager or managers, and reissue the command.
% Cannot find %1$
Explanation
The name cannot be resolved as an incorrect host name has been specified.
[[Inserted string]]%1$: Specified host name
Solution
Review the host name, and reissue the command by specifying the IP address.
% Hostname is too long.
Explanation
The specified host name has exceeded the limit length.
Solution
Review the host name length and reissue the command.
% COMMUNITY-NAME is too long.
Explanation
The specified community name has exceeded the limit length.
Solution
Review the community name length and reissue the command.
% COMMUNITY-NAME cannot be used.
Explanation
An illegal character has been used in the community name.
Solution
Review the community name setting and 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 IP address in the correct format and reissue the command.
Note
If the same host name has already been set, it is overwritten by the new one.
Example
Allow an access from the SNMP manager having the IP address of “192.168.10” and the community name of “xgpublic.”
xg(config)# snmp-server access host 192.168.1.10 community xgpublic