I am running Domino 8.51FP2 64bit on Windows Server 2008 64Bit. I have an agent that is triggered to run on the server by a lotus notes client when a document is approved. This agent extracts an attachment then uses the shell command to run an external program against the extracted attachment. I cannot get Domino to execute the external operating system command via shell. Any help would be greatly appreciated.
Subject: Have you opened a ticket? Does it run in the client?
Subject: PuTTY PSCP.exe to SFTP with Server-based Agent
This is what worked for me:IN DESIGNER:
- Agent Properties: Security: 2. Allow restricted operations.
ON SERVER:
- Create service for running the java-based Domino Server Controller:
- your agent will be able to call Shell() on the server if the server is started with the Domino Server Controller.
CMD Window: (type)
sc create “Lotus Domino Server Controller” binpath= “D:\Lotus\Domino\nservice.exe -jc =D:\Lotus\Domino\notes.ini” displayname= “Lotus Domino Server Controller”
<< change the paths to fit your server >>
You should see a success message after you issue the command.
-
Services: Disable the Lotus Domino Service
-
Set Lotus Domino Server Controller to run automatically. You can also let the service interact with the desktop.
-
(optional on Lotus Notes client machine) Create a “Lotus Domino Console” shortcut. i.e. C:\Program Files\IBM\Lotus\Notes\jconsole.exe
- this allows you to run the console outside of the Administrator client.
-
Stop the Domino Server via the q command on in the Administrator client.
-
Start the new Lotus Domino Controller service.
- test your connection to the server from the Notes Client. Test the jconsole shortcut if you created one in step 4 above.
PUTTY:
-
Download the PuTTY kit.
-
Install PuTTY on server.
-
(optional)Add PuTTY directory to path on server
-
Test transmitting file via CMD window target SFTP site. Save the command as you will use this in your server-based agents Shell() call.
ACCEPT SFTP HOST SITE KEY AS SYSTEM:
DOWNLOAD PSTools.exe and install on Server:
-
Copy the psexe.exe TO C: on Domino Server
-
On server’s Run field type:
psexe -i -s cmd.exe
The CMD.exe will run as nt authority\system
- type whoami in window to confirm
- Navigate to the PuTTY directory and paste your pscp string. Accept the sites host key.
- When the server-based agent runs, it will not be prompted to accept the key. If you don’t do this there is no way for you to type Y and enter to accept the key.
TEST YOUR AGENT:
- open the jconsole and run your agent on the server from your application or run the agent from the console window.
Subject: Update
We discovered that you don’t need to have the Domino Server Controller running to run the shell command from a LotusScript-based server agent. The trick, I think, was to accept the SFTP host certificate as System. See previous post for instructions.
- Gary
Subject: Check security settings.
If the agent is running on the server it needs the correct rights to execute stuff on the server.
Try setting the agents security level to 2. If that doesn’t work then level 3.
Also make sure the agent is running under a signature that has the rights to run code on the server.
Subject: Notes Client 8.5.1 and windows 7 lotusscript shell command not working
Please let me know if it has been resolved. I am facing similar issue
Lotus Notes Client : 8.5.1
os :Windows 7 Enterprise Edition
Please let me know, if further details are needed.
Subject: we are having same issue, any solutions
we have also opened pmr w ibm.