5.11 Server-Side Methods

A script that executes on the Operations Center server can interact with the session that invoked it, if it is an operation script. Some interesting functions are available to allow for interaction with the session:

invokeScript( name, script, values[], names[] )

This causes invocation of a script on the client machine to which the session refers.

Table 5-3 lists server-side methods.

Table 5-3 Server-Side Methods

Method

Description

name

The name of the script.

script

The actual script content to execute.

values

An array of object values to pass to the script.

names

The names of the values to pass to the script. Ensure these are valid JavaScript identifier names and that there is exactly one entry for each entry in the values array.

5.11.1 sendMessage ( message )

This function sends a message to the session.

5.11.2 monitorProcess ( name, command )

This function causes the session to start monitoring the output of a process which executes on the server.