Server Management - Systems Insight Manager
1830898 Members
2532 Online
110017 Solutions
New Discussion

Re: Check SIM status from scripts

 
Kelvin Wong2
New Member

Check SIM status from scripts

Hi all,

I am trying to write vbscripts using either WMI or SNMP to query status and values of HP proliant servers. I don't seem to find any documents how this can be done?

Here is some example of what I want to do from scripts:
- Query h/w status of SIM (just as we see it in the web page)
- query smart array cache ratio setting (or set the settings also)
- query asset text which we have enter via F9, this is the value found in system info -> Asset control informatin -> Asset Tag

Thanks for the help
Regards
Kelvin Wong
4 REPLIES 4
Derek_56
Valued Contributor

Re: Check SIM status from scripts

Kelvin,

Are you trying to eliminate CMS (SIM Server, not the agents on the client servers) entirely? If not, you should be able to query this information by using the mxnode command line utility to dump the information from the nodes and parse, or use WMI to query the database directly against the reporting tables. Outside of that, you are attempting to re-write what HP has done with the agents and SIM to start with. For information on the command line or database tables click on the '?' in SIM and search the help file for either.

Good luck,
Derek
Kelvin Wong2
New Member

Re: Check SIM status from scripts

Hi Derek,

Thanks for the reply. I hope I am not redoing the work of HP SIM. But the problem is that my organisation like a lot out there, does not have only one brand of servers, so I would like to find a more generic way of setting my servers, like with scripting via WMI and SNMP, via gets and sets.

So far this cannot be done via SIM reporting/setting:
- Set Asset Tag (this can be reported)
- Get/Set smart array cache ratio
- Health status of the h/w as reported by HP web SIM agent (there is no such category in the reporter).

So I am trying to find out if HP exposes such properties via WMI or SNMP so that I can write scripts to manage my HP server together with other brands like IBM and DeLL, from a single scripting logic.

Thanks in advance.
David Claypool
Honored Contributor

Re: Check SIM status from scripts

Kelvin, you have several options here...

Asset Tag

This is a reportable field in HP SIM, so if it is set, you can pick it up and run a report. In order to set it, as you note above, the most common way is to use [F9] and go in to RBSU. However, you also can use the SmartStart Scripting Toolkit for Windows' CONREP utility to set it. Keep in mind that values from the BIOS are only read in at boot time, so you won't be able to retrieve that value after setting it until a reboot occurs.

SmartArray Cache

The Array Configuration Utility delivered as part of the ProLiant Support Pack is the key here. With OpenSSH on your target systems, you can use HP SIM's custom tools to deliver a batch file that will call ACU and filter for what you want, and then that can be displayed by SIM as a report. The batch file would look like this:

@echo off
c:\PROGRA~1\COMPAQ\CPQACUXE\BIN\CPQACUXE -C c:\acucapt.ini
TYPE C:\ACUCAPT.INI | FIND "Cache"

...and then when you run it against your systems you'll have the following for each one:

ReadCache= xxx
WriteCache= yyy

You can also use the same technique to modify the settings.

Health Status

This is not collected into the database because it is very dynamic, being updated by default Server Status Polling every 5 minutes. The overall status as reported on the Systems Management Homepage is based on what's called the ProLiant Status Array. I don't have a reference handy for its OID, but if you snmpwalk the 232 (Compaq) enterprise, you should be able to find it.

You also might want to check out "How to manage non-HP servers with HP SIM" from http://www.hp.com/go/hpsim --> Information Library to see how to go about using HP SIM to manage those Dells and IBMs you have lying around. HP SIM is a pretty good multi-vendor manager.
Kelvin Wong2
New Member

Re: Check SIM status from scripts

Hi David,

Many thanks for your reply, I will go check them out.