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

SNMP Location field

orven
Frequent Advisor

SNMP Location field


Where is the best way to update the SNMP location of my devices.
Is in on Windows Services under SNMP service or in HPSIM itself under System page\tools and Links\Edit System Properties? Please advise.

If I will do it in my HPSIM will it also update the SNMP location under Windows Services?

14 REPLIES
Albert Austin
Esteemed Contributor

Re: SNMP Location field

Pobably the easiest way to update settings is to go from CONFIGURE-> REPLICATE AGENT SETTINGS. SNMP must be up and running on all host servers.
Doing it through windows services can be tiresome if you are managing many servers.

The below path is not enough to update SNMP settings. By doing this you are only informing SIM on how to collect data from hosts.
System page\tools and Links\Edit System Properties
orven
Frequent Advisor

Re: SNMP Location field

Thanks!

Problem is Location is always do vary: like serverA on Rack AA1, ServerB Rack AA6 etc...

I didnt get you on this"
The below path is not enough to update SNMP settings. By doing this you are only informing SIM on how to collect data from hosts. System page\tools and Links\Edit System Properties"
Can you please further explain.

Idea is we habe 60 servers and we want to update SNMP location so when particular Admin search for a server he can search for the box and check the lcoation.
thanks

Albert Austin
Esteemed Contributor

Re: SNMP Location field

After reading your second message, I realised I misunderstood the first one a bit.

If you would like to update the SNMP LOCATION field, you could do it through SMH or Services (windows).
Via the System properties in the CMS console you do not have that option available to update.

If you have all trusts configured probably doing it through SMH is faster, and then ofcourse replicating those settings to the other servers via the path mentioned in my previous message.
orven
Frequent Advisor

Re: SNMP Location field

That is the thing..

If you will check there is an option for this..
you seach a particular server-> click system Name - go to Tools and Links - Edit system Properties. then there is SNMP location.. can I use this or what is the diffierencce in Windows?

Cannot replicate settings since they are all different Values

thanks
Albert Austin
Esteemed Contributor

Re: SNMP Location field

The outcome is the same.
If you fill SNMP location through SNMP tab in Windows it updates it in CMS. But if you update it directly in CMS, it does not update it in your SNMP tab settings.

I would recommend to do it through SNMP tab in Windows. So if you do loose the server from your database you dont have to go and fill out the information once more as your SNMP is configured to send it to you.
orven
Frequent Advisor

Re: SNMP Location field

Thanks you have a point!
Problem is that user taht will update the SNMP lcation in Windows might need domain Admin rights or individual Local Admin.
do you think having the SNMP read write string will be sufficient??

Lastly.. I want to display the Location Field in my Table view. I cannot add it Table view columns, would be nice you can can see Location columns right away!

More Power!!!!!!!!!!
Albert Austin
Esteemed Contributor

Re: SNMP Location field

Why would you need to give users any rights. You could do it from your CMS without having to move. From CMS access each servers SMH homepage and change SNMP settings there.
I have Read/write in my environment, but some would debate that Read/Create is more powerful.

As for customising table view to add location field, sorry cant help you there. If I were to guess I would say no. but if you search the forum you could come across somebody with more knowledge on that issue.
orven
Frequent Advisor

Re: SNMP Location field

Thanks, but how do you address those SMH that everytime you open the page it is always asking for password? Do I have to do something.

the other SMH is when you open is uses host operating system authentication.

Is there a way to have a unified account that opne all SMH in my CMS.

Albert Austin
Esteemed Contributor

Re: SNMP Location field

Well I guess you have not created a trust between CMS and your host servers yet. Thats the reason you get a logon screen everytime you try and access the SMH through CMS.
Check this link out for more information on trusts:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1024735
OlivierV
Trusted Contributor

Re: SNMP Location field

You can do that using a SNMP tool that allows you to launch SNMPSET commands from DOS. This is what I do for our server.
I have a TXT file with the IP address of the server and the location I want to set. With a DOS batch, I use this file for the entries and launch the SNMPSET command for all these servers (with a FOR command).
As we have the SNMP write community which is the same for all the servers, no need to have a login account, the write community is enough.
David Claypool
Honored Contributor

Re: SNMP Location field

Guys:

HP SIM 5.0 has a feature called 'Configure or Repair agents" that does this automatically.
orven
Frequent Advisor

Re: SNMP Location field

Thanks Guys!

I tried to select three servers that I cannot access SMH that iand always asking me for password. one of them worked but the two servers no.

What I did:
I went to my CMS then select three servers go to configure then configure or repair agents, provide all the info and passwords etc.

It then try accessing SMH and it didnt work, login rejected.
the only difference is the two serves is not in my AD domain.. all in workgroupp..

any idea. Is there a way to do trust all.. how do i do it.
mark q
Regular Advisor

Re: SNMP Location field

login to the smh

- security
- trusts
- trust all

not reccomended.. you can configure the trusts through hpsum - configure components
mark q
Regular Advisor

Re: SNMP Location field

I wrote a vbscript today that will take an input file (servers.txt) and will write a batch file for net snmp to update the location for the servers.

here's the script - all you have to do is change your snmp write community and your domain suffix (that way you can have a server list without fully qualified names)

Const ForReading = 1
Const ForWriting = 2

'replace your write community - with your snmp write community
'replace your domain suffix (with the domain suffix you have for your hosts)

strrackname = InputBox("What is the Rack Location", "Data Center Rack Location", default)
'create the blank text file
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("support.cmd")
objFile.Close
Set objFSo = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("servers.txt", ForReading)
strContents = objFile.ReadAll
objFile.Close
arrLines = Split(strContents, vbCrLf)
Set objFile = objFSO.OpenTextFile("support.cmd", ForWriting)
For i = 0 to UBound(arrLines)
objFile.WriteLine "snmpset -v1 -c" & chr(34) & "your write community" & chr(34) & " " & arrLines(i) & ".your domain suffix" & " system.sysLocation.0 s " & chr(34) & strrackname & chr(34)
Next
objFile.Close