miiae

miiae - configure an MII AE.

SYNOPSIS

miiae sub-command options

DESCRIPTION

The miiae command is used to configure an MII AE PHY to be associated with a port. miiae manages new-style IEEE 802.3ae PHYs. After configuration, miiae set should be used to associate it with a port; port write or miiae write should be used to write the values to the hardware.

STANDARD OPTIONS
phyAddress

The address of the MII AE PHY. (default = 31)

COMMANDS

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

miiae addDevice

Adds the device defined through the use of the mmd command.

miiae clearAllDevices

Deletes all devices associated with this MII AE PHY.

miiae config option value

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

miiae delDevice deviceAddress

Deletes the device whose address is deviceAddress.

miiae get chasID cardID portID index

Gets the current MII configuration of the port with id portID on card cardID, chassis chasID. Any of the three supported PHYs may be selected through the use of the index. The supported PHYs are:

Option

Value

Usage

mdioInternal

0

(default) The internal PHY located on the Ixia card.

mdioExternal1

1

The first defined external PHY.

mdioExternal2

2

The second defined external PHY.

Call this command before calling mmd to look at the PHY. Specific errors are:

miiae getDevice deviceAddress

Gets the device whose address is deviceAddress. The values associated with the device may be viewed and modified through the use of the mmd command.

miiae set chasID cardID portID index

Sets the MII configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the mmd command. Any of the three supported PHYs may be set through the use of the index. The supported PHYs are:

Option

Value

Usage

mdioInternal

0

(default) The internal PHY located on the Ixia card.

mdioExternal1

1

The first defined external PHY.

mdioExternal2

2

The second defined external PHY.

Specific errors are:

miiae setDefault

Sets to IxTclHal default values for all configuration options.

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 10GB XAUI card is in slot 35

set card 35

set port 1

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

# 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 deviceNo 1

 

 

# Configure register 1

mmdRegister setDefault

mmdRegister config -address 1

mmdRegister config -name reg1

mmdRegister config -registerValue 1234

# And add it to the MMD

mmd addRegister

 

# Configure register 2

mmdRegister config -address 2

mmdRegister config -name reg2

mmdRegister config -registerValue 3405

mmd addRegister

 

# Now configure the MMD and add it to the miiae

mmd config -address $deviceNo

mmd config -name dev1

# Add it to the miiae

miiae addDevice

 

miiae config -phyAddress 24

 

# Set and write the miiaeif [miiae set $chas $card $port mdioExternal1] {

ixPuts "Error in miiae set"

}

if [miiae write $chas $card $port] {

ixPuts "Error in miiae write"

}

# Now get the object back

if [miiae get $chas $card $port mdioExternal1] {

ixPuts "Error in miiae get"}

if [miiae getDevice $deviceNo] {

ixPuts "Error in miiae getDevice"

}

# Now get the register contentsmmd getRegister 1

set name [mmdRegister cget -name]

set val [mmdRegister cget -registerValue]

ixPuts "Register 1 ($name) is $val"

 

# Let go of the ports that we reserved

ixClearOwnership $portList

# Disconnect from the chassis we're usingixDisconnectFromChassis $host

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

if [isUNIX] {ixDisconnectTclServer $host

}

 

SEE ALSO

mii, mmd, mmdRegister.