Sun Management Center 3.6 System Reliability Manager User's Guide

ScriptInfo.dat File

The ScriptInfo.dat contains information about the scripts that are available to be run. The addition of a new script to the ScriptInfo.dat file enables the module to recognize the script. All the scripts that belong to a user must be listed in this file.

The ScriptInfo.dat contains information about the scripts that are written in shell script, Java, and DScript (Solaris 10).

ProcedureTo Add a New Script

Steps
  1. Write a new script.

    The format of the ScriptInfo.dat file follows the standard configuration file format.

    slice:attribute=value
    
  2. Copy the new script to the ScriptInfo.dat file.

    The ScriptInfo.dat file is located in a directory identified by your user name, as in this example:

    /var/opt/SUNWsymon/SysMgmtPack/script-launcher/scripts/username/ScriptInfo.dat

    If this file already contains information about a script, add your script below the current information.

    The following example of the ScriptInfo.dat file contains two scripts.

    Script1:Owner = Scott
    Script1:Name = MyHello
    Script1:Desc = Says Hello
    Script1:Language = Java
    Script1:Source = Hello.class
    Script1:AdminStat = 1
    Script1:OperStat = 1
    Script1:Users = Noble
    Script1:Group = Staff
    Script2:Owner = Denise
    Script2:Name = MyFile
    Script2:Desc = Says Hello
    Script2:Language = Java
    Script2:Source = Hello.class
    Script2:AdminStat = 1
    Script2:OperStat = 1
    Script2:Users = Noble
    Script2:Group = Staff