The chsnmpserver command modifies the
parameters of an existing SNMP server.
Syntax

>>- svctask -- -- chsnmpserver -- ------------------------------>
>--+------------------------+-- --+---------------------+------->
'- -name -- server_name -' '- -ip -- ip_address -'
>--+---------------------------+-- --+---------------------+---->
'- -community -- community -' '- -error --+- on --+-'
'- off -'
>-- --+-----------------------+-- --+--------------------+-- --->
'- -warning --+- on --+-' '- -info --+- on --+-'
'- off -' '- off -'
>--+-----------------+-- --+- snmp_server_name -+--------------><
'- -port -- port -' '- snmp_server_id ---'
Parameters
- -name server_name
- (Optional) Specifies a name to assign to the SNMP server. The
name must be unique. When specifying a server name, snmp is
a reserved word.
- -ip ip_address
- (Optional) Specifies an IP address to assign to the SNMP server.
This must be a valid IPv4 or IPv6 address.
- -community community
- (Optional) Specifies the community name for the SNMP server.
- -error on | off
- (Optional) Specifies whether the server receives
error notifications. Set to on, error notifications
are sent to the SNMP server. Set to off, error
notifications are not sent to the SNMP server.
- -warning on | off
- (Optional) Specifies whether the server receives
warning notifications. Set to on, warning notifications
are sent to the SNMP server. Set to off, warning
notifications are not sent to the SNMP server.
- -info on | off
- (Optional) Specifies whether the server receives
information notifications. Set to on, information
notifications are sent to the SNMP server. Set to off,
information notifications are not sent to the SNMP server.
- -port port
- (Optional) Specifies the remote port number for the SNMP server.
This must be a value of 1 - 65535.
- snmp_server_name | snmp_server_id
- (Required) Specifies the name or ID of the server to be modified.
Description
Use
this command to change the settings of an existing SNMP server. You
must specify either the current name of the server or the ID returned
at creation time. Use the svcinfo lssnmpserver command
to obtain this ID.
An invocation example
svctask chsnmpserver -name newserver 0
The
resulting output
none