enable log target

enable log target [console | memory-buffer | nvram | primary-msm |primary-node| backup-msm | backup-node| session | syslog [all | ipaddress | ipPort] {vr vr_name} [local0...local7]]]

Description

Starts sending log messages to the specified target.

Syntax Description

console Specifies the console display.
memory-buffer Specifies the switch memory buffer.
nvram Specifies the switch NVRAM.
primary-msm Specifies the primary MSM.
Note: This parameter is available only on modular switches.
primary-node Specifies the primary node of a stack.
backup-msm Specifies the backup MSM.
Note: This parameter is available only on modular switches.
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.
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 Feature License Requirements document.
local0 ... local7 Specifies the local syslog facility.

Default

Enabled, for memory buffer and NVRAM; all other targets are disabled by default.

Usage Guidelines

This command starts sending messages to the specified target. By default, the memory-buffer, NVRAM, primary MSM/MM, and backup MSM/MM 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.

Modular Switches Only

Note that the backup-msm target is only active on the primary MSM/MM, and the primary-msm target is only active on the backup MSM/MM.

Example

The following example enables log messages on the current session:

enable log target session

History

This command was first available in ExtremeXOS 10.1.

The primary-msm and backup-msm options were first available in ExtremeXOS 11.0.

The ipPort parameter was first available in ExtremeXOS 11.0.

The UDP port parameter was added in ExtremeXOS 16.2.

Platform Availability

This command is available on all platforms.