xfp

xfp - UNIPHY-XFP settings

SYNOPSIS

xfp sub-command options

DESCRIPTION

The xfp command is used to change monitor settings for UNIPHY-XFP cards.

STANDARD OPTIONS
enableMonitorLos
true | false

If true, enables the port to monitor Loss of Signal. In this case, the Loss of Signal status is used to determine Link State. (default = true)

enableMonitorModule
ReadySignal
true | false

If true, enables the port to monitor whether the module is ready. In this case, no transmit, received or statistics operations are performed until the module is ready. (default = true)

COMMANDS

The xfp command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

xfp cget option

Returns the current value of the configuration option given by option. Option may have any of the values accepted by the xfp command.

xfp get chasID cardID portID

Gets the current xfp configuration of the indicated port. Call this command before calling xfp cget option.

xfp set chasID cardID portID

Sets the xfp configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the xfp config option value command.

EXAMPLES

package require IxTclHal

# Connect to chassis and get chassis ID

set host localhost

set username user

# Check if we're running on UNIX - connect to the TCL Server

# which must be running on the chassis

if [isUNIX] {

if [ixConnectToTclServer $host] {

ixPuts "Could not connect to $host"

return 1

}

}

# Now connect to the chassis

if [ixConnectToChassis $host] {

ixPuts $::ixErrorInfo

return 1

}

# Get the chassis ID to use in port lists

set chas [ixGetChassisID $host]

# Assuming that a VSR card is in slot 59

set card 59

set portList [list [list $chas $card 1]]

# Login before taking ownership

if [ixLogin $username] {

ixPuts $::ixErrorInfo

return 1

}

# Take ownership of the ports we'll use

if [ixTakeOwnership $portList] {

ixPuts $::ixErrorInfo

return 1

}

# see if the card supports XAUI

if {[port isValidFeature portFeatureXaui $chas $card 1] == 0} {

ixPuts "Card $card is not a XAUI card"

return 1

}

# Disable both monitor settings

xfp config -enableMonitorLos false

xfp config -enableMonitorModuleReadySignal false

if [xfp set $chas $card 1] {

ixPuts "Can't xfp set $chas.$card.1"

return 1

}

ixWritePortsToHardware portList

# Let go of the ports that we reserved

ixClearOwnership $portList

# Disconnect from the chassis we're using

ixDisconnectFromChassis $host

# If we're running on UNIX, disconnect from the TCL Server

if [isUNIX] {

ixDisconnectTclServer $host

}

SEE ALSO