Get System Information of a Remote Machine (Using Java)

前端 未结 7 1772
天命终不由人
天命终不由人 2020-12-21 13:52

As the question\'s title says, I want to get the system information (like OS name, version, etc.) of a remote system using Java. But before anyone answers this question, I j

7条回答
  •  抹茶落季
    2020-12-21 14:04

    For Windows you should be able to access WMI on the remote machine (with some ugly JNI glue), for UNIX systems I don't know of a way (unless you somehow have shell access, then you can probably try logging in via SSH and do a uname -a or similar). It's going to be a lot of work in either case and Java is hardly the right tool for that.

提交回复
热议问题