autoDetectInstrumentation

autoDetectInstrumentation - configure auto-detection port parameters.

SYNOPSIS

autoDectectInstrumentation sub-command options

DESCRIPTION

The autoDectectInstrumentation command is used to configure the auto detection receive mode port options.

STANDARD OPTIONS

 

enableSignatureMask

true/false

Enables a mask of for the auto detect signature (default = false).

enableTxAutomatic

Instrumentation

Transmit side only. Enables/disables the transmit options necessary to generate auto-detect instrumentation streams.

signature

Sets the auto detect signature (default = 87 73 67 49 42 87 11 80 08 71 18 05)

signatureMask

Sets the signature mask.

startOfScan

Sets an offset for where in the packet the auto detect should start looking for the signature (in bytes).

enableMisdirected

PacketMask

true/false

Enables/disables misdirected packet detection (default = false).

enableMisdirectedAISFilterIgnore

true/false

Enables/disables ignore misdirected AIS filter (default = false).

misdirectedPacketMask

Sets the misdirected packet mask

(Default = '00 00 00 00 00 00 00 00 00 00 00 00')

enablePRBS

true/false

Enables the stream to transmit PRBS packets. (default = false)

PRBS is enabled on a per-port basis for capture of PRBS packets.

Note: This parameter is not supported by all load modules.

COMMANDS

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

autoDetectInstrumentation cget option

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

autoDetectInstrumentation getCircuitTx chasID cardID portID [circuitID] streamID

Gets the current configuration of the stream with id streamID in the circuit with circuitID on port portID, card cardID, chassis chasID from its hardware.

autoDetectInstrumentation getQueueTx chasID cardID portID [queueID] [streamID] [sequenceType]

Gets the current transmit auto detect instrumentation configuration of the ATM port with ID portID on card cardID, chassis chasID. This command uses the queue ID to specify the correct queue. The sequenceType optional argument indicates whether the settings apply to all modes or one of the modes.

Option

Value

Usage

streamSequenceTypeAll

0

(default) apply to flows and streams

streamSequenceTypeStreams

1

apply to streams only

streamSequenceTypeFlows

2

apply to flows only

Call this command before calling autoDetectInstrumentation cget option to get the value of the configuration option. Specific errors are:

autoDetectInstrumentation getRx chasID cardID portID

Gets the current receive auto detect instrumentation configuration of the port with ID portID on card cardID, chassis chasID. Call this command before calling autoDetectInstrumentation cget option to get the value of the configuration option. Specific errors are:

autoDetectInstrumentation getTx chasID cardID portID [streamID sequenceType]

Gets the current transmit auto detect instrumentation configuration of the port with ID portID on card cardID, chassis chasID. This command can also use the stream ID. The sequenceType optional argument indicates whether the settings apply to all modes or one of the modes.

Option

Value

Usage

streamSequenceTypeAll

0

(default) apply to flows and streams

streamSequenceTypeStreams

1

apply to streams only

streamSequenceTypeFlows

2

apply to flows only

Call this command before calling autoDetectInstrumentation cget option to get the value of the configuration option. Specific errors are:

autoDetectInstrumentation setCircuitTx chasID cardID portID [circuitD] streamID

Sets the configuration of the stream with id streamID on its circuit circuitID on port portID, card cardID, chassis chasID in IxHAL by reading the configuration option values set by the autoDetectInstrumentation config option value command.

autoDetectInstrumentation set Defaults

Sets to IxTclHal default values for all configuration options.

autoDetectInstrumentation setQueueTx chasID cardID portID [queueID] [streamID] [sequenceType]

Sets the transmit auto detect instrumentation configuration on the ATM port with ID portID on card cardID, chassis chasID by reading the configuration option values set by the autoDetectInstrumentation config option command. This command uses queue ID to specify which ATM queue on the port should be used. The sequenceType optional argument indicates whether the settings apply to all modes or one of the modes.

Option

Value

Usage

streamSequenceTypeAll

0

(default) apply to flows and streams

streamSequenceTypeStreams

1

apply to streams only

streamSequenceTypeFlows

2

apply to flows only

Specific errors are:

autoDetectInstrumentation setRx chasID cardID portID

Sets the receive auto detect instrumentation configuration of the port with ID portID on card cardID, chassis chasID by reading the configuration option values set by the autoDetectInstrumentation config option command. Specific errors are:

autoDetectInstrumentation setTx chasID cardID portID [streamID sequenceType]

Sets the transmit auto detect instrumentation configuration of the port with ID portID on card cardID, chassis chasID by reading the configuration option values set by the autoDetectInstrumentation config option command. This command can also use the stream ID. The sequenceType optional argument indicates whether the settings apply to all modes or one of the modes.

Option

Value

Usage

streamSequenceTypeAll

0

(default) apply to flows and streams

streamSequenceTypeStreams

1

apply to streams only

streamSequenceTypeFlows

2

apply to flows only

Specific errors are:

EXAMPLES

package req IxTclHal

set hostname woodstock

if {[ixConnectToChassis $hostname]} {

errorMsg "error connecting $hostname chassis"

return "FAIL"

}

set chassId [chassis cget -id]

set cardId 2

set portId 1

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

if {[port get $chassId $cardId $portId]} {

errorMsg "error getting port on $chassId $cardId $portId "

}

 

if {[port isValidFeature $chassId $cardId $portId $::portFeatureAutoDetectRx]} {

port config -enableAutoDetectInstrumentation $::true

if {[port set $chassId $cardId $portId]} {

errorMsg "error setting port on \

$chassId $cardId $portId "

}

autoDetectInstrumentation setDefault

autoDetectInstrumentation config -startOfScan 26

autoDetectInstrumentation config -signature \

"33 44 44 44 44 44 44 44 44 44 44 66"

autoDetectInstrumentation config \

-enableSignatureMask $::true

autoDetectInstrumentation config -signatureMask \

"AA AA AA AA AA AA AA AA AA AA AA AA"

autoDetectInstrumentation setRx $chassId \

$cardId $portId

ixWritePortsToHardware portList

} else {

errorMsg " portFeatureAutoDetectRx is not supported on \

port $chassId $cardId $portId "

SEE ALSO