Using syslog Forwarding in Non-Interactive Mode
This section outlines how to use syslog forwarding in non-interactive mode.
To use remote access control, select the SSH commands from the following table.
Note -
You can send multiple option/setting pairs in the same SSH command:
ssh -q user@gateway syslog ip=192.168.100.9 port=9001
protocol=tcp
Table 6 Syslog Forwarding SSH Commands
|
|
|
|
|
|
syslog
|
ip
|
ip address
|
Valid IP address for the remote syslog server
|
ssh -q user@gateway syslog
ip==192.0.2.0
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [ip] to
[192.0.2.0]
|
|
port
|
port
|
Valid port number for the remote syslog server
|
ssh -q user@gateway syslog
port=9001
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [port] to
[9001]
|
|
protocol
|
tcp/udp
|
Protocol used to forward syslog data
|
ssh -q user@gateway syslog
protocol=tcp
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [protocol] to
[tcp]
|
|
forward
|
enabled/disabled
|
Toggle remote syslog forwarding
|
ssh -q user@gateway syslog
forward=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [forward] to
[disabled]
|
|
mapping
|
enabled/disabled
|
Toggle whether to map UID to GID in outgoing messages
|
ssh -q user@gateway syslog
mapping=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [mapping] to
[disabled]
|
|
ssh
|
enabled/disabled
|
Toggle whether to forward SSH-related information
|
ssh -q user@gateway syslog
ssh=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] set [ssh] to [disabled]
|
|
firewall
|
enabled/disabled
|
Toggle whether to forward firewall-related information
|
ssh -q user@gateway syslog
firewall=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [firewall] to
[disabled]
|
|
oem_audit
|
enabled/disabled
|
Toggle whether to forward OEM audit-related information
|
ssh -q user@gateway syslog
oem_audit=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [oem_audit] to
[disabled]
|
|
session
|
enabled/disabled
|
Toggle whether to forward session related information
|
ssh -q user@gateway syslog
session=disabled
|
YYYY-MM-DD HH:MM:SS [INFO] Successfully set [session] to
[disabled]
|
|
status
|
|
Return the current syslog forwarding settings
|
ssh -q user@gateway syslog status
|
YYYY-MM-DD HH:MM:SS [INFO]------------- SyslogBroadcaster
Configuration ------------ Message Forward Status =
disabled Host IP Address = 192.168.100.9 Host Port Number = 9001
Host Time Zone = GMT firewall Message Forward = disabled ssh
Message Forward = disabled session Message Forward =
disabled UID/GID Mapping = disabled Protocol Used to Forward =
TCP OEM Audit Message Forward =
enable-----------------------------------------------------------
|
|