11-Track Commands
Chapters Download (31 KB)
Syntax
display track { track-entry-number | all }
View
Any view
Default Level
1: Monitor level
Parameters
track-entry-number: Displays information about the specified Track object, in the range 1 to 1024.
all: Displays information about all the Track objects.
Description
Use the display track command to display Track object information.
Examples
# Display information about all the Track objects.
<Sysname> display track all
Track ID: 3
Status: Negative
Reference object:
Track interface :
Interface status : Inserted
Interface : Vlan-interface3
Protocol : IPv4
Table 1-1 display track command output description
Field |
Description |
Track ID |
ID of a Track object |
Status |
Status of a Track object: l Positive: The Track object is normal. l Invalid: The Track object is invalid. l Negative: The Track object is abnormal. |
Reference object |
The objects referenced by the Track object |
Track interface |
Information of the interface associated with the Track oject |
Interface status |
Interface status, which takes the two values: l Inserted l Removed |
Interface |
Interface to be monitored |
Protocol |
Physical status or Layer 3 protocol status of the monitored interface: l None: Physical status of the monitored interface. l IPv4: IPv4 status of the monitored Layer 3 interface.. |
Syntax
track track-entry-number interface interface-type interface-number
undo track track-entry-number
View
System view
Default Level
2: System level
Parameters
track-entry-number: Track object ID, in the range 1 to 1024.
interface-type interface-number: Type and number of the interface to be monitored.
Description
Use the track interface command to create a Track object to be associated with the physical status of a specified interface.
Use the undo track command to remove the created Track object.
By default, no Track object to be associated with the physical status of a specified interface is created.
Note that:
l After a track object is created, you cannot use the track interface command to modify it; you must reconfigure it after deleting the track object.
l After a track object to be associated with the physical status of a specified interface is created, the status of the track object is Positive if the physical status of the interface is up; the status of the track object is Negative if the physical status of the interface is down. You can use the display ip interface brief command to display the physical status of an interface.
Related commands: display ip interface brief in IP Addressing Commands in the IP Services Volume, display track.
Examples
# Create Track object 1 to be associated with the physical status of interface GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] track 1 interface gigabitethernet1/0/1
Syntax
track track-entry-number interface interface-type interface-number protocol ipv4
undo track track-entry-number
View
System view
Default Level
2: System level
Parameters
track-entry-number: Track object ID, in the range 1 to 1024.
interface-type interface-number: Type and number of the interface to be monitored.
ipv4: IPv4 protocol status of the Layer 3 interface to be monitored. When the IPv4 protocol status of an interface is up, the status of the track object is Positive; when the IPv4 protocol status of an interface is down, the status of the track object is Negative. You can use the display ip interface brief command to display the IPv4 protocol status of an interface.
Description
Use the track interface protocol command to create a Track object to be associated with the Layer 3 protocol status of a specified interface.
Use the undo track command to remove the created Track object.
By default, no Track object to be associated with the Layer 3 protocol status of a specified interface is created.
Note that after a track object is created, you cannot use the track interface protocol command to modify it; you must reconfigure it after deleting the track object.
Related commands: display track, display ip interface brief in IP Addressing Commands in the IP Services Volume.
Examples
# Create Track object 1 to be associated with the IPv4 protocol status of VLAN-interface 2.
<Sysname> system-view
[Sysname] track 1 interface vlan-interface 2 protocol ipv4