Use the lssnmpserver command to return
a concise list or a detailed view of SNMP servers that are configured
on the clustered system (system).
Syntax
lssnmpserver [ -nohdr ] [ -delim delimiter ] [ { snmp_server_name | snmp_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.
- -delimdelimiter
- (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.
A concise invocation example
lssnmpserver -delim :
The
concise resulting output:
id:name:IP_address:error:warning:info:port:community
0:snmp0:192.135.60.4:on:on:on:78:public
1:newserver:192.136.70.7:on:off:off:250:newcommunity
A detailed invocation example
lssnmpserver snmp0
The
detailed resulting output:
id 0
name snmp0
IP_address 192.135.60.4
error on
warning on
info on
port 78
community public