lssyslogserver

The lssyslogserver command displays a list of Syslog servers.

Read syntax diagramSkip visual syntax diagram lssyslogserver  -s -l -hmc 1 2 all  -state active inactive server_name ... | -

Parameters

-s | -l
(Optional) Displays a shorter version of the command output. The output includes the server name, IP address, state, and HMC. This value is the default.
Note: The -s and -l parameters cannot be used together.
The optional -l (long) parameter displays default output plus more attributes.
-hmc 1 | 2 | all
(Optional) The HMC that you want to query.
  • -hmc 1 specifies the primary HMC
  • -hmc 2 specifies the secondary HMC.
  • The default value all specifies the primary HMC on a single HMC system, and specifies both the primary and secondary HMCs on a dual HMC system.
-state active|inactive
(Optional) Whether the current server is active or not.
server_name| -
(Optional) The Syslog server. Alternatively, the command accepts input from stdin when the dash (-) is specified.

Example: Displaying a list of Syslog servers

dscli> lssyslogserver
Output
Fri Aug 17 17:23:49 PST 2017 IBM DSCLI Version 5.0.0.0 DS: IBM.2107-75A128
name      IP address      port    state      access    HMC

syslog1   9.100.75.7      514      active     online     2
syslog2   9.123.236.180   514     inactive    online     1

Example: Displaying a list of Syslog servers

dscli> lssyslogserver -1
The resulting output
Fri Aug 17 17:23:49 PST 2016 IBM DSCLI Version 5.0.0.0 DS: IBM.2107-75A128
name      IP address      port   state       access     type           protocol   HMC

syslog1   9.100.75.7      514    active      online     audit          tls        2
syslog2   9.123.236.180   514    inactive    online     event message  tls        1 

Output definitions

name
Name of the Syslog server.
IP_address
IP address of the Syslog server.
port
Communication port of the Syslog server.
state
Whether the Syslog server is active or not.
access
Whether the Syslog server is accessible or not. Unknown displays when the information is not available.
protocol tcp | tls
Protocol type.
HMC
Which HMC forwards its audit log to the Syslog server. The primary HMC is indicated by "1" and the secondary is indicated by "2". The output displays this value only when you specify the -l parameter.