HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual
To register the manager with the agent, use the addsnmpmgr command followed by the manager’s
IP address. If you need to use one of the following options, enter it after the command and before
the IP address.
• -p <port_number> - Specifies the port number where the manager receives traps. The
default port 162.
• -pw <password> - Specifies the manager’s access password, if the manager has one.
• -r <number> - Specifies the number of times the system will attempt to resend the trap if the
manager is not available. You can specify from 1 to 15 retries. The default is 2.
• -t <seconds> - Specifies the number of seconds to wait between retries. You can set this
timeout from 1 to 300 seconds. The default is 200.
NOTE: The InForm OS supports a maximum of 10 registered SNMP managers.
Viewing Registered Managers
Use the InForm OS CLI command showsnmpmgr to see which managers are already registered
with the SNMP agent.
NOTE: If the manager that monitors the system has changed, you need to remove the old manager
and register the new one.
Removing a Manager
To remove a manager from the agent’s list of registered managers, thus preventing that manager
from receiving traps, use the removesnmpmgr command. If there is more than one manager
running on the same server, you can distinguish between them with the -p option followed by the
port to which the manager is listening. Follow the command (and the option and its argument, if
necessary) with the IP address of the manager’s server. Refer to the HP 3PAR InForm OS Command
Line Interface Reference for more information about this command.
Agent Community Strings
In order for the SNMP Manager to communicate with the HP 3PAR SNMP agent, it must pass the
agent the correct community string. To do this, the manager needs to know the agent community
string. The system comes with the single default community string “public” with reading permissions
for the agent. You can add read-only and write-only community strings and you can change or
remove any of the community strings.
To see what community strings are currently on the system, use the InForm OS CLI command
showsnmppw. By default, this command shows the read/write community string. If the community
string you are requesting does not exist, you will get an error message.
To add or update a community string, use the setsnmppw command followed by the new community
string. By default, this command changes the read/write community string.
To remove a community string, use the removesnmppw command. Once the community string is
removed, the manager can no longer send requests to the SNMP agent. By default, this command
removes the read/write community string.
For any of these three InForm OS CLI commands (showsnmppw, setsnmppw, and removesnmppw),
you can follow the command with one or more of the following options to specify which community
string the command applies to:
• -r for the read-only community string.
• -w for the write-only community string.
• -rw for the read/write community string .
Registering an SNMP Manager 139