10-High Availability Command Reference

HomeSupportSwitchesS6300 SeriesReference GuidesCommand ReferencesH3C S6300 Switch Series Command References-Release 243x-6W10010-High Availability Command Reference
09-Track commands
Title Size Download
09-Track commands 54.99 KB

Track commands

display track

Use display track to display track entry information.

Syntax

display track { track-entry-number | all }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

all: Specifies all track entries.

Examples

# Display information about all track entries.

<Sysname> display track all

Track ID: 1

  State: Positive

  Duration: 0 days 0 hours 0 minutes 7 seconds

  Notification delay: Positive 20, Negative 30 (in seconds)

  Tracked object:

    NQA entry: admin test

    Reaction: 10

Track ID: 2

  State: NotReady

  Duration: 0 days 0 hours 0 minutes 32 seconds

  Notification delay: Positive 20, Negative 30 (in seconds)

  Tracked object:

    BFD session mode: Echo

    Outgoing interface: Vlan-interface2

    VPN instance name: -

    Remote IP: 192.168.40.1

    Local IP: 192.168.40.2

Track ID: 3

  State: Negative

  Duration: 0 days 0 hours 0 minutes 32 seconds

  Notification delay: Positive 20, Negative 30 (in seconds)

  Tracked object:

    Interface:  Vlan-interface3

    Protocol: IPv4

Track ID: 4

  State: Negative

  Duration: 0 days 0 hours 0 minutes 32 seconds

  Notification delay: Positive 20, Negative 30 (in seconds)

  Tracked object:

    CFD service instance: 1, MEP ID: 2

Table 1 Command output

Field

Description

Track ID

ID of a track entry.

State

States of a track entry:

·     PositiveThe tracked object operates correctly.

·     NotReadyThe tracked object is invalid.

·     NegativeThe tracked object is abnormal.

Duration

Time period during which the track entry stays in the state.

Notification delay: Positive 20, Negative 30 (in seconds)

·     The Track module notifies the application modules that the status of the track entry changes to Positive after a delay time of 20 seconds.

·     The Track module notifies the application modules that the status of the track entry changes to Negative after a delay time of 30 seconds.

Tracked object

Tracked object associated with the track entry.

NQA entry

NQA operation associated with the track entry.

Reaction

Reaction entry associated with the track entry.

BFD session mode

BFD session mode. Only echo mode is supported.

Outgoing interface

Output interface of BFD echo packets.

VPN instance name

Name of VPN instance to which BFD session packets belong. If the packets belong to a public network, a hyphen (-) is displayed.

Remote IP

Remote IP address of the BFD echo packets.

Local IP

Local IP address of the BFD echo packets.

Interface

Interface to be monitored.

Protocol

Link states or Layer 3 protocol states of the monitored interface:

·     None—Link status of the monitored interface.

·     IPv4IPv4 protocol status of the monitored Layer 3 interface.

·     IPv6IPv6 protocol status of the monitored Layer 3 interface.

 

Related commands

·     track bfd

·     track cfd

·     track interface

·     track interface protocol

·     track nqa

track bfd

Use track bfd to create a track entry and associate it with a BFD session.

Use undo track to remove the track entry.

Syntax

track track-entry-number bfd echo interface interface-type interface-number remote ip remote-ip local ip local-ip [ delay { negative negative-time | positive positive-time } * ]

undo track track-entry-number

Default

No track entry exists.

Views

System view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

interface interface-type interface-number: Specifies the output interface by its type and number of the BFD echo packets.

remote ip remote-ip: Specifies the destination IP address of the BFD echo packets.

local ip local-ip: Specifies the source IP address of the BFD echo packets.

delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.

negative negative-time: Specifies the delay before the Track module notifies the application modules that the status of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.

positive positive-time: Specifies the delay before the Track module notifies the application modules that the status of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.

Usage guidelines

After a track entry is created, you can only use the track bfd delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

When you configure collaboration between Track and BFD, do not configure the virtual IP address of a VRRP group as the local or remote address of a BFD session.

Examples

# Create track entry 1, which uses BFD to monitor the link between local IP address 1.1.1.2 and remote IP address 1.1.1.1 by sending BFD echo packets out from the VLAN-interface 2.

<Sysname> system-view

[Sysname] track 1 bfd echo interface vlan-interface 2 remote ip 1.1.1.1 local ip 1.1.1.2

Related commands

display track

track cfd

Use track cfd to create a track entry and associate it with CFD.

Use undo track to remove the track entry.

Syntax

track track-entry-number cfd cc service-instance instance-id mep mep-id [ delay { negative negative-time | positive positive-time } * ]

undo track track-entry-number

Default

No track entry exists.

