Not directly, as far as I know. If it's available, you could access an SNMP or WBEM server on the system over the network, which is fairly cross-platform.
For less cross-platform solutions, you could use the WMI scripting APIs via COM/ActiveX on Windows, or you could parse files like /proc/net/dev on Linux.
vipin jos
Greenhorn
Joined: Nov 18, 2008
Posts: 24
posted
0
If you want to connect from a Windows machine to Solaris machine and run commands like netstat, one of the quick and dirty ways is to use plink(available in the PuTTY downloads page).
Use Runtime exec and run plink with the commands you need.
Read the output and parse.
Another much more decent alternative is to use OpenSSH
Originally posted by vipin jos: If you want to connect from a Windows machine to Solaris machine and run commands like netstat, one of the quick and dirty ways is to use plink(available in the PuTTY downloads page).
There are SSH libraries for Java like Trilead SSH too, which may be easier to use than Runtime.exec().