HD Size, RAM size.

Hi CommunityI磎 going to develop a network monitoring tool under Java 5. I want to get all information about HD size, full size RAM available, network adpter, etc on remote host.Somedy could tell me any idea. Thanks in advance
[246 byte] By [agustin2808a] at [2007-11-27 3:44:25]
# 1
Use something other than Java.
ChuckBinga at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Given the nature of what you're trying to do I have to agree with Chuck on this, I'd recommend using C++ for this sort of thing.PS.
puckstopper31a at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 3
The issue is that it must be in Java. Dou you have another idea ?Pls HELp Me
agustin2808a at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 4
> The issue is that it must be in Java. Dou you have> another idea ?> > Pls HELp MeIs this a client/server application, or do you really think that you will be able to get the HD size of a remote machine?
kajbja at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 5
is a client/servidor application
agustin2808a at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 6
Yes kajbj, is a client/server application. The client gets its own settings and send it to the server. Dou you know any API or something ?
agustin2808a at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 7
It does occur to me that this sort of information is often published via SNMP. He might be able to write an SNMP app that could pull that info.
wackyvorlona at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 8

> Yes kajbj, is a client/server application. The client

> gets its own settings and send it to the server. Dou

> you know any API or something ?

You can get memory and OS information using the classes in java.lang.management.

java.io.File will give you information about HD size, free space etc.

java.net.NetworkInterface will give you some information about the network interfaces.

Some things require Java 6.

Kaj

kajbja at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...
# 9
Thanks kajbj.Dou you think I could get thermal information about the processor too ?By the way, classes in java.lang.managment return memory available into JVM or mamory available into system (i mean 256Mb or 512MB etc)
agustin2808a at 2007-7-12 8:48:04 > top of Java-index,Java Essentials,Java Programming...