The autoscript utilities automatically transfer a shell script from shore to the SIAM primary node during a telemetry connection. A component on the node (runAutoscript) automatically execute the script there, and returns the script output on a subsequent connection.
These utilities are very useful in cases where the telemetry link is intermittent and unpredictable, making it difficult to sustain a connection long enough to perform maintenance or troubleshooting operations.
To automatically transfer and execute a script, follow these steps:
The scripts that implement autoscript include:
Example output:
none
The following environment variables must be set:
| Variable | Description | Example |
|---|---|---|
| JAVA_HOME | location of Java installation | /j9, /opt/java/jdk1.3.1, etc. |
| JAVA | Path to JVM command | For MMC $JAVA_HOME/bin/j9 For Sun JVM (e.g. linux, win32, mac OS) $JAVA_HOME/bin/java
|
| SIAM_HOME | top of the SIAM directory tree | - |
| SIAM_CLASSPATH | Path including all SIAM and supporting classes | For MMC $JAVA_HOME/lib/jclMax/classes.zip:$JAVA_HOME/lib/prsnlmot.jar:$JAVA_HOME/lib/RXTXcomm.jar:$SIAM_HOME/classes For linux/win32 $SIAM_HOME/classes |