9.2 Using Server Scripts

On the Operations Center server, you can run scripts to perform specific tasks based on actions that you want to take for specific server states.

Scripts are created using NOC Script, a scripting language that allows customizing the capabilities of the Operations Center server for more effective management. For more information about NOC Script, see the Operations Center Scripting Guide.

To run scripts on the Operations Center server when it starts, initializes, stops, or fails:

  1. Open the /OperationsCenter_install_path/database/shadowed/Adapters.ini file.

  2. Add the following commands into the [Formula] section:

    Command

    Function

    Script.onStarted=@("script_name.fs)";
    

    Runs the script’s code when the server starts.

    Script.onStopped=@("script_name.fs)"
    

    Runs the script’s code when the server stops.

    Script.onInitialized=@("script_name.fs)";
    

    Runs the script’s code when the server initializes.

    Script.onError=@("script_name.fs)";
    

    Runs the script’s code when the server fails.