开发者

Access hardware information

开发者 https://www.devze.com 2023-02-17 07:48 出处:网络
I want to write code in java for getting hardware information of any system in LAN network on server.How can I do this? Is there is special methods to access hardware information开发者_运维知识库?The

I want to write code in java for getting hardware information of any system in LAN network on server. How can I do this? Is there is special methods to access hardware information开发者_运维知识库?


The system properties (see java.lang.System) provide some details about the OS and the JVM, but that's as far as plain Java goes. The JVM is an abstraction layer that hides most of the hardware-specific details.

The only way to collect the hardware details of remote systems is to call some platform-specific commands (e.g. lspci and lsusb on Linux), format the output (e.g. XML) and exchange those data using your favorite protocol and API (e.g. HTTP and Servlet).

0

精彩评论

暂无评论...
验证码 换一张
取 消