ixGetChassisID
ixGetChassisID - get the ID of a chassis given its name
SYNOPSIS
ixGetChassisID chassisName
DESCRIPTION
The ixGetChassisID command gets the ID number assigned to a chassis in the chain.
ARGUMENTS
chassisName
(By value) The hostname or IP address of chassis.
RETURNS
-1
The chassisName could not be found.
chassisID
The ID number that was assigned to this chassis when a connection to the IxServer was made.
EXAMPLES
package require IxTclHal
set host galaxy
# 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
}
set chas [ixGetChassisID $host]
if {$chas < 0} {
ixPuts "Could not get chassis ID for $host"
} else {
ixPuts "Chassis ID for $host is $chas"
}
# 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
}