My application requires that I run dos commands on a Windows desktop which is in the same network as the Suse server. The command needs to be initiated from my Suse server and I need to get the result of the command from Windows on my Suse server.
On 09/15/2011 09:06 AM, deepakdeshp wrote:
> Please suggest
run your application in MS-Windows running in a VM on your server…
if your application will run in WINE, you may do that also, any
probably a lot easier…
if you more questions please give more info…like what operating system
and version is running on your server? and, does it also run X, and a
DE? if so please state the DE and version…
and, what kind of ‘server’ is it? (mail, LAMP, file, multi-media, DNS,
etc etc etc etc)
and say something about the DOS commands and your application.
–
DD Caveat
openSUSE®, the “German Automobiles” of operating systems
On 2011-09-15 09:55, DenverD wrote:
> if you more questions please give more info…like what operating system
> and version is running on your server? and, does it also run X, and a DE?
> if so please state the DE and version…
IMO, he intends to do what we do in linux with ssh. He needs “something”
that telnets or ssh or whatever into the windows machine, and gets an msdos
remote prompt. The command runs in the windows machine, but you see it in
linux.
I don’t know how to run such a remote shell.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
If you want Windows to do run some command by remote control, look into implementing some kind of SOAP client-server arrangement which provides a remote procedure call facility. Naturally, use credentials and https to protect the connection if you don’t want just anyone to run your remote command.
The OP could install and run a SSH server on the windows machine to get the same kind of connectivity we’re used to with *nix machines eg OpenSSH for Windows
Thank you for the input. Let me clarify more. I need some way to get the MAC addresses of 500 Windows 7 desktops on my Linux box, preferably by using PHP.I do not want to install anything on the Windows desktops , because it will involve installing the code on 500 Machines.I am running Suse 11 server.
Is this possible to compelete the task in PHP without installing anything on Windows machines? The MAC addresses information has to be available on the Suse server.
And how do I find my posts to this forum? I had difficulty finding this post. Thank you for your patience.
Thats an excellent idea which had not occurred to me. There is no DHCP server the router supplies the DHCP addresses. But I need to do additional queries on the 500 Linux desktops like checking periodically if their USB devices like scanners are connected and are of a specific make. For this Windows commands will be needed to be run on the Windows boxes.
I cam across Winexe winexe | Download winexe software for free at SourceForge.net . The site says winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux (probably also other Unices capable to compile It does not support Windows 7 . I need to find some other tool for it.
ken yap wrote:
> If you want Windows to do run some command by remote control, look into
> implementing some kind of SOAP client-server arrangement which provides
> a remote procedure call facility. Naturally, use credentials and https
> to protect the connection if you don’t want just anyone to run your
> remote command.
>
> ‘SOAP - Wikipedia, the free encyclopedia’
> (http://en.wikipedia.org/wiki/SOAP)
Hi
Just enable the snmp service on the windows boxes and walk the device,
will tell you all about the system, find out the ones you want and just
script that to run from a linux machine. For that matter does your
router support snmp, you can query that too for all the ip/mac address
etc.
That is another good pointer . Thank you . But I need to find if the USB devices like printers connected to the Windows box are on line and the model is same. And this information about the printers connected to 500 Windows desktops has to be available in Linux server
***c> wmic printer *** this command on Windows will give me the required information about the printers.
ken yap wrote:
> You can get libraries that hide the complexity. No sane person tries to
> construct the XML by hand. The Perl SOAP libraries are pretty good.
Well, I actually use the Perl SOAP libraries and in my experience
they’re a real pain. The traditional libraries are SOAP::Lite and if you
browse the mail list <http://groups.yahoo.com/group/soaplite/> you can
see how many punters are happy vs unhappy. XML::Compile seems to have
better support, though I think most SOAP development is probably done in
Java. But better not to touch the whole fetid mess at all, if possible,
IMHO.
I believe that at least some versions of windows 7 have a telnet server. It may not be started by default. However you may not wish to send your id and password across the network in plain text
(To the OP), you didn’t run far enough with this suggestion…
You start by saying there is no DHCP server but you finish the statement that your router provides DHCP services which contradicts your initial statement.
Simply interrogate your router.
Depending on its capabilities, that should typically (there may be others) possible through the web interface (if a SOHO router) or SNMP (an enterprise capable router).
And, you could have avoided a ton of suggestions in this thread if you simply stated what you wanted to do in your OP.
Lesson to be learned is that you can ask a very specific question only if you know what you’re asking about. If you don’t know that much about the subject, it’s better to more fully describe the task at hand.
I said there is no DHCP server meaning no server with a Windows or Linux OS acts as the DHCP server. The hardware router acts as the DHCP device and I do not know how to query the router , as I am not from the networking field. I will investigate this lead and thanks for the pointer.
The tons of suggestions do not hurt , actually they help. I had stated that I need to run commands on the Windows boxes from a Linux box and get the output into Linux. That is one approach I could think of to achieve this task. The pointers are very useful, especially the arp and querying the router and I thank the community for that.
Still I do not have a clear idea if I would be able to run Windows commands on the Windows 7 box from SLES 11, without installing any additional software on the Windows box . Otherwise I need to install the software on 500 Windows 7 desktops. All are physical servers and none are virtual.
If this task is not possible without installing software on Windows, then I have to try cygwin or SOAP . I do not have experience in SOAP. Is ther any other program , if installed on Windows which may help in this task?
None of us including myself are perfect. Hence if my post was not perfect, it is because I am human.May be a less perfect human then others. I agree.