Purpose
Command or Action
Specifies the interface to track the protocol state.
interface type interface-path-id
Step 4
Example:
RP/0/RP0/CPU0:router(config-track-line-prot)#
interface atm 0/2/0/0.1
•
type
—
Specifies the interface type. For more information,
use the question mark (?) online help function.
•
interface-path-id
—
Identifies a physical interface or a virtual
interface.
Use the
show interfaces
command to see a list of all
possible interfaces currently configured on the router.
Note
The loopback and null interfaces are always in the up
state and, therefore, cannot be tracked.
Note
Exits the track line protocol configuration mode.
exit
Example:
RP/0/RP0/CPU0:router(config-track-line-prot)#
exit
Step 5
(Optional)
Schedules the delay that can occur between tracking whether the
object is up or down.
delay
{
up seconds
|
down seconds
}
Example:
RP/0/RP0/CPU0:router(config-track)# delay up
10
Step 6
Saves configuration changes.
Use one of the following commands:
Step 7
•
end
•
When you issue the
end
command, the system prompts you
to commit changes:
Uncommitted changes found, commit them
•
commit
Example:
RP/0/RP0/CPU0:router(config-track)# end
before exiting(yes/no/cancel)?
[cancel]:
◦
Entering
yes
saves configuration changes to the running
configuration file, exits the configuration session, and
returns the router to EXEC mode.
or
RP/0/RP0/CPU0:router(config-track)# commit
◦
Entering
no
exits the configuration session and returns
the router to EXEC mode without committing the
configuration changes.
◦
Entering
cancel
leaves the router in the current
configuration session without exiting or committing
the configuration changes.
•
Use the
commit
command to save the configuration changes
to the running configuration file and remain within the
configuration session.
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
47
Implementing Object Tracking
Tracking the Line Protocol State of an Interface