Starts sending log messages to the specified target.
console | Specifies the console display. |
memory-buffer | Specifies the switch memory buffer. |
nvram | Specifies the switch NVRAM. |
primary-node | Specifies the primary node of a stack. |
backup-node | Specifies the backup node of a stack. |
session | Specifies the current session (including console display). |
syslog | Specifies a syslog target. |
all | Specifies all of the remote syslog servers. |
ipaddress | Specifies the syslog IP address. |
ipPort | Specifies the UDP port number for the syslog target. |
tls_port | Specifies remote Syslog server Transport Layer Security (TLS) for connection type. |
tls_port | TLS port number. |
vr_name | Specifies the virtual router
that can reach the server IP address. Note: User-created VRs are supported only on the platforms listed for
this feature in the
Switch Engine 32.2 Feature License Requirements
document.
|
local0 ... local7 | Specifies the local syslog facility. |
Enabled, for memory buffer and NVRAM; all other targets are disabled by default.
This command starts sending messages to the specified target. By default, the memory-buffer, NVRAM, primary node, and backup node targets are enabled. Other targets must be enabled before messages are sent to those targets.
Configuration changes to the session target are in effect only for the duration of the console display or Telnet session, and are not saved in FLASH. Others are saved in FLASH.
You can also use the following command to enable displaying the log on the console: enable log display
This command is equivalent to the enable log target console-display command.
The following example enables log messages on the current session:
enable log target session
This command was first available in ExtremeXOS 10.1.
The ipPort parameter was first available in ExtremeXOS 11.0.
The udp-port parameter was added in ExtremeXOS 21.1.
Transport Layer Security (TLS) option added in ExtremeXOS 22.1.
This command is available on ExtremeSwitching 5320, 5420, 5520, and 5720 series switches.