From: Chris B. <ch...@ba...> - 2005-11-18 07:33:17
|
It's most likely caused by the Windows firewall software running on the XP box. You'll need to allow inbound and outbound ICMP. My suggestion is to only allow it to/from the local subnet - e.g. 192.68.0.0/255.255.255.0. In my case I had to allow ICMP within the inbuilt XP firewall and the firewall provided by my anti-virus software - which in my case is PC-cillin. _____ From: mis...@li... [mailto:mis...@li...] On Behalf Of Michael Noble Sent: Friday, 18 November 2005 1:45 PM To: mis...@li... Subject: [mh] Net_Ping Help 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 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 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 |