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.
Maximum 8 remote log servers can be configured.
Command Syntax
logging 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
vrf management
Defines the management VRF instance.
vrf NAME
Specify the user-defined VRF instance name.
Severity at which messages are logged as shown in Table 38. Syslog severities. 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.4.Added VRF NAME
parameter in OcNOS version 6.5.3.
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
In the latter configuration, the default VRF does not need not to be specified in the command.