How to find disk space of remote linux machine using Java [duplicate]

不问归期 提交于 2019-12-11 11:27:22

问题


I am looking for simple solution for finding total disk space and available space of a remove machine using java program.

Please help

Update There are questions already similar to this with primarily focus on local machine. I was looking solution for remote machine.


回答1:


The easiest way to get the remote machine information and also safe way to do is to SSH to the server from Java and get the necessary information from.

use JSch Library for SSH connection to server.

for an example look here



来源:https://stackoverflow.com/questions/26390098/how-to-find-disk-space-of-remote-linux-machine-using-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!