HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

HP SMH - Setting thresholds using the command line

 
shocko
Honored Contributor

HP SMH - Setting thresholds using the command line

Hey guys,
I needed to batch set the thresholds for 'Logical Disk Busy' time and wanted to do it via a script. The problem with doing it in SIM is using a replicate agent settings or the like is that different servers have different numbers of logical disks etc.

I had a look at the applet that the SMH uses and noticed that this submits threshold information entered to a .php file. Examining the .php files lead me to the .exe that is actually used to set the thresholds, namely, 'C:\hp\hpsmh\data\smhutil\csginkgo.exe'. This application takes a text file as imput i.e.

C:\hp\hpsmh\data\smhutil\csginkgo.exe -freset_all.txt

Now, the txt file has this format from what i can tell (and it unicode i think also!)

.<# indicating which disk to set> .<# indicating which disk to set> setleaf

i.e. (wrapped text!)
.1.3.6.1.4.1.232.19.2.8.2.1.7.2 .1.3.6.1.4.1.232.19.2.8.2.1.7.2 setleaf 10
.1.3.6.1.4.1.232.19.2.8.2.1.8.2 .1.3.6.1.4.1.232.19.2.8.2.1.8.2 setleaf 40

Would set a warning of 10 and a critical of 40.

Very useful! :)
If my post was helpful please award me Kudos! or Points :)