Adding TUNNEL to the PHY_UPDOWN log mnemonic for tunnel interfaces

About adding TUNNEL to the PHY_UPDOWN log mnemonic for tunnel interfaces

This feature adds the TUNNEL string to the PHY_UPDOWN log mnemonic for tunnel interfaces. Use this feature if you want to identify the interface state change logs for tunnel interfaces by using a regular expression that contains the TUNNEL string.

A tunnel interface state change log without the TUNNEL string in the mnemonic:

%Jan 8 18:45:33:621 2011 HPE IFNET/3/PHY_UPDOWN: Physical state on the interface Tunnel1 changed to down.

A tunnel interface state change log with the TUNNEL string in the mnemonic:

%Jan 8 18:45:33:621 2011 HPE IFNET/3/TUNNEL_PHY_UPDOWN: Physical state on the interface Tunnel1 changed to down.

Procedure

  1. Enter system view.

    system-view

  2. Add the TUNNEL string to the PHY_UPDOWN log mnemonic for tunnel interfaces.

    tunnel log updown with-tag

    By default, the PHY_UPDOWN log mnemonic for tunnel interfaces does not contain the TUNNEL string.