I'm feeling lucky and I'll take a guess (because you just posted the code twice without any comments).

The Ping UDF requires two parameters. You have it in your code like this Ping($Computer, $getip). The $getip variable you use is never filled so it is empty (NULL). It should be set to 1 or 0 depending on what you want to do. 1 to get the IP and 0 to check for a reply.
Ping($Computer, 1) or Ping($Computer, 0) would do the trick for the ping UDF.)


Edited by Mart (2009-12-16 05:03 PM)
Edit Reason: Typo
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.