Use the mksnmpserver command to create
a Simple Network Management Protocol (SNMP) server to receive notifications.
Syntax
mksnmpserver [ -name server_name ] -ip ip_address [ -community community ] [ -error { on | off } ] [ -warning { on | off } ] [ -info { on | off } ] [ -port port ]
Parameters
- -nameserver_name
- (Optional) Specifies a unique name to assign to the SNMP server.
If a name is not specified, then a system default of snmpn is
applied, where n is the ID of the server. When specifying a server name, snmp is
a reserved word.
- -ipip_address
- (Required) Specifies the IP address of the SNMP server. This must
be a valid IPv4 or IPv6 address.
- -communitycommunity
- (Optional) Specifies the community name for the SNMP server. If
you do not specify a community name, then the default name of public is
used.
- -erroron|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.
- -warningon|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.
- -infoon|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.
- -portport
- (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.
Lenovo Storage V series supports
a maximum of 6 SNMP servers.
For syslog servers, SNMP servers, and email users with type set to
local, the valid combinations of notification types are:
- error, warning, and
info
- error and warning
An invocation example
mksnmpserver -ip 2.2.2.2 -port 78
The
resulting output:
SNMP Server id [2] successfully created