The chsyslogserver command modifies
the parameters of an existing syslog server.
Syntax

>>- svctask -- -- chsyslogserver -- ---------------------------->
>--+------------------------+-- --+---------------------+------->
'- -name -- server_name -' '- -ip -- ip_address -'
>--+-------------------------+-- --+---------------------+-- --->
'- -facility -- facility -' '- -error --+- on --+-'
'- off -'
>--+-----------------------+-- --+--------------------+-- ------>
'- -warning --+- on --+-' '- -info --+- on --+-'
'- off -' '- off -'
>--+- syslog_server_name -+------------------------------------><
'- syslog_server_id ---'
Parameters
- -name server_name
- (Optional) Specifies a name to assign to the syslog server. The
name must be unique. When specifying a server name, syslog is a reserved
word.
- -ip ip_address
- (Optional) Specifies an IP address to assign to the syslog server.
This must be a valid IPv4 or IPv6 address.
- -facility facility
- (Optional) Specifies a facility number to identify the origin
of the message to the receiving server. Servers configured with facility
values of 0 - 3 receive syslog messages in fully-expanded format.
Servers configured with facility values of 4 - 7 receive syslog messages
in concise format.
- -error on | off
- (Optional) Specifies whether the server receives error notifications.
Set to on, error notifications are sent to the syslog
server. Set to off, error notifications are not sent
to the syslog server.
- -warning on | off
- (Optional) Specifies whether the server receives warning notifications.
Set to on, warning notifications are sent to the
syslog server. Set to off, warning notifications
are not sent to the syslog server.
- -info on | off
- (Optional) Specifies whether the server receives information notifications.
Set to on, information notifications are sent to
the syslog server. Set to off, information notifications
are not sent to the syslog server.
- syslog_server_name | syslog_server_id
- (Required) Specifies the name or ID of the server to be modified.
Description
Use
this command to change the settings of an existing syslog server.
You must specify either the current name of the server or the ID returned
at creation time. Use the svcinfo lssyslogserver command
to obtain this ID.
An invocation example
svctask chsyslogserver -facility 5 2
The
resulting output
none