- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Systems Insight Manager
- >
- Re: Change 200 System Contact locations via a scri...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 06:06 AM
03-13-2008 06:06 AM
Change 200 System Contact locations via a script
Although I can do this by hand we really need a script in case the server holding the HP SIM Database crashes
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 08:41 AM
03-13-2008 08:41 AM
Re: Change 200 System Contact locations via a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2008 05:32 AM
03-14-2008 05:32 AM
Re: Change 200 System Contact locations via a script
If you want to have a backup for HP SIM, there are two routes you could go using a script. If you're using only Windows systems, you could write a script utilizing WMI to alter the registry keys for the SNMP service. This can be a bit of a pain.
The other method would work for anything with SNMP. Use the snmpset command (http://www.net-snmp.net/docs/man/snmpset.html) to update the location field. The syntax on my Windows CMS is:
snmpset -v1 -c"CommunityString" remoteservername system.sysLocation.0 s "Updated String"
Where "CommunityString" is your SNMP community string with at least WRITE privileges on each system and "Updated String" is your new location string.
If you were to create a text file that listed your remote systems and then used the for command to parse it you could call this command repeatedly for each remote system and set the location string for each:
for /F %i in (fileforservers.txt) do snmpset -v1 -c"CommunityString" %i system.sysLocation.0 s "Updated String"
Remember to use double '%%' when calling this from a cmd/batch file. Hope that this gets you moving in the right direction.
Good luck!
- Derek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2008 01:01 AM
03-17-2008 01:01 AM
Re: Change 200 System Contact locations via a script
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2008 01:15 AM
03-17-2008 01:15 AM
Re: Change 200 System Contact locations via a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2008 01:57 AM
03-17-2008 01:57 AM
Re: Change 200 System Contact locations via a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 11:11 AM
03-18-2008 11:11 AM
Re: Change 200 System Contact locations via a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 03:44 AM
03-19-2008 03:44 AM
Re: Change 200 System Contact locations via a script
Couple questions:
1) What details are you missing? You said you needed a way to set the SNMP settings in case SIM was unavailable, NOT to resolve SIM communication or data population.
2) Can you attach a screen shot of that same node after pressing the "++" button to expand your 'details'. If you have an SNMP configuration issue, you may want to move this question over to another forum.
Don't forget to re-run your Identification tasks in SIM. If your SNMP settings were incorrect initially and SIM couldn't poll the server, you'll need to re-run this so that it can use the new settings on the remote server.
Dave,
I was aware of those points, but was trying to answer Richard as to his original question. If SIM is unavailable, an alternate method would be required. WMI/WBEM would be more secure, but SNMP is there, available, and a common management point between platforms (which he didn't specify.)
I do agree, given that SIM is up, online and available, it is the most secure option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 03:46 AM
03-19-2008 03:46 AM
Re: Change 200 System Contact locations via a script
I had to bite the bullet and input all the details!!!!!