lssnmpserver

Use the lssnmpserver command to return a concise list or a detailed view of SNMP servers that are configured on the system.

Syntax

Read syntax diagramSkip visual syntax diagram lssnmpserver -nohdr-delimdelimitersnmp_server_namesnmp_server_id

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-delim delimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
snmp_server_name | snmp_server_id
(Optional) Specifies the name or ID of an existing SNMP server that must be listed.

Description

Use this command to display a concise list or a detailed view of SNMP servers that are configured on the system. This table describes possible outputs.
Table 1. lssnmpserver output
Attribute Value
id Indicates the ID of the SNMP server.
name Indicates the name of the SNMP server.
IP_address Indicates the IP address of the SNMP server.
error Indicates whether the server receives error notifications. The values are on or off.
warning Indicates whether the server receives warning notifications. The values are on or off.
info Indicates whether the server receives information notifications. The values are on or off.
port Indicates the remote port number for the SNMP server. This value is in the range of 1 - 65535.
community Indicates the community name for the SNMPv2 server. This value is blank for SNMPv3 servers.
version Indicates the SNMP server version. The values are 2 or 3.
securitylevel Indicates the SNMPv3 security level. The values are blank, no_auth_no_priv, auth_no_priv, or auth_priv.
engineid Indicates the SNMPv3 server engine ID. The values are blank or a 32-byte character string with the leading 0x removed.
securityname Indicates the SNMPv3 server security name. The values are blank or a max 32-character string.
authprotocol Indicates the SNMPv3 server authentication protocol. The values are blank, sha, or md5.
authpassphrase Indicates the SNMPv3 server authentication password. The values are blank or auth_password.
privprotocol Indicates the SNMPv3 server privacy protocol. The values are blank, aes, or des.
privpassphrase Indicates the SNMPv3 server privacy password. The values are blank or priv_password.

A concise invocation example

lssnmpserver
The concise resulting output:
id name  IP_address  error warning info port community version securitylevel
0  snmp0 9.174.157.8 on    on      on   162  public    2
1  snmp1 9.174.157.9 on    on      on   162            3       authPriv

A detailed invocation example for an SNMPv2 server

lssnmpserver 0
The detailed resulting output:
id 0
name snmp0
IP_address 9.174.157.8
error on
warning on
info on
port 162
community public
version 2
securitylevel
engineid
securityname
authprotocol
authpassphrase
privprotocol
privpassphrase

A detailed invocation example for an SNMPv3 server

lssnmpserver 1
The detailed resulting output:
id 1
name snmp1
IP_address 9.174.157.9
error on
warning on
info on
port 162
community
version 3
securitylevel authPriv
engineid 80000002045370656356000000C021800002
securityname mcr-tb5-cluster-29
authprotocol sha
authpassphrase cluster_auth_pw
privprotocol aes
privpassphrase cluster_priv_pw