Python or jython ?
Are you trying to call a nsh script job to call this batch file on the system that is not registered in bsa? Does that system have a rscd agent? why is it not registered in bsa?
I am trying to call a Windows batch script, which in turn calls a python script.
Yes , I need a NSH script job that can call a batch file in the Local BL server. Ok , to explain clearly
We have 4 BL servers, Masked by a terminal server. The terminal server acts as a load balancer.
Now I have the python script (whihc has BLCLI commands) , in a folder say C:\ buildManger.
I want to call a batch file , and that job has to execute in the terminal server itself, Since this python is not running
on boxes, where just agents are installed, for your referece i am attaching the pythong script
Deploy_engine.py 22.8 K
So the batch file and the python script both sit on one or more of the appservers?
Is there a reason you are calling the python script via a batch file – are you calling bljython.bat ?
In that case you can have a ‘type 2’ (execute once passing targets as a list) nsh script that run basically:
Bljython yourscript args
‘yourscript’ will need to be somewhere accessible from all the appservers
Why do you need to run this from the terminal server? is there an appserver on that box? is there an agent installed on that box? is python installed on that box?
Yes, the script is in a mapped drive in the app server .
The agent is installed.
It has BL client also.
Python is also installed
When I copy this python script to a box where it has but a agent , it does not execute, it says it cannot find BLcredi.exe
which is available only in the client build. Please tell me if this script can execute in a box where there is a just a BL agent and pythion installed
If you are calling blcred, that will require the GUI be installed on that system.
Can you run it from your appservers?
By App Servers you mean the BL app servers ? I can go back and ask our BL team if they will allow us to copy it there
if they did , then i am sure it should work. But is there a way to make a NSH script execute on the terminal box and call the batch file ?
Yes, but you will need an agent and the gui installed on the terminal box if you want to run a nsh script job against it, and have it call blcred.
Ok, whe u have sometime can take a look into the python and tell me if it nees a GUI to be installed or it can run on agent itself. I am new to this, i just scripted BLCLI seeing the BL help site
If you are using blcli, then it needs to have the gui (blcli) present.
Bill Correct me if I am wrong . Even if you did a NSH script, to automate packaging and jobs, we need to use BLCLI right ? But my BL team said, NSH scripts can execute in any box that contains Agent.
Right – nsh scripts can run against any box that has an agent. but if the nsh script is trying to run python which is going to load blcli modules from the target system, then all of that has to be present on the target. just like if the nsh script makes a call to some binary that only exists on the remote host and not the appserver, that binary needs to exist on the remote host.
Thanks a lot bill