Solstice AdminSuite 2.3 Administration Guide

Using Scripts With User Manager or Host Manager

Using User Manager or Host Manager, you can enable scripts to be run when you add, delete, or modify a user or AutoClient. These scripts are user supplied scripts that can customize your addition, deletion, or modification of a user or AutoClient.

Script Directory

To use these scripts with the AdminSuite tools, you must place the scripts in the following directory: /opt/SUNWadmd/Scripts

The AdminSuite program looks to this directory for any scripts and then lists them in the following window whenever you press the Enable Scripts button from the User Manager or Host Manager Add, Modify, or Delete windows.


Note -

Scripts that modify system maps can cause problems with hosts or users being added, modified or removed; you should not create scripts that modify any of these system maps.


Figure 5-9 Script Selection Window

Graphic

Script Environment Variables

When you use the scripts feature, environment variables automatically get set in the script's environment. Refer to the man page admenviron.5 for a listing of the environment variables associated with the scripts feature.

Default Scripts

In addition to selecting user-defined scripts, by default, the following scripts run if they exist.