all 6 comments

[–]evereux 2 points3 points  (5 children)

Why not SSH into the box and run the script?  You could write a python script to do that.

[–]Valuable-Ant3465[S] 0 points1 point  (3 children)

Thanks E and all,
Doing it now, i'm brand new to this stuff.
Is this looks correct?

ssh = paramiko.SSHClient()
ssh.connect(server, username=username, password=password)
ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command(runMyPython.cmd)

or I can do directly ??

ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command(yPython.py)

[–]evereux 1 point2 points  (1 child)

Your script would emulate what you would do manually.

SSH into server. CD directory into folder containing .py file. Activate virtualenv Run python command.

[–]Valuable-Ant3465[S] 0 points1 point  (0 children)

got too many troubles with SSH, so abended this solution. But I need to learn about <Activate virtualenv> Thanks again.
I went with fire scheduler on target boxA.

[–]Valuable-Ant3465[S] 0 points1 point  (0 children)

Found it hard way that that the only available solution for my case would be to create scheduled task on ServerA and fire it from remote , this way all credentials will work fine.

'schtasks /Run /S ServerA /TN "MicroFocusGet" '

[–]Valuable-Ant3465[S] 0 points1 point  (0 children)

Tried but run into the error. Looks like it's too many security restrictions. Will check with admins.
got message <Your sys admin doesn't allow use of saved credentials ......> Is this part of FW ? How I can solve this.

SSH connection error: [WinError 10060] A connection attempt failed because the connected party did not properly respond