Thread-topic: Xserve SNMP-MIBs for Vital Hardware Stats
User-agent: Microsoft-Entourage/11.3.3.061214
On 6/4/07 13:25, "Gregory Hedo" <email@hidden> wrote:
> I've tryed to snmpwalk leaf at the end of the branch, like:
> iso/org/dod/internet/mgmt/mib-2/system/sysName -> .1.3.6.1.2.1.1.5
> (this one works)
>
> Then, I searched for OID who store the temperature or the CPU usage
> (or any others vital info, like free disk space, size of the
> disk, ....) without success.
However, some OIDs that can help:
.1.3.6.1.2.1.25.2, which gives you the hrstorage OID. use -Of to get the
names, and -On to get the numerical OIDs for each. That will help you get
things like disk size.
For example, in my case, the Xserve RAID partition shown by
.1.3.6.1.2.1.25.2.3.1.5.11 is: INTEGER: 610443246
That's a measurement of allocation units, which in this case are 4096 bytes
in size. Some multiplication gives me 2,500,375,535,616 bytes available,
which is about right. Note with SNMP, you can get some pretty different
numbers depending on how you use it.
for space used, .1.3.6.1.2.1.25.2.3.1.6.11 has a value of INTEGER: 89612050,
for 367,050,956,800 bytes used, which is also about right.
HRStorage tries to measure real memory, but according to that, I have 9GB of
ram in my G5 Xserve, so I think it's not a good measurement.
walking .1.3.6.1.2.1.25.3, gives you fs types, fs mountpoints, autmoutn
types, etc. Note that SNMP doesn't know what to do with HFS+, so that shows
"other" as a result.
.1.3.6.1.2.1.25.4 gives you a list of running processes basic kind, and
status of same. Keep in mind that to this oid, everything's an application.
.1.3.6.1.2.1.25.5 tries to give you some process performance numbers, but
I'd not count on them too much.
Note that this reply required me to restart snmpd 9 times.
--
John C. Welch Writer/Analyst
Bynkii.com Mac and other opinions
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden
This email sent to email@hidden