Networking Forums

Networking Forums > Computer Networking > Linux Networking > need more complicated test than ping

Reply
Thread Tools Display Modes

need more complicated test than ping

 
 
Todd
Guest
Posts: n/a

 
      03-08-2011, 06:12 PM
Hi All,

Host: CentOS 5.5
guest: Windows 2003 R2, sp2, 32 bit, running Terminal Services
Virtual Machine: Virtual Box 3.2.12

Hi All,

I have a script that runs on my CentOS host machine that checks if
my guest Windows Server 2003 is running responding to commands.
If not, the script reboots the guest. (I shut the VM down every
night to do my dump backup.)

Problem: Windows do not always start up correctly and need to
be rebooted. (Windows has quality problems. Duh.)

I use the "ping" command in my check script to see if the guest
is up and running.

Problem 2: my frozen guest frequently still responds to the
ping command. Rats!

Does anyone know of a more "complicated" network command I
can throw at it to see if my guest is "actually" up?

The guest have M$SQL server runing on it. Any way to
say "Hi" to it?

I am able to run the "net rcp" shutdown command. Any other
"net rpc" commands I can throw at it that are "complicated"?

Many thanks,
-T
 
Reply With Quote
 
 
 
 
jack
Guest
Posts: n/a

 
      03-08-2011, 07:40 PM
Todd wrote:
> Hi All,
>
> Host: CentOS 5.5
> guest: Windows 2003 R2, sp2, 32 bit, running Terminal Services
> Virtual Machine: Virtual Box 3.2.12
>
> Hi All,
>
> I have a script that runs on my CentOS host machine that checks if
> my guest Windows Server 2003 is running responding to commands.
> If not, the script reboots the guest. (I shut the VM down every
> night to do my dump backup.)
>
> Problem: Windows do not always start up correctly and need to
> be rebooted. (Windows has quality problems. Duh.)
>
> I use the "ping" command in my check script to see if the guest
> is up and running.
>
> Problem 2: my frozen guest frequently still responds to the
> ping command. Rats!
>
> Does anyone know of a more "complicated" network command I
> can throw at it to see if my guest is "actually" up?
>
> The guest have M$SQL server runing on it. Any way to
> say "Hi" to it?
>
> I am able to run the "net rcp" shutdown command. Any other
> "net rpc" commands I can throw at it that are "complicated"?
>
> Many thanks,
> -T


isql or DBI::Sybase to check the M$SQL server?
some smbclient stuff ?

j
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-08-2011, 07:54 PM
On 2011-03-08, Todd <(E-Mail Removed)> wrote:
>
> Does anyone know of a more "complicated" network command I
> can throw at it to see if my guest is "actually" up?


Of course:

mysql -h dns-or-ip-of-guest $BLAH -e 'show processlist'

where $BLAH will be whatever other commandline parameters you might
need, like a username or password. You'd also need to grant connect
privileges for this user@host in the mysqld in the guest.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-08-2011, 07:58 PM
On 2011-03-08, Keith Keller <kkeller-(E-Mail Removed)> wrote:
>
> mysql -h dns-or-ip-of-guest $BLAH -e 'show processlist'


My apologies! I misread MSSQL as mysql. Jack had the right idea, to
connect using some mssql-compatible library on the host side.

--keith



--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ping Test Ravindra.B Linux Networking 3 07-16-2008 06:25 PM
Complicated LAN Tokenhost Linux Networking 14 01-03-2007 08:27 PM
Its all getting complicated now mo Broadband 2 02-12-2005 01:11 PM
Unicast 4 Node NLB ping test fails & Nodes do not appear in NLB Ma =?Utf-8?B?QW1pdCBEYXM=?= Windows Networking 0 02-10-2005 06:31 PM
Quite Complicated Pierced Labret Windows Networking 0 01-28-2004 10:55 AM



1 2 3 4 5 6 7 8 9 10 11