Since I found the site by googling, I will post a new question in addition to my follow-on response, with belief it will aid others. And increased crossing of fingers it will aid in receiving a response.
Cutting to the chase.....
i can use a system call to issue a ping to network element easily enough
Ie, system("/directory1/directory2/command like i was in CLI");
how can i harvest the response from the remote element to logically decide the next move?
am i on the right track in thinking you can use the if or else logic with a command line response?
Hutch