Configuring Link-State

The following procedure lists the steps to configure a Link-State entry. Refer to the S-, K-, and 7100 Series CLI Reference Guide for details about using the commands listed.

Click to expand in new window

Configuring Link-State Entries

Step Task Command(s)
1 In configuration mode, create the tracked object for the desired uplink ports. Refer to the “Tracked Object Manager Configuration” chapter.
2 Create the Link-State entry that associates the tracked object with the desired downstream ports. set link-state track object-name downstream port-string
3 Optionally, display information about the Link-State entry. show link-state [object-name [detail]]
4 Enable force link down on the switch. set forcelinkdown enable

This example creates a port-group tracked object named ls_group, changes the defaults for up/down status message delays for the object, gives the tracked object a description and puts it in service, then configures the Link-State application to use that tracked object and associate it with downstream ports. Force link down is then enabled on the switch.

System(su)->configure
System(su-config)->track ls_group port-group
System(su-config-track-obj)->delay up 5 down 5
System(su-config-track-obj)->description “link-state group1”
System(su-config-track-obj)->port tg.2.1-4
System(su-config-track-obj)->inservice
System(su-config-track-obj)->exit
System(su-config)->exit
System(su)->show track ls_group detail
Description: link-state group1
Track ls_group
 Port-Group tg.2.1-4
  4 ports used [0 up, 4 down]
  threshold up 1, down 0
  speed 0 [aggregate]
 Status is Down
  2 changes, last change   2d18h44m01s
 Delay up 5 seconds, down 5 seconds
 Registrants:
  Link-state
Displayed 1 tracked objects
System(su)->set link-state track ls_group downstream ge.1.1-5
System(su)>show link-state ls_group detail
Link-state ls_group
 Ports
  Uplinks: tg.2.1-4
  Downlinks: ge.1.1-5
 State is Down, Last action shutdown downlinks
  3 state changes, last change   2d18h47m21s ago
Displayed 1 link-state entries
System(su)>set forcelinkdown enable