port-track interface

To enable port tracking for specific interfaces, use the port-track interface command. To disable this feature, use the no form of this command.

port-track interface {fc slot/port | san-port-channel port} [vsan vsan-id]

no port-track interface {fc slot/port | san-port-channel port} [vsan vsan-id]

Syntax Description

fc slot/port

Specifies a Fibre Channel interface.

san-port-channel port

Specifies a SAN port channel interface. The range is from 1 to 128.

vsan vsan-id

(Optional) Specifies a VSAN ID. The range is from 1 to 4093.


Command Default

None

Command Modes

Interface configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Usage Guidelines

When the port that an interface is tracking goes down, the interface also goes down. When the tracked port comes back up, the linked interface also comes back up. Use the port-track force-shut command to keep the linked interface down.

Examples

This example shows how to enable port tracking for specific interfaces:

switch(config)# interface fc 2/3 switch(config-if)# port-track interface san-port-channel 2 

Related Commands

Command
Description

feature port-track

Enables port tracking.

port-track force-shut

Forcefully shuts an interface for port tracking.

show interface fc

Displays configuration and status information for a specified Fibre Channel interface.

show interface san-port-channel

Displays configuration and status information for a specified SAN port channel interface.