I have a database with a Lotusscript agent on my administrative server which does the following command;
response = session.Sendconsolecommand(doc.server(0), "Show stat disk")
It runs fine when I execute it locally, but when I replicate it to the server and have it go off on a schedule, I get the following error message in the log:
Restricted operation on a server
The agent is signed by my ID
In the server docs of all the servers I am inspecting, I am a member of the group that is listed in the server doc:
Sign or run restricted LotusScript/Java agents:
My ID is also either in a group or explicitly listed in all the other fields in the security tab of each server document. including the Full Remote Console Administrators: field.
Why would I be getting this error?
Did you also allow restricted operations on the security settings of the agent itself ?
The server ID also needs rights to perform restricted operations. I would point to an article by Julie Kadashevich, but I seem to be unable to locate them. Sad, because they are still very relevant.
Check "Security" settings of the impacted agent as shown below. Switch to other option than the current settings present at your environment (Preferably option 2. Allow restricted operations)
Doh! forgot about that one.
I corrected it and am getting this error message now.
[26682:00232-00007F69EC6C6700] 12/29/2020 08:09:12 AM Agent 'OSMonitor' error: Notes error: You are not authorized to use the remote console on this server.
As previously stated my name is in the Full Remote Console Administrators and Sign or run restricted LotusScript/Java agents fields in the address book of all the servers involved. (Either explicitly or by group reference)