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 SNMPv2 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.
- -engineid engine_id
- (Required) Specifies the engine ID for the SNMPv3 server. This value has a max of 32 bytes. You must specify -securityname with this parameter.
- -securityname username
- (Required) Specifies the security name for the SNMPv3 server. This value has a max of 32 characters. You must specify -engineid with this parameter.
- -authprotocol protocol
- (Optional) Specifies the authentication protocol for the SNMPv3 server. Valid values are sha or md5. You must specify -authpassphrase with this parameter.
- -authpassphrase auth_password
- (Optional) Specifies the authentication password for the SNMPv3 server. This value must be in the range of 8 - 255 characters. You must specify -authprotocol with this parameter.
- -privprotocol protocol
- (Optional) Specifies the privacy protocol for the SNMPv3 server. Valid values are aes or des. You must specify -privpassphrase with this parameter.
- -privpassphrase priv_password
- (Optional) Specifies the privacy password for the SNMPv3 server. This value must be in the range of 8 - 255 characters. You must specify -privprotocol with this parameter.
Description
This command creates an SNMPv2 or SNMPv3 server to receive notifications.
The system supports a maximum of 6 SNMP servers.
An invocation example to create an SNMPv2 server
mksnmpserver -ip 2.2.2.2 -port 78
The resulting output:
SNMP Server id [2] successfully created
An invocation example to create an SNMPv3 server with no authentication or privacy values
mksnmpserver -ip 9.174.157.8 -engineid 0x80000002045370656356000000C021800002 -securityname mcr-tb5-cluster-29
The resulting output:
SNMP Server id [3] successfully created
An invocation example to create an SNMPv3 server with authentication and privacy values
mksnmpserver -ip 9.174.157.8 -engineid 0x80000002045370656356000000C021800002 -securityname mcr-tb5-cluster-29 -authprotocol sha
-authpassphrase cluster_auth_pw -privprotocol aes -privpassphrase cluster_priv_pw
The resulting output:
SNMP Server id [4] successfully created
