.. However i want to fetch the OS parameters like free memory,total RAM of the remote machine.Both the local and host machine are linux based ..
This may be like using an eighteen-wheeler to deliver an envelope, but I've really enjoyed using Nagios to monitor my collection of servers and services. It uses plugins to collect important information about a server's health.
Failing that, you may be able to build something using the Net::SSH and Expect modules.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds