Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to set SMH data source to SNMP via script?

Rowenna De La Vega
Occasional Visitor

Any way to set SMH data source to SNMP via script?

Hi All,
Does anyone know of a way to set the System Management Homepage data source to SNMP via script? Or is the setting held in a file somewhere that can be edited?

We have loaded HP Insight Management WBEM Providers for Windows Server 2003/2008 as part of our new automated server builds for use in the future, though we want to use SNMP currently. When HP Insight Management WBEM Providers for Windows Server 2003/2008 is loaded though it's default data source is WBEM.
15 REPLIES
Gladiator
Valued Contributor

Re: Any way to set SMH data source to SNMP via script?

Hi,

This is possible. You can change the data source to SNMP through gui itself.
There is an option for this from Smart Start 8.00.
Install the whole 8.00 PSP by selecting the wbem provider along with it.

After installing login to SMH.
There you can see a new data source field in the top right corner of your SMH homepage.
That shows which data souce is currently being used. By default it is WBEM.

For changing the Data Source
goto settings -> Select SMH Data Source.
Two radio buttons are available.
One for WBEM and one for SNMP. By default Wbem is selected.
Select snmp radio button and click on select button.
Logout and login.
Now it populates the data using snmp.
The data source field shows snmp.

Regards
Sins
Rowenna De La Vega
Occasional Visitor

Re: Any way to set SMH data source to SNMP via script?

Thanks for the GUI instructions, though i'm actually wanting a script to set the data source ... this is so i can add in to our server builds, instead of having to manually set it on every single server build we do. Or if anyone knows if there is a file where the setting is held that would help too.
David Claypool
Honored Contributor

Re: Any way to set SMH data source to SNMP via script?

For new server builds, it would be better to not load it at all, and then push out the component in the future. No, there is no way to script the change of the SMH data source.
Phillip Thayer
Esteemed Contributor

Re: Any way to set SMH data source to SNMP via script?

We are having a problem with the SNMP on SMH in that it is not even active to allow us to select it. How can we get the SNMP option to be active in SMH?
Once it's in production it's all bugs after that.
Gladiator
Valued Contributor

Re: Any way to set SMH data source to SNMP via script?

Hi,

Install the Insight management agents and configure SNMP. This should work. This is the only reason why SNMP option is inactive.

Regards
Sinto
David Bloch
Occasional Visitor

Re: Any way to set SMH data source to SNMP via script?

I had the same issue for a population of 5000+ servers. And I didnt want do login to 5000+ SMH to change it. You could script to uninstall the HP Insight Mangement WBEM Providers and restart HP System Management Homepage service.
That solved my problem.
Rob Mills
Frequent Advisor

Re: Any way to set SMH data source to SNMP via script?

things have changed since this thread first came out David. Now you can use Replicate Agent Settings for this.
Jerame
Frequent Advisor

Re: Any way to set SMH data source to SNMP via script?

Hi Rob,
I just tried, and couldn't find that option.

I'm running SIM 5.3 SP1 with the hotfix.

Can you tell me where/how I can replicate datasource?

TIA,
Jerame
Rob Mills
Frequent Advisor

Re: Any way to set SMH data source to SNMP via script?

I believe your source server has to be using SMH 3.0 or higher.

in Replicate Agent Setting, after you've selected your target and source servers you are given the Step 3 screen.

-expand HP Insight Management Configuration Webapp
-expand Datasource Information.
-expand Datasource Properties
-choose Webapp Value (should be 2)

shocko
Honored Contributor

Re: Any way to set SMH data source to SNMP via script?

I had the same problem. Seems a bit short sighted by HP but unfortunaely i reverted to not installing the WBEM providers. Just less hassle. If down the line i want to start using them i'll just roll them out using psexec.exe

;)
If my post was helpful please award me Kudos! or Points :)
City_Blue
Super Advisor

Re: Any way to set SMH data source to SNMP via script?

i have an issue on 2 rx7640's were i am unable to change the data source from WBEM to SNMP

not sure if this is an integrity issue or SMH.

snmp is installed and configured

cheers
Tom McGuigan
Frequent Advisor

Re: Any way to set SMH data source to SNMP via script?

To set/get the SMH data source to SNMP or WBEM, call the attached script...enjoy!!
Mike_Cool
Occasional Advisor

Re: Any way to set SMH data source to SNMP via script?

Can i get this script to run for multiple servers same time. How to get it modified call a list of servers and have it changed in all of them.
Steve Shockley_2
Occasional Visitor

Re: Any way to set SMH data source to SNMP via script?

If you use PowerShell, you can use the following command:

Invoke-WmiMethod -Path "HPSMHConf.WebApp=2" -Name select -argumentlist "1" -Namespace "root\hpq\default" -ComputerName "servername"

This calls a WMI method that changes all the settings and restarts SMH.
EricSLiu
Occasional Visitor

Re: Any way to set SMH data source to SNMP via script?

Thanks for the script. It works