ixProxyConnect
ixProxyConnect - connects to a list of chassis, to Tcl Servers for Unix clients and opens log file
SYNOPSIS
ixProxyConnect tclSrv chassisList [cableLen] [logfilename]
DESCRIPTION
The ixProxyConnect command establishes connection with IxServer running on a list of chassis and assigns chassis ID numbers to the chassis in the chain. The ID numbers are assigned in incrementing order to the master and slave chassis with the master chassis given ID 1. The command also connects to the Tcl Server on the specified host. Also, it opens a log file for the script.
ARGUMENTS
tclSrv
(By value) The hostname of the computer running the TclServer.
chassisList
(By value) List of hostname or IP address of chassis in the chain to be connected to.
cableLen
(By value) The length of the sync cable that connects the chain of chassis (Optional). Valid values are:
Option |
Value |
Usage |
---|---|---|
cable3feet |
0 |
default |
cable6feet |
1 |
|
cable9feet |
2 |
|
cable12feet |
3 |
|
cable15feet |
4 |
|
cable18feet |
5 |
|
cable21feet |
6 |
|
cable24feet |
7 |
|
logfilename
(By value) Name of the log file that is created to store all log messages while the script is running. (Optional; default = NULL)
RETURNS
0
No Error, connection was established with the IxServer.
1
Error connecting to IxServer; possible causes are invalid hostname or IP address for chassis, IxServer not running on the chassis, or other network problem.
2
Version mismatch.
3
Timeout connecting to chassis; possible causes are invalid hostname or IP address for chassis, or IxServer not running on the chassis.
5
Could not make a Tcl Server connection to tclSrv.
EXAMPLES
package require IxTclHal
set host1 localhost
set host2 galaxy
set tclServer galaxy
set ret [ixProxyConnect $tclServer $host1]
switch $ret {
1 {ixPuts "Error connecting to chassis"}
2 {ixPuts "Version mismatch with chassis"}
3 {ixPuts "Timeout connecting to chassis"}
5 {ixPuts "Could not connect to Tcl Server"}
}
ixDisconnectFromChassis
ixDisconnectTclServer
set pl [list $host1 $host2]
set ret [ixProxyConnect $tclServer $pl $::cable6feet]
switch $ret {
1 {ixPuts "Error connecting to chassis"}
2 {ixPuts "Version mismatch with chassis"}
3 {ixPuts "Timeout connecting to chassis"}
5 {ixPuts "Could not connect to Tcl Server"}
}
ixDisconnectFromChassis
ixDisconnectTclServer
SEE ALSO
ixConnectToChassis, ixConnectToTclServer, ixDisconnectTclServer