From: David M. <dm...@ci...> - 2005-11-18 08:05:37
|
Michael Noble <michael_msn <at> msn.com> writes: > > > > Could someone give me some guidance with the Net_Ping function. > > I want to ping the audries every hour or so to make sure they are up and if not cycle the appliance module they are plugged into. The problem is that they Are those things that screwy? always return as down and keep getting power cycled. I have even tried net- Ping on 1 specific address and it fails. > > I uncommented the pinging portion of the Audrey_Control2.pl script and modified it for my audries. It does not work. It doesnt even look like it is doing the ping. (although i am getting a mh pause for about 4 seconds). I think if you look at the code below you can see what i have been trying. Could this be an XP issue? My MRhouse server is a dual 2.2 Xeon with 2 gb ram It is likely not an XP issue (unless the handy net utilities module has an XP issue.) Can you ping the IP address(es) from the command line? Can you ping anything with the net ping function? and .5TB raid 5 array running Xp Sp4. > > Please help me while i still have some hair left :) > > Thanks > > > I have tried using ..unless ( &main::net_ping(192.168.0.19)) in the code below, it also fails > > $audrey_power_Kitchen = new X10_Appliance 'A1';$audrey_power_familyroom = new X10_Appliance 'A2';$audrey_power_theatre = new X10_Appliance 'A3'; > > if (new_minute ) { # if (0 and time_now '4 pm') { for my $audrey (split ',', 'Kitchen,familyroom,theatre') {# for my $audrey (split ',', 'Kitchen') { if (!&net_ping("192.168.0.27")) { # if (&net_ping(&audrey_ip($audrey))) { speak "$audrey Audrey not responding, resetting her power."; eval "set_with_timer \$audrey_power_$audrey OFF, 5"; } } }} > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/? group_id=1365 > > > > |