Get working the script for Silent Installation of HP Agents 7.70,
like described in readme.
How can the certificate be scripted, which I need to manual activate on the
System Management Homepage?
This is what I use and everything comes up like it should
hpinsight()
{
echo "First step unpack and install the HP Agents" >> /root/PostInstall/PostInstall.log
cd /root
tar -zxvf hpmgmt-7.7.0-vmware3x.tgz
./hpmgmt/770/installvm770.sh --silent --inputfile ./hpmgmt.conf
echo "Post Install -- HP Insight Agents installed" >> /root/PostInstall/PostInstall.log
}
I do the same command:
./hpmgmt/770/installvm770.sh --silent --inputfile ./hpmgmt.conf
So there must something in the inputfile different.
The Systemhome
Message was edited by:
meistermn
Post your input / config file and we can compare
Here is it:
For security I replace my ipaddress with MyIPAddress in the input file
\# HP ProLiant Support software input file
#
\# If you wish to have a custom configuration of System Management
\# passwords or SNMP, modify the values and/or uncomment the lines below.
\# Changing the values here can be useful in deploying multiple servers
\# with the same custom configuration.
export CMASILENT="YES"
export CMANOSTARTINSTALL="hpasmd cmastor cmafdtn cmasvr"
\# export CMALOCALHOSTRWCOMMSTR - SNMP read/write community string for local
\# host access.
\# ex. export CMALOCALHOSTRWCOMMSTR=private
\# export CMALOCALHOSTROCOMMSTR - SNMP read-only community string for local host
\# access.
\# ex. export CMALOCALHOSTROCOMMSTR=public
export CMALOCALHOSTRWCOMMSTR=Frankfurt
export CMALOCALHOSTROCOMMSTR=Frankfurt
\# export CMAMGMTSTATIONRWIPORDNS - IP address or DNS host name of a system with
\# read/write access to server as a management station.
\# ex. export CMAMGMTSTATIONRWIPORDNS=192.168.1.1
\# export CMAMGMTSTATIONRWCOMMSTR - SNMP read/write community string for a system
\# with read/write access that serves as a management station.
\# ex. export CMAMGMTSTATIONRWCOMMSTR=private
export CMAMGMTSTATIONRWIPORDNS=MyIPAddress
export CMAMGMTSTATIONRWCOMMSTR=Frankfurt
\# export CMAMGMTSTATIONROIPORDNS - IP address or DNS host name of a system with
\# read-only access to server as a management station.
\# ex. export CMAMGMTSTATIONROIPORDNS=192.168.1.1
\# export CMAMGMTSTATIONROCOMMSTR - SNMP read/write community string for a system
\# with read-only access that serves as a management station.
\# ex. export CMAMGMTSTATIONROCOMMSTR=private
export CMAMGMTSTATIONROIPORDNS=MyIPAdress
export CMAMGMTSTATIONROCOMMSTR=Frankfurt
\# export CMADEFTRAPCOMMSTR - Default SNMP community string for traps.
\# ex. export CMADEFTRAPCOMMSTR=private
\# export CMATRAPDESTINATIONCOMMSTR - SNMP destination trap community string.
\# ex. export CMATRAPDESTINATIONCOMMSTR=private
\# export CMATRAPDESTINATIONIPORDNS - IP address or DNS hostname of a server to
\# send SNMP traps.
\# ex. export CMATRAPDESTINATIONIPORDNS=10.0.0.1
export CMADEFTRAPCOMMSTR=Frankfurt
export CMATRAPDESTINATIONCOMMSTR=Frankfurt
export CMATRAPDESTINATIONIPORDNS=MyIPAdress
\# export CMASYSCONTACT & export CMASYSLOCATION - System contact and location information
\# Must be in double quotes if contains spaces.
\# ex. export CMASYSCONTACT="Joe Smith"
\# ex. export CMASYSLOCATION="1234 Smith Lane, Building Admin #5"
export CMASYSCONTACT="ZIT P 5.21"
export CMASYSLOCATION="DLZ 1 M1Z1"
\# export CMAAGENTEXCLUDESTR - Agent exclusion on startup
\# ex. export CMAAGENTEXCLUDESTR="cmaeventd cmaperfd"
export CMAAGENTEXCLUDESTR="cmaeventd cmaperfd"
\# For accessing the System Management Homepage, the port for hpim service
\# (2381) should be enabled in the firewall. Default is to enable this port.
\# Set export ENABLEHPIMPORT=N if you don't want to enable the port for hpim
\# service
\# N = No
\# Y = Yes
export ENABLEHPIMPORT=Y
\# For the Insight Manager agents to communicate properly with HP Systems
\# Insight Manager, the snmpd service should be enabled in the firewall.
\# Default is to enable this service.
\# Set export ENABLESNMPSERVICE=N if you don't want to enable snmpd service
\# N = No
\# Y = Yes
export ENABLESNMPSERVICE=Y
\# For adding the HP Systems Insight Manager Certificate in SMH, the port \[280]
\# should be enabled in the firewall.
\# Default is to enable this port.
\# Set export ENABLESIMCERTPORT=N if you don't want to enable the port \[280]
\# N = No
\# Y = Yes
export ENABLESIMCERTPORT=Y
Are you asking about how to automate importing the the "trust" certificate for communication between SIM and SMH?
If you want to automate the trusted cert from Insight manager, just script cp to send it to this dirctory in your kickstart file:
/opt/hp/hpsmh/certs/
Drop it in and reboot and the IM homepage shows it as trusted.
If you have enabled the option ENABLECIMCERTPORT=Y in the hpmgmt.conf file, the CIM certificate will be installed automatically on ESX when you access the SMH from CIM.
But it requires that IP Address and hostname of CIM server to be mentioned in the /etc/hosts file of ESX Server