in reply to Problem to connect remote host
"Actualy my task is to ping the machine and find the satus and i have to find the diskspace usage as well as cpu usage"
Sounds to me like you need a Network Monitoring System. Before you go off and re-invent the wheel, you might want to check out a few off-the-shelf (and Open Source) products that do exactly what you need. A few recommended ones might be Nagios, Big Brother, and Big Sister. But there are plenty more to choose from.
Cheers,
Darren :)
|
|---|