API Guide

1. CONFIGURATION 模式下分配对象跟踪唯一 ID 编号 1 500
track track-id
2. 监控跟踪配置模式下的接口。
interface ethernet node/slot/port[:subport]
配置接口跟踪
OS10(config)# track 10
OS10(conf-track-10)# interface ethernet 1/1/7 line-protocol
查看正在运行的配置
OS10(conf-track-10)# do show running-configuration
! Version 10.1.9999P.2281
! Last configuration change at Jul 27 03:24:01 2016
!
aaa authentication system:local
!
interface ethernet1/1/1
ip address 10.1.1.1/16
no switchport
no shutdown
!
vrrp-group 1
priority 200
virtual-address 10.1.1.1
!
interface ethernet1/1/2
switchport access vlan 1
no shutdown
!
interface ethernet1/1/3
switchport access vlan 1
no shutdown
!
interface ethernet1/1/4
switchport access vlan 1
no shutdown
!
interface ethernet1/1/5
switchport access vlan 1
no shutdown
!
interface ethernet1/1/6
switchport access vlan 1
no shutdown
!
.....
.....
interface vlan1
no shutdown
!
interface mgmt1/1/1
no shutdown
!
support-assist
!
track 10
interface ethernet1/1/7 line-protocol
要将跟踪对象与 VRRP 组关联请在 VRRP GROUP CONFIGURATION 模式下使用 VRRP track 命令。
718 3