Sends a console command to a Domino server.
Note This method is new with Release 6.5.
Defined in
Session
Syntax
public String sendConsoleCommand(String servername, String consolecommand) throws NotesException
Parameters
String servername
String
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.
This method returns lsERR_NOTES_ERROR (error number 4000) if the user is not authorized to access the server through the remote console.
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.
Language cross-reference
SendConsoleCommand method in LotusScript NotesSession class
Example