Disabling up/down log output on a port, Configuration tasks, Configuration example – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 122: Disabling up/down log output on a port -7

Advertising
background image

15-7

To do…

Use the command…

Remarks

Set the link type for the port as
trunk

port link-type

trunk

Required

Set the default VLAN ID for the
trunk port

port trunk pvid vlan vlan-id

Optional
By default, the VLAN of a
trunk port is VLAN 1.

Add the current trunk port into the
specified VLAN

port trunk permit vlan

{ vlan-id-list |

all

}

Optional

Disabling Up/Down Log Output on a Port

An Ethernet port has two physical link statuses: UP and Down. When the link status of an Ethernet port
changes, the device sends log information to the log server, which then acts accordingly. If the status of
Ethernet ports changes frequently, the device sends log information to the log server frequently,
burdening the log server and consuming plenty of network resources.

To solve this problem, you can disable the Up/Down log output function on some ports, so as to reduce
the quantity of log information output to the log server.

After you allow a port to output the Up/Down log information, if the physical link status of the port does
not change, the device does not send log information to the log server but monitors the port in real time.

Configuration tasks

Follow these steps to disable a port from outputting UP/Down log information:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet port view

interface interface-type

interface-number

Disable a port from outputting
UP/Down Log Information

undo enable log updown

Required
By default, a port is allowed to output the
UP/Down log information.

Configuration example

# By default, port GigabitEthernet 1/0/1 is allowed to output the Up/Down log information. Execute the

shutdown

command or the undo shutdown command on GigabitEthernet 1/0/1, and the system

outputs Up/Down log information of GigabitEthernet 1/0/1.

<device> system-view

[device] interface GigabitEthernet 1/0/1

[device-GigabitEthernet1/0/1] shutdown

[device-GigabitEthernet1/0/1]

%Apr 2 08:11:14:220 2000 device L2INF/5/PORT LINK STATUS CHANGE:- 1 -

GigabitEthernet1/0/1 is DOWN

Advertising