fcoeProperties

fcoeProperties- configure properties for FCoE

SYNOPSIS

fcoeProperties sub-command options

DESCRIPTION

Fibre Channel over Ethernet (FCoE) is a method of communicating data for streams and protocols.

STANDARD OPTIONS
addressingMode

Specifies the FCoE addressing mode to be used by the n-port. (default = fcoeFabricProvidedMacAddress)

Option

Value

fcoeFabricProvidedMacAddress

0

fcoeServerProvidedMacAddress

1

fcoeBoth

2

bufferToBufferRxSize

Maximum buffer-to-buffer Receive_Data_Field specified by the Fabric (default = 2112)

destinationId

Use to configure the Fibre Channel Frame header destination ID. (default = 01.b6.69)

enableAutoPlogi

Automatically enables PLOGI to all the ports that are advertised by the fabric, or to PLOGI to a subset of the variable ports that belong to a specified domain. (default = false)

enableFip

true/false

Enables FIP (FCoE Initialization Protocol) If enabled, the interface uses FIP for its initialization. Otherwise, it uses Cisco adhoc standard. (default = true)

enableNs

true/false

Enables registration to Name Server (default = false)

enableNSQuery

If true, enables Name Server Query parameters for this FCoE server.

enablePlogi

true/false

Enables Port login to specified Destination ID (default = false)

enablePRLI

If true, enables Process Login parameters. The PRLI request is used to establish the operating environment between a group of related processes at the originating Nx_Port and a group of related processes at the responding Nx_Port. If true, this option causes the state machine to attempt a process login.

enableResetFip

Discovery

If true, resets FIP Discovery tag.

enableSCR

true/false

If set to true, the ENode registers for any changes with the Fabric by sending a State Change Registration packet. (default = false)

enableVlanDiscovery

true/false

Enables VLAN Discovery (default = false)

enableUntaggedVlan

Discovery

true/false

Enables untagged VLAN Discovery (default = true)

enableVnPortKeepAlives

If true, VN port sends periodic keep alives.

enableENodeKeepAlives

If true, ENode sends periodic keep alives.

maxSize

Enter the maximum FCoE size (default = 2158)

resetFipDiscovery

Retries

If set to true, retries FIP discovery for the selected number of times.

scrOption

If enableSCR is set to true, scrOption becomes true. The registration function options for SCR are Fabric Detected, Nx Port Detected, Full Registration.

sourceNodeWWN

Source node Worldwide Name - a Name_identifier that is worldwide unique, represented by an 8-byte hex value. (default = '00 ... 00')

sourceOui

Use to configure the source Organization Unique Identifier. (default = 0e.fc.00)

sourcePortWWN

Source port Worldwide Name - a Name_identifier that is worldwide unique, represented by an 8-byte hex value. (default = '00 ... 00')

vendorId

Enter a string to be used in vendor-specific messages. (default = '00 00 00 00 00 00 00 00')

COMMANDS

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

fcoeProperties cget option

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

fcoeProperties config option value

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

fcoeProperties setDefault

Sets to IxTclHal default values for all configuration options.

fcoeProperties addTlv

Adds a TLV to fcoeProperties. The values are available in the fipTlv. command.

fcoeProperties delTlv tlvIndex

Deletes the TLV associated with this FCoE property set at the specified index. The index of the first entry is 1. The values are available in the fipTlv. command. Specific errors are:

fcoeProperties getTlv tlvIndex

Retrieves the TLV associated with this FCoE property set at the specified index. The index of the first entry is 1. The values are available in the fipTlv command. Specific errors are:

fcoeProperties getFirstTlv

Retrieves the first TLV associated with this FCoE property set. The values are available in the See fipTlv. command. Specific errors are:

fcoeProperties getNextTlv

Retrieves the next TLV associated with this FCoE property set. The values are available in the fipTlv command. Specific errors are:

fcoeProperties removeAllTlvs

Deletes all of the TLVs associated with this FCoE property set.

