lasi

lasi - configure the link alarm status interrupt settings for XENPAK modules

SYNOPSIS

lasi sub-command options

DESCRIPTION

The lasi command is used to configure the OUI address and interrupt settings associated with XENPAK modules. The OUI (Organizationally Unique Identifier) device address ouiDeviceAddress allows communications with the XENPAK device registers that control the conditions under which an alarm interrupt occurs. The particular conditions are controlled by the rxAlarmControlRegister, txAlarmControlRegister and controlRegister. The particular values in these control registers is covered in the XENPAK 10 GIgabit Ethernet MSA, Issue 3.0.

STANDARD OPTIONS
controlRegister

The value for the control register. (default = "00 00")

enableAutoDetected
OUIDeviceAddress
enable / disable

Enables the ability of the port to automatically detect the OUI device address. (default = disable)

enableMonitoring
true | false

Enables active monitoring of the LASI status registers so as to clear the interrupt signal. (default = false)

ouiDeviceAddress

The OUI device address for the LASI registers. (default = 3)

rxAlarmControlRegister

The receive alarm register contents. (default = "00 00")

txAlarmControlRegister

The transmit alarm register contents. (default = "00 00")

COMMANDS

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

lasi cget option

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

lasi config option value

Modify the lasi configuration options of the port. If no option is specified, returns a list describing all of the available lasi options (see STANDARD OPTIONS) for port.

lasi get chasID cardID portID

Gets the current lasi configuration of the port with id portID on card cardID, chassis chasID. Call this command before calling lasi cget option to get the value of the configuration option. Specific errors are:

lasi set chasID cardID portID

Sets the lasi configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the lasi config option value command. Specific errors are:

lasi setDefault

Sets to IxTclHal default values for all configuration options.

EXAMPLES

package require IxTclHal

 

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 chId [ixGetChassisID $host]

 

set cardId 60

set portId 1

set portList [list [list $chId $cardId $portId]]

 

# 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

}

 

set retCode "PASS"

 

lasi setDefault

 

lasi config -ouiDeviceAddress 1

lasi config -rxAlarmControlRegister {ff ff}

lasi config -txAlarmControlRegister 0x55

lasi config -controlRegister 0xffff

 

if {[lasi set $chId $cardId $portId]} {

ixPuts $::ixErrorInfo

set retCode "FAIL"

break

}

 

# 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

}

 

return $retCode

 

 

SEE ALSO

mii.