Views

System view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.

mep mep-id: Specifies a MEP by its ID in the range of 1 to 8191.

delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.

negative negative-time: Specifies the delay before the Track module notifies the application modules that the status of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.

positive positive-time: Specifies the delay before the Track module notifies the application modules that the status of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.

Usage guidelines

After a track entry is created, you can only use the track cfd delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

Examples

# Create track entry 1, and specify the CFD service instance ID as 2 and MEP ID as 3.

<Sysname> system-view

[Sysname] track 1 cfd cc service-instance 2 mep 3

Related commands

·     display track

·     cfd mep

·     cfd service-instance

track interface

Use track interface to create a track entry and associate it with the link state of the specified interface.

Use undo track to remove the track entry.

Syntax

track track-entry-number interface interface-type interface-number [ delay { negative negative-time | positive positive-time } * ]

undo track track-entry-number

Default

No track entry exists.

Views

System view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

interface-type interface-number: Specifies an interface by its type and number.

delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.

negative negative-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.

positive positive-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.

Usage guidelines

When you create a track entry that is associated with the link state of a specific interface, the state of the track entry is Positive if the link state of the interface is up. The state of the track entry is Negative if the link state of the interface is down.

To display the link state of an interface, use the display ip interface brief command.

After you create a track entry, you can only use the track interface delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

Examples

# Create track entry 1, and associate it with the link state of VLAN-interface 10.

<Sysname> system-view

[Sysname] track 1 interface vlan-interface 10

Related commands

·     display track

·     display ip interface brief (Layer 3—IP Services Command Reference)

track interface protocol

Use track interface protocol to create a track entry and associate it with the protocol state of the specified interface.

Use undo track to remove the track entry.

Syntax

track track-entry-number interface interface-type interface-number protocol { ipv4 | ipv6 } [ delay { negative negative-time | positive positive-time } * ]

undo track track-entry-number

Default

No track entry exists.

Views

System view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

interface-type interface-number: Specifies an interface by its type and number.

ipv4: Monitors the IPv4 protocol state. When the IPv4 protocol state of an interface is up, the state of the track object is Positive. When the IPv4 protocol state of an interface is down, the state of the track object is Negative. To display the IPv4 protocol state of an interface, use the display ip interface brief command.

ipv6: Monitors the IPv6 protocol state. When the IPv6 protocol state of an interface is up, the state of the track object is Positive. When the IPv6 protocol state of an interface is down, the state of the track object is Negative. To display the IPv6 protocol state of an interface, use the display ipv6 interface brief command.

delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.

negative negative-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.

positive positive-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.

Usage guidelines

After a track entry is created, you can only use the track interface protocol delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

Examples

# Create track entry 1, and associate it with the IPv4 protocol state of VLAN-interface 2.

<Sysname> system-view

[Sysname] track 1 interface vlan-interface 2 protocol ipv4

Related commands

·     display track

·     display ip interface brief (Layer 3—IP Services Command Reference)

·     display ipv6 interface brief (Layer 3—IP Services Command Reference)

track nqa

Use track nqa to create a track entry and associate it with the specified reaction entry of the NQA operation.

Use undo track to remove the track entry.

Syntax

track track-entry-number nqa entry admin-name operation-tag reaction item-number [ delay { negative negative-time | positive positive-time } * ]

undo track track-entry-number

Default

No track entry exists.

Views

System view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies the track entry ID in the range of 1 to 1024.

entry admin-name operation-tag: Specifies the NQA operation to be associated with the track entry. The admin-name argument is the name of the NQA operation administrator who creates the NQA operation, and is a case-insensitive string of 1 to 32 characters. The operation-tag argument is the NQA operation tag, a case-insensitive string of 1 to 32 characters.

reaction item-number: Specifies the reaction entry to be associated with the track entry. The item-number argument is the reaction entry ID in the range of 1 to 10.

delay: Specifies the delay before the Track module notifies the application modules of the track entry state change. If you do not specify this keyword, the Track module notifies the application modules immediately when the track entry state changes.

negative negative-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Negative. The negative-time argument represents the delay time in the range of 1 to 300 seconds.

positive positive-time: Specifies the delay before the Track module notifies the application modules that the state of the track entry has changed to Positive. The positive-time argument represents the delay time in the range of 1 to 300 seconds.

Usage guidelines

After a track entry is created, you can only use the track nqa delay command to modify its notification delay settings. To modify other settings, you must delete the entry and create a new one.

Examples

# Create track entry 1, and associate it with reaction entry 3 of the NQA operation admin-test.

<Sysname> system-view

[Sysname] track 1 nqa entry admin test reaction 3

Related commands

display track

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网