mksnmpserver
Use the mksnmpserver command to create a Simple Network Management Protocol (SNMP) server to receive notifications.
Syntax
Parameters
- -name server_name
- (Optional) Specifies a unique name to assign to the SNMP server.
If a name is not specified, then a system default of
snmpnis applied, where n is the ID of the server. When specifying a server name,snmpis a reserved word. - -ip ip_address
- (Required) Specifies the IP address of the SNMP server. This must be a valid IPv4 or IPv6 address.
- -community community
- (Optional) Specifies the community name for the SNMP server. If
you do not specify a community name, then the default name of
publicis used. - -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. The default value is on.
- -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. The default value is on.
- -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. The default value is on.
- -port port
- (Optional) Specifies the remote port number for the SNMP server. This must be a value of 1 - 65535. The default value is 162.
Description
This command creates an SNMP server to receive notifications.
IBM Spectrum Virtualize supports a maximum of 6 SNMP servers.
An invocation example
mksnmpserver -ip 2.2.2.2 -port 78The resulting output:
SNMP Server id [2] successfully created