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. |
This function sends a message to the session.
This function causes the session to start monitoring the output of a process which executes on the server.