Operating System - Microsoft
1748182 Members
3648 Online
108759 Solutions
New Discussion юеВ

execute command remotely

 
Piotr Kirklewski
Super Advisor

execute command remotely

Hi guys
Does anyone know how to build a script to execute shell command remotely without a pain of logging to each windows machine?
What commands could be used to accomplish that?
Regards
Peter

Jesus is the King
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: execute command remotely

Hi Peter:

You the 'remsh' or better (more securely) the 'ssh'. You should either setup the '.netrc' file (for 'remsh'), or public keys for 'ssh'. In this fashion, you will not be prompted for a password. Then, you can do something like:

# ssh -n servername 'date;uname -a;hostname'

Regards!

...JRF...
Piotr Kirklewski
Super Advisor

Re: execute command remotely

Yes I know but I want to avoid that as then I will have to go to each machine anyway to install ssh server. And there is about 200 of those. Is there any other method of executing commands on windows machines remotely?
Jesus is the King
sujit kumar singh
Honored Contributor

Re: execute command remotely

hi



u can have a look at the following pages:

http://docs.hp.com/en/B2355-90772/ch11s13.html


these are really helpful.


u can also refer to Ignite Administration which is such a powerful tool

http://docs.hp.com/en/5992-5309/5992-5309.pdf


Regards
Sujit

sujit kumar singh
Honored Contributor

Re: execute command remotely

terribly sorry



Wrong post on the Subject !!!!!


Aplologies


regards
Sujit
OldSchool
Honored Contributor

Re: execute command remotely

"Does anyone know how to build a script to execute shell command remotely without a pain of logging to each windows machine"

huh...you might try asking in a windows formum.

there are tools to push patches and what not.

otherwise, you'd need "r-services" set up and running on the windows boxes...which may (or may not) be the default case.