Contents Index


Automatic Configuration

Use the Jconfig scripting option to simplify the task of making the same changes to multiple hosts.You can record a sequence of configuration actions in a script and then use the script to configure multiple hosts.

After recording a script, you must compile it using a Java compiler. Compile the script with a file that contains the required classes.


Recording and compiling scripts

To record a script:

  1. On the Jconfig toolbar, click Script. The Scripting Wizard opens.
  2. In the Script Class box, type a name for the script. For example, if you name the scripting file script1 your script is saved in file script1.java. After compiling, your file is named script1.class. To run this script, you must select user.script1 from the list of available scripts.
Note: The scripting class name cannot be one of the following Java keywords: abstract, boolean, break, byte, case, catch, char, class, const, continue, default, do, double, else, extends, final, finally, float, for, goto, if, implements, import, instanceof, int, interface, long, native, new, null, package, private, protected, public, return, short, static, super, switch, synchronized, this, throw, throws, transient, try, void, volatile, while.
  1. Click Next. The Apply Changes pane opens.
  2. If you want the configurations you are recording in the script to apply to the administration host, select the Apply Changes While Recording check box. If you do not want the script configuration to apply to the administration host, clear this check box. By default, this option is selected.
  3. Click Next. The Miscellaneous Settings pane opens.
  4. Select the appropriate options.
  5. Click Finish to start recording the script.
  6. Perform the configuration changes that you want to record in the script.
  7. If you selected the Confirm Script Entries option, the Confirmation dialog box opens each time you make a configuration change and displays a list of the steps you performed. To save the changes, click Save Code.
  8. When you have made all configuration changes, click Script on the Jconfig toolbar. The Script Recording Complete dialog box opens and displays the name of the saved script file. Click OK.
  9. Before you can use the script, you must compile it with a Java compiler. For more information, see the procedure below.

To compile a script:

Use the Sun JDK Java compiler and type the following on the command line in the product home directory:

javac -classpath -lhccljconfig.jar userdir\script1.java
where userdir is the Jconfig user directory, and script1.java is the file name of your script.

After the script is compiled, a file called script1.class is created. You can use the Script Driven option in the Connection Wizard to remotely configure hosts with the new script. For details about compiling the script file, refer to the documentation for your Java compiler.

Related Topics

Opening a configuration session (Connection Wizard)

Managing the host database


Scripting Wizard

Use this wizard to record a sequence of configuration actions in a script. You can then use the script to configure multiple hosts remotely.

Specify Filename pane

Type a name for the script in the Script Class box. For example, if you name the scripting file script1 your script is saved in file script1.java. After it is compiled, your file will be named script1.class. To run this script, you must select user.script1 from the list of available scripts.

Click Next to continue.

Apply Changes pane

The Apply Changes pane lets you determine whether or not you want the script configuration to apply to the administration host. If you want the configurations you are recording in the script to apply to the administration host, select the Apply Changes While Recording check box. If you do not want the script configuration to apply to the administration host, clear this check box. By default, this option is selected.

Click Next to continue.

Miscellaneous Settings pane

Click Finish to start recording the script.

Related Topics

Recording and compiling scripts


Locking configuration sessions

If you are going to leave your computer but do not want to terminate the Jconfig application, you can lock the current configuration session. Then, only someone with the administration password can access the session.

To lock a configuration session:

  1. On the File menu, click Lock. The Session Locked tab displays and the Administrator Connection dialog box opens. The session is now locked.
  2. To access the session, type the password for the administration host in the Password box and click OK. The session is unlocked.

Contents Index