xaui
xaui - XAUI power and clock settings
SYNOPSIS
xaui sub-command options
DESCRIPTION
The xaui command is used to change power and clock settings on 10Gigabit XAUI cards.
STANDARD OPTIONS
clockType
Indicates whether the XAUI clock is internally or externally supplied. Options include:
Option |
Value |
Usage |
---|---|---|
xauiClockInternal |
0 |
(default) Timing is supplied by the internally generated clock. |
xauiClockExternal |
1 |
Timing is supplied by an externally provided clock. |
extraClockExternal1
(default = 1)
extraClockExternal2
(default = 1)
podPower true | false
If true, the card applies 5V power limited to 500ma at pin 5 of the D15 MDIO connector on the front panel. (default = 0)
userPower true | false
If true, the card applies 5V power limited to 500ma at pin 4 of the D15 MDIO connector on the front panel. (default = 1)
COMMANDS
The xaui command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.
xaui cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the xaui command.
xaui get chasID cardID portID
Gets the current XAUI configuration of the indicated port. Call this command before calling xaui cget option.
xaui set chasID cardID portID
Sets the XAUI configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the xaui 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
}
# Apply pod and user power to MDIO pins 5 and 4, respectively
xaui setDefault
xaui config -podPower true
xaui config -userPower true
if [xaui set $chas $card 1] {
ixPuts "Can't xaui 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
}