ixDisconnectFromChassis

ixDisconnectFromChassis

ixDisconnectFromChassis - disconnects from all chassis connected

SYNOPSIS

ixDisconnectFromChassis [chassis ...]

DESCRIPTION

The ixDisconnectFromChassis command is called at the end of the script which disconnects from all the chassis that were connected to in the beginning of the script. It also frees any memory allocated by the Tcl script by calling the cleanUp command.

ARGUMENTS
chassis

(By value) (Optional) A variable number of chassis to disconnect from.

RETURNS
0

No Error, successfully disconnected.

EXAMPLES

package require IxTclHal

set host galaxy

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]

# Disconnect from the chassis we're using

if [ixDisconnectFromChassis $host] {

ixPuts $::ixErrorInfo

}

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

if [isUNIX] {

ixDisconnectTclServer $host

}

SEE ALSO

ixConnectToChassis