disable log target

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

Description

Stops sending log messages to the specified target.

In a stack, this command is applicable only to Master and Backup nodes and not applicable to the standby nodes.

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 in a stack.
backup-msm Specifies the backup MSM.
Note: This parameter is available only on modular switches.
backup-node Specifies the backup node in 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 host name or 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, NVRAM, primary MSM, and backup MSM/MM; all other targets are disabled by default.

Usage Guidelines

This command stops 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. Changes to the other targets are saved to FLASH.

You can also use the following command to disable displaying the log on the console: disable log display

The disable log display command is equivalent to disable 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 disables log messages to the current session:

disable 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 21.1.

Platform Availability

This command is available on all platforms.