Follow

Syslog commands allow you to log and store InfiniBox events.


config.notifications.syslog.define 

ROLE: Admin 

Description

Create a new syslog notification target.

Define a syslog notification target by providing a host and a port. You can override the default UDP protocol with TCP. You can override the default Facility local7 with any other value between local0 and local7. Facility is a part of the Syslog message Priority and local0 contributes to the calculation that yields the highest priority. 

Syntaxconfig.notifications.syslog.define name=NAME host=HOSTNAME [port=PORT] [protocol=SYSLOGPROTOCOL] [facility=SYSLOGFACILITY] 
Argumentshost A valid hostname or IPv4 address 
name A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped. 
facility local0, local1, local2, local3, local4, local5, local6 or local7 
protocolTCP or UDP 
portAn integer number between 1 and 65535 (inclusive)
Examplefconfig.notifications.syslog.define name=target0 host=syslog1 

Syslog notification target0 syslog1 created 



config.notifications.syslog.modify 

ROLE: Admin 

Description

Modify syslog notification target. 

Syntaxconfig.notifications.syslog.modify syslog=SYSLOGTARGET [host=HOSTNAME] [port=PORT] [protocol=SYSLOGPROTOCOL] [facility=SYSLOGFACILITY] 
ArgumentsportAn integer number between 1 and 65535 (inclusive)
host  A valid hostname or IPv4 address 
syslog Name of an existing syslog notification target 
protocolTCP or UDP 
facilitylocal0, local1, local2, local3, local4, local5, local6 or local7 
Exampleconfig.notifications.syslog.modify name=target0 host=syslog2 

Syslog notification target0 syslog2 updated 



config.notifications.syslog.query 

ROLE: All Roles

Description

List existing syslog notification targets. 

Syntaxconfig.notifications.syslog.query [syslog=SYSLOGTARGET]  
Argumentssyslog Name of an existing syslog notification target 
Exampleconfig.notifications.syslog.query 

NAME    HOST   PORT PROTOCOL  FACILITY
target0 syslog 25   UDP       local0
target1 syslog 25   TCP       local1  



config.notifications.syslog.remove 

ROLE: Admin

Description

Delete syslog notification target. 

Syntaxconfig.notifications.syslog.remove syslog=SYSLOGTARGET 
Argumentssyslog Name of an existing syslog notification target 
Exampleconfig.notifications.syslog.remove name=target1 

Syslog notification target target1 deleted 



config.notifications.syslog.rename 

ROLE: Admin 

Description

Rename syslog notification target. 

Syntaxconfig.notifications.syslog.rename syslog=SYSLOGTARGET new_name=NAME 
Argumentsnew_name A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped. 

syslog Name of an existing syslog notification target 
Exampleconfig.notifications.syslog.rename name=SYSLOGTARGET new_name=NAME 

Syslog notification target target1 renamed to target2 



config.notifications.syslog.test 

ROLE: Admin

Description

Test syslog notification target. 

Syntaxconfig.notifications.syslog.test syslog=SYSLOGTARGET 
Argumentssyslog Name of an existing syslog notification target 
Exampleconfig.notifications.syslog.test name=SYSLOGTARGET 

Syslog notification target target1 tested successfully 

Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:34:21 UTC

Comments