fcoeProperties addPlogi

Adds a PLOGI to fcoeProperties. The values are available in the fcoePlogi command.

fcoeProperties delPlogi plogiIndex

Deletes the PLOGI associated with this FCoE property set at the specified index. The index of the first entry is 1. The values are available in the fcoePlogi command. Specific errors are:

fcoeProperties getPlogi plogiIndex

Retrieves the PLOGI associated with this FCoE property set at the specified index. The index of the first entry is 1. The values are available in the fcoePlogi command. Specific errors are:

fcoeProperties getFirstPlogi

Retrieves the first PLOGI associated with this FCoE property set. The values are available in the fcoePlogi command. Specific errors are:

fcoeProperties getNextPlogi

Retrieves the next PLOGI associated with this FCoE property set. The values are available in the fcoePlogi command. Specific errors are:

fcoeProperties removeAllPlogis

Deletes all of the PLOGIs associated with this FCoE property set.

EXAMPLES

package req IxTclHal

set hostname loopback

if {[ixConnectToChassis $hostname]} {

errorMsg "error connecting $hostname chassis"

return "FAIL"

}

set chassId [chassis cget -id]

set cardId 1

set portId 1

set streamId 1

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

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

errorMsg "portFeatureDataCenterMode is not valid on $chassId $cardId $portId"

return "FAIL"

}

 

port setFactoryDefaults $chassId $cardId $portId

port config -enableDataCenterMode $::true

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

errorMsg "Error setting port on $chassId $cardId $portId"

}

# Configure FIP interfaces

if {[interfaceTable select $chassId $cardId $portId]} {

errorMsg "Error selecting interfaceTable on $chassId $cardId $portId."

}

fcoeProperties setDefault

fcoeProperties removeAllTlvs

fcoeProperties removeAllPlogis

 

fcoeProperties config -sourcePortWWN "10 00 00 00 05 F9 A9 B0"

fcoeProperties config -sourceNodeWWN "20 00 00 00 05 F9 A9 B0"

fcoeProperties config -destinationId "01.b6.69"

fcoeProperties config -sourceOui "0e.fc.00"

fcoeProperties config -bufferToBufferRxSize 2112

fcoeProperties config -enableNs false

fcoeProperties config -enablePlogi false

fcoeProperties config -enableFip true

fcoeProperties config -maxSize 2158

fcoeProperties config -addressingMode 0

fcoeProperties config -vendorId "00 00 00 00 00 00 00 00"

fcoeProperties config -enableVlanDiscovery false

fcoeNameServer setDefault

fcoeNameServer config -enableRnnId false

fcoeNameServer config -symbolicPortName Ixia1

fcoeNameServer config -symbolicNodeName Ixia2

fipTlv setDefault

fipTlv config -type 1

fipTlv config -value "11 22 33 44"

if {[fcoeProperties addTlv ]} {

Trace "Error adding tlv to fcoeProperties on $chassId $cardId $portId."

set retCode "FAIL"

}

fcoePlogi setDefault

fcoePlogi config -enable 1

fcoePlogi config -destinationMode 1

fcoePlogi config -wwpn "00 11 00 11 33 11 11 11"

if {[fcoeProperties addPlogi]} {

Trace "Error adding tlv to fcoeProperties on $chassId $cardId $portId."

set retCode "FAIL"

}

fcoePlogi setDefault

fcoePlogi config -enable 1

fcoePlogi config -destinationMode 0

fcoePlogi config -destinationId "11 22 33"

if {[fcoeProperties addPlogi]} {

Trace "Error adding tlv to fcoeProperties on $chassId $cardId $portId."

set retCode "FAIL"

}

set interfaceDescription "FipInterface"

interfaceEntry setDefault

interfaceEntry config -enable true

interfaceEntry config -enableFlogi true

interfaceEntry config -description $interfaceDescription

interfaceEntry config -macAddress {00 00 2D 5C C1 3C}

if {[interfaceTable addInterface interfaceTypeConnected ]} {

errorMsg "Error adding interfaceTypeConnected to interfaceTable on $chassId $cardId $portId."

}

 

#### Interface entry type - interfaceTypeNpiv

interfaceEntry clearAllItems addressTypeIpV6

interfaceEntry clearAllItems addressTypeIpV4

interfaceEntry setDefault

 

npivProperties setDefault

npivProperties removeAllPlogis

npivProperties config -sourcePortWWN "10 00 1A FF FE 5E 3B 36"

npivProperties config -sourceNodeWWN "20 00 1A 00 00 5E 3B 36"

npivProperties config -destinationId "01.b6.66"

npivProperties config -bufferToBufferRxSize 2112

npivProperties config -enableNs true

npivProperties config -enablePlogi false

fcoePlogi setDefault

fcoePlogi config -enable 1

fcoePlogi config -destinationMode 1

fcoePlogi config -wwpn "11 11 00 00 88 88 88 88"

if {[npivProperties addPlogi]} {

Trace "Error adding tlv to fcoePropert"

Trace "Error adding tlv to fcoeProperties on $chassId $cardId $portId."

set retCode "FAIL"

}

 

fcoePlogi setDefault

fcoePlogi config -enable 1

fcoePlogi config -destinationMode 0

fcoePlogi config -destinationId "11 22 33"

 

if {[npivProperties addPlogi]} {

Trace "Error adding tlv to fcoePropert"

Trace "Error adding tlv to fcoeProperties on $chassId $cardId $portId."

set retCode "FAIL"

}

 

interfaceEntry config -enable true

interfaceEntry config -description {InterfaceNPIV}

interfaceEntry config -connectedVia { FipInterface }

if {[interfaceTable addInterface interfaceTypeNpiv]} {

errorMsg "Error calling interfaceTable addInterface interfaceTypeNpiv"

set retCode $::TCL_ERROR

}

 

ixWriteConfigToHardware portList

 

# Verify FIP discovered information

 

if {[interfaceTable select $chassId $cardId $portId]} {

errorMsg "Error selecting interfaceTable on $chassId $cardId $portId."

}

 

interfaceEntry setDefault

fcoeProperties setDefault

if {[interfaceTable getFirstInterface interfaceTypeConnected ]} {

errorMsg "Error adding interfaceTypeConnected to interfaceTable on $chassId $cardId $portId."

}

 

if {[interfaceTable requestDiscoveredTable]} {

errorMsg "Error interfaceTable requestDiscoveredTable on $chassId $cardId $portId."

}

fcoeDiscoveredInfo setDefault

if {[interfaceTable getFcoeDiscoveredInfo $interfaceDescription]} {

errorMsg "Error getting Fcoe Discovered table for $interfaceDescription on $chassId $cardId $portId."

}

ixPuts "fcoeDiscoveredInfo sourceId : [fcoeDiscoveredInfo cget -sourceId]"

ixPuts "fcoeDiscoveredInfo priority : [fcoeDiscoveredInfo cget -priority]"

ixPuts "fcoeDiscoveredInfo fabricAssgnedMacAdr[fcoeDiscoveredInfo cget -fabricAssignedMacAddress]"

ixPuts "fcoeDiscoveredInfo switchName : [fcoeDiscoveredInfo cget -switchName]"

ixPuts "fcoeDiscoveredInfo fabricName : [fcoeDiscoveredInfo cget -fabricName]"

ixPuts "fcoeDiscoveredInfo fabricFcMap : [fcoeDiscoveredInfo cget -fabricFcMap]"

ixPuts "fcoeDiscoveredInfo discoveredVlanIds : [fcoeDiscoveredInfo cget -discoveredVlanIds]"

ixPuts "fcoeDiscoveredInfo destinationIdList : [fcoeDiscoveredInfo cget -destinationIdList]"

SEE ALSO

fcoe,fcoeDiscoveredInfo , fibreChannel, fcoePlogi, fipTlv