Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have made any perl scripts to survey my servers from a linux.
Of course, there are some of those on Wondows.
So, is anybody knows a command to survey a windows service from a linux.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Depends on what you want to do. If you just want to check simple things, like is a specific file available on the HTTP server, can you get a connection banner on the SMTP server, etc then those can be done fairly trivially. If you want to check the status of a proprietary Windows service that is not network-accessible, then you would need to run the script on that box itself (of course).
Thank you for your answer but, as you said, i have to check a proprietary windows service status.
I have already searched on CPAN but it only provides system administration scripts for "system" to "same system". My pb is to check a windows service status from a linux system.
I think i will use a link to an another apache web page based on a win32 system but if there is another way to resolve my pb without using another computer, i am really interresting.
The Win32 modules should allow you to do this. I seem to recall that you can specify remote machines as a parameter to query the services. It's been a while since I've looked at it and I'm going by memory (always a scary thing), but I'm pretty sure it works that way. I do this at work but a slightly different way. I just use "MSINFO32 \\server /r server.txt" in my script (looping thru all the servers) and check the output of the text file. This way I can verify that all the automatic services are running, keep an eye on disk space, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.