logging remote server
Use this command to set a syslog server.
OcNOS supports logging messages to a syslog server in addition to logging to a file or the console (local or SSH/telnet console). OcNOS messages can be logged to a local syslog server (the machine on which OcNOS executes) as well as to one or more remote syslog servers.
Use the no form of this command to remove a syslog server.
Note: Maximum 8 remote log servers can be configured.
Command Syntax
ogging remote server (A.B.C.D|X:X::X:X|HOSTNAME) ((0|1|2|3|4|5|6|7)|) (port <1024-65535>|)(vrf management|)
no logging remote server (A.B.C.D|X:X::X:X|HOSTNAME) ((0|1|2|3|4|5|6|7)|) (port|)(vrf management|)
Parameters
A.B.C.D
IPv4 address
X:X::X:X
IPv6 address
HOSTNAME
Host name; specify localhost to log locally
0
Emergency
1
Alert
2
Critical
3
Error
4
Notification
5
Informational
6
Debug informational
7
Debug detailed
<1024-65535>
Port number Default port is 514
vrf management
Virtual Routing and Forwarding name
Note: Severity at which messages are logged as shown in
Table 32-94. If not specified, the default is 7.
Default
If not specified, the default severity at which messages are logged is 7 (debug detailed).
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Examples
#configure terminal
(config)#logging remote server MyLogHost vrf management
(config)#no feature rsyslog vrf management
(config)# (config)#feature rsyslog
(config)#logging remote server 10.10.10.10 7
Note: In the latter configuration, the default VRF does not need not to be specified in the command.
Last modified date: 10/19/2023