Server Management - Systems Insight Manager
1753404 Members
7190 Online
108793 Solutions
New Discussion юеВ

Change web agent from trust by name to trust by cert

 
John C Lee
New Member

Change web agent from trust by name to trust by cert

Currently HPSIM is setup to trust by name (which isn't working), so we are attempting to swith to trust by cert. I can manually change each system home page, but I'd like to script this process. The script I'm using will get the cert recognize, but it won't change the setting from trust by name to trust by cert. How do I get this to change in a script?

Neither Replicate Agent Settings or Configure or Repair agents works. Replicate tells me that target and source don't trust each other, while configure or repair gives this:

StdoutStderr
There was a problem connecting to the HP Systems Insight Manager server. Make sure that:
1. Your username has been added to HP Systems Insight Manager.
2. Your username and password, if specified, are correctly spelled.
3. HP Systems Insight Manager is running.
4. You used ┬┤--┬┤ for any long options and double quotes if your username includes a domain.
Example: --user "mydomain\myusername" --pass mypassword


Here is the script I'm using

Rem
Rem
Rem Run this script from the target server (login script, group policy, remote-exec, etc)
Rem
Rem To use this, modify \\source\share and snmp.reg
Rem Put the agent config files on the UNC
Rem To get snmp.reg, export HKLM:System\CurrentControlSet\System\SNMP\Parameters
Rem


Rem --------------------------- HP Agents -----------------------------

del c:\compaq\wbem\certs\*.* /q
Rem Remove previous trusts

xcopy \\plhcsgfwnetfs1\c$\compaq\wbem\CPQHMMD.ACL c:\compaq\wbem\ /y
xcopy \\plhcsgfwnetfs1\c$\compaq\wbem\CPQHMMD.CFG c:\compaq\wbem\ /y
xcopy \\plhcsgfwnetfs1\c$\compaq\wbem\homepage\CPQHMMD.INI c:\compaq\wbem\homepage\ /y
xcopy \\plhcsgfwnetfs1\c$\CPQHMMDX.INI c:\compaq\wbem\homepage\ /y
xcopy \\plhcsgfwnetfs1\c$\compaq\wbem\certs\*.* c:\compaq\wbem\certs\ /y
Rem duplicates agent configuration


Rem ------------ Restart SNMP and Agents so changes take effect --------

net stop "snmp service" /y && net start "snmp service" /y
net start "HP Insight Web Agent"
net start "HP Insight Foundation Agent"
net start "HP Insight Storage Agents"
net start "HP Insight Server Agents"
net start "HP Insight NIC Agent"
2 REPLIES 2
John C Lee
New Member

Re: Change web agent from trust by name to trust by cert

nevermind I figured it out. I set a server up the way i wanted, and then fixed this line in the script above
xcopy \\plhcsgfwnetfs1\c$\CPQHMMDX.INI c:\compaq\wbem\homepage\ /y

to read

xcopy \\plhcsgfwnetfs1\c$\compaq\wbem\homepage\CPQHMMDX.INI c:\compaq\wbem\homepage\ /y
John C Lee
New Member

Re: Change web agent from trust by name to trust by cert

see reply to myself above