sendConsoleCommand (NotesSession - JavaScript)

Sends a console command to a Domino® server.

Defined in

NotesSession

Syntax

sendConsoleCommand(servername:string, consolecommand:string) : string
Parameter Description
servername The name of the server. The user must have administrative access to the server. Use null to indicate the current computer.
consolecommand The console command. Must be a valid console command.
Return value Description
string The server's response to the command. This value is the same as would be sent to a remote console.

Usage

This method can be used in a scheduled agent on a server to send console commands to another server. The signer of the agent must have privilege to Run unrestricted methods and operations on the server receiving the console command.

If this method is executed on a client, the current user must have privilege under Full Remote Console Administrators on the server receiving the console command.

If a console command abruptly closes the network connection to the server (for example, drop all), subsequent commands to the server fail with a network timeout until the connection is reestablished.