Author: Emerson .

Reset the password for the user Administrator in HP iLO 2

Create an XML file with the following contents

root@linux:~ # vi passwd_reset_ilo.xml
<ribcl VERSION=”2.0″>
<login USER_LOGIN=”Administrator” PASSWORD=”boguspassword”>
<user_INFO MODE=”write”>
<mod_USER USER_LOGIN=”Administrator”>
<password value=”newpassword”/>
</mod_USER>
</user_INFO>
</login>
</ribcl>

This file will reset the user Administrator with the password newpassword

Download hponcfg going here – http://www.hp.com/support/ilo2

Select the appropriate Linux operating system.
Select Software – Lights-Out Management category.
Select the HP Lights-Out Online Configuration Utility for Linux .
Select the appropriate version of the HP Lights-Out Online Configuration Utility and click the “download” button.

After installing, run as shown below.

root@linux:~ # hponcfg -f passwd_reset_ilo.xml -l log.txt
HP Lights-Out Online Configuration utility
Version 4.0.1 Date 09/24/2012 (c) Hewlett-Packard Company, 2012
Firmware Revision = 2.01 Device type = iLO 2 Driver name = hpilo
Script succeeded

Source – http://amal.net/?p=1675

Discover HP iLO IP address in Linux

Here we have a Proliant DL785 G6

root@linux:~ # dmidecode | grep -i Proliant
Product Name: ProLiant DL785 G6
Family: ProLiant

To discover the iLO IP address, check it with ipmitool

root@linux:~ # ipmitool lan print
Set in Progress : Set Complete
Auth Type Support :
Auth Type Enable : Callback :
: User :
: Operator :
: Admin : MD2 PASSWORD OEM
: OEM : NONE MD2 PASSWORD
IP Address Source : Static Address
IP Address : 172.22.29.40
Subnet Mask : 255.255.255.0
MAC Address : 00:21:5a:de:db:02
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 172.22.29.1
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
Cipher Suite Priv Max : Not Available

Or you can view using hponcfg and outputting the configuration to a file

root@linux:~ # hponcfg -w iLO_ouput.out
root@linux:~ # cat ILO_ouput.out
<!– HPONCFG VERSION = “3.0” –>
<!– Generated 5/8/2014 12:6:50 –>
<DIR_INFO MODE=”write”>
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = “N”/>
<DIR_LOCAL_USER_ACCT VALUE = “Y”/>
<DIR_SERVER_ADDRESS VALUE = “”/>
<DIR_SERVER_PORT VALUE = “636”/>
<DIR_OBJECT_DN VALUE = “”/>
<DIR_OBJECT_PASSWORD VALUE = “”/>
<DIR_USER_CONTEXT_1 VALUE = “”/>
<DIR_USER_CONTEXT_2 VALUE = “”/>
<DIR_USER_CONTEXT_3 VALUE = “”/>
<RIB_INFO MODE=”write”>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = “Y”/>
<NIC_SPEED VALUE = “10”/>
<FULL_DUPLEX VALUE = “N”/>
<IP_ADDRESS VALUE = “0.0.0.0”/>
<SUBNET_MASK VALUE = “0.0.0.0”/>
<GATEWAY_IP_ADDRESS VALUE = “0.0.0.0”/>
<DNS_NAME VALUE = “ILO—z”/>
<PRIM_DNS_SERVER value = “0.0.0.0”/>
<DHCP_ENABLE VALUE = “Y”/>
<DOMAIN_NAME VALUE = “”/>
<DHCP_GATEWAY VALUE = “Y”/>
<DHCP_DNS_SERVER VALUE = “Y”/>
<DHCP_STATIC_ROUTE VALUE = “Y”/>
<DHCP_WINS_SERVER VALUE = “Y”/>
<REG_WINS_SERVER VALUE = “Y”/>
<PRIM_WINS_SERVER value = “0.0.0.0”/>
<STATIC_ROUTE_1 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_2 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
<STATIC_ROUTE_3 DEST = “0.0.0.0” GATEWAY = “0.0.0.0”/>
</MOD_NETWORK_SETTINGS>
</RIB_INFO>
<USER_INFO MODE=”write”>
</USER_INFO>
</LOGIN>
</RIBCL>

Related: Trying to run ipmitool and receive an error where it can’t find the ipmi device

Suse Linux 10 SP2 – rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by

If you try to install or update a package and the following error message appears

root@suselinux10sp2:~ # rpm -Uvh supportutils-1.20-81.1.noarch.rpm
warning: supportutils-1.20-81.1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 823559f0
error: Failed dependencies:
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by supportutils-1.20-81.1.noarch

You need to verify if the compression method is supported by rpm.

root@suselinux10sp2:~ # rpm —showrc | grep Payload
rpmlib(PayloadIsBzip2) = 3.0.5-1
rpmlib(PayloadFilesHavePrefix) = 4.0-1

In this machine, only bzip2 is supported. One work-around is to update the rpm package before trying to install/upgrade the package where the error message appeared.

HP-UX getsysinfo.sh

getsysinfo.sh for HP-UX – HP Internal link
This script collects general system information from HPUX systems needed for hardware troubleshooting and stores them to a file (default: /tmp/sysinfo.tgz).
The script also supports .shar or uuencoded .tgz for save ASCII transfer via modem or mail.

As of today it is in version 9.19 (24.09.2013)

HP Servers running HP-UX – getsysinfo.sh 9.19 data collection script readme and FAQ

HP-UX: Clearing and checking HBA statistics

Clearing statistics on HBA card

root@hp-ux:~ # /opt/fcms/bin/fcmsutil /dev/fclp0 clear_stat
Thu Oct 24 15:26:44 2013

Driver statistics cleared.

Checking HBA statistics

root@hp-ux:~ # /opt/fcms/bin/fcmsutil /dev/fclp0 stat -s

******************************************************************************
**** Driver Statistics ****
******************************************************************************

Fri Oct 25 14:30:43 2013

— Link Statistics ——————————————————

Link Failure count 0 Loss of Sync count 10
Loss of Signal count 0 Prim seq proto err count 0
Invalid Word count 34 Invalid CRC count 1
Prim seq Timeout count 0 Elstc Bufr Overrun count 0
FC-AL Arb Timeout count 0

Advertised Recv B2B cred 40 Current Recv B2B cred 40
Advertised Xmit B2B cred 8 Current Xmit B2B cred 8
Received EOFa count 0 Received EOFdti count 0
Received EOFni count 0 Received SOFf count 0

IBM Rational ClearCase mount.mvfs: Too many open files in system

There is a Linux host where ClearCase can’t mount any more VOBs

mount.mvfs: Too many open files in system

Reading this note on http://www-01.ibm.com/support/docview.wss?uid=swg21234500#linux says the following:
The number of VOBs that can be mounted simultaneously under Linux is 1022, but this limit can be increased by configuring your MVFS. After you edit the mvfs_param.c file as described below for the kernel version of your system, rebuild and reinstall the MVFS or vnode module using the instructions contained in the README.txt file in the directory containing mvfs_params.c.

This is exactly the case on my system

root@linux:~ # df -h | grep vbs | wc -l
1022

Installing bash on HP-UX

Go to http://hpux.connect.org.uk/ and download bash and dependencies

Copy the packages to the HP-UX server and expand the packages

root@hp-ux:/root# cd /tmp/bash_hpux
root@hp-ux:/tmp/bash_hpux# gunzip *

The site showed that I needed three dependencies and the package for bash

root@hp-ux:/tmp/bash_hpux# ls -l
total 20256
-rw-r—– 1 emerson mrhuxbr 2539738 Jul 5 16:32 bash-4.2.045-ia64-11.31.depot.gz
-rw-r—– 1 emerson mrhuxbr 5639993 Jul 5 16:32 gettext-0.18.2.1-ia64-11.31.depot.gz
-rw-r—– 1 emerson mrhuxbr 1724566 Jul 5 16:33 libiconv-1.14-ia64-11.31.depot.gz
-rw-r—– 1 emerson mrhuxbr 448666 Jul 5 16:33 termcap-1.3.1-ia64-11.31.depot.gz

I installed all four packages

root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/bash-4.2.045-ia64-11.31.depot
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/gettext-0.18.2.1-ia64-11.31.depot
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/libiconv-1.14-ia64-11.31.depot
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/termcap-1.3.1-ia64-11.31.depot

Although it is not necessary, I made a link in /usr/bin pointing to the bash binary

root@hp-ux:/tmp/bash_hpux# ln -s /usr/local/bin/bash /usr/bin/bash

pgsql initdb: directory “/var/opt/psb/db/pgsql” exists but is not empty

pgsql won’t start claiming that the directory is not empty

root@hp-ux:~ # /sbin/init.d/psbdb start
Initializing database. . .
The files belonging to this database system will be owned by user “sfmdb”.
This user must also own the server process.

The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to “english”.

initdb: directory “/var/opt/psb/db/pgsql” exists but is not empty
If you want to create a new database system, either remove or empty
the directory “/var/opt/psb/db/pgsql” or run initdb
with an argument other than “/var/opt/psb/db/pgsql”.

Move the directory then start the database again

root@hp-ux: # mv /var/opt/psb/db/pgsql /var/opt/psb/db/pgsql.bak

root@hp-ux:~ # /sbin/init.d/psbdb start
Initializing database. . .
The files belonging to this database system will be owned by user “sfmdb”.
This user must also own the server process.

The database cluster will be initialized with locale C.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to “english”.

fixing permissions on existing directory /var/opt/psb/db/pgsql … ok
creating subdirectories … ok
selecting default max_connections … 100
selecting default shared_buffers … 32MB
creating configuration files … ok
creating template1 database in /var/opt/psb/db/pgsql/base/1 … ok
initializing pg_authid … ok
initializing dependencies … ok
creating system views … ok
loading system objects’ descriptions … ok
creating conversions … ok
creating dictionaries … ok
setting privileges on built-in objects … ok
creating information schema … ok
vacuuming database template1 … ok
copying template1 to template0 … ok
copying template1 to postgres … ok

WARNING: enabling “trust” authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.

Success. You can now start the database server using:

/opt/psb/db/pgsql/bin/postgres -D /var/opt/psb/db/pgsql
or
/opt/psb/db/pgsql/bin/pg_ctl -D /var/opt/psb/db/pgsql -l logfile start

Verify if it is running

root@hp-ux:~ # ps -eaf | grep sfmdb
sfmdb 4585 4579 0 16:53:24 ? 0:00 postgres: stats collector process
sfmdb 4582 4579 0 16:53:24 ? 0:00 postgres: writer process
sfmdb 4583 4579 0 16:53:24 ? 0:00 postgres: wal writer process
sfmdb 4579 1 0 16:53:24 pts/4 0:00 /opt/psb/db/pgsql/bin/postmaster -D /var/opt/psb/db/pgsql
sfmdb 4584 4579 0 16:53:24 ? 0:00 postgres: autovacuum launcher process
root 4703 23017 0 16:53:54 pts/4 0:00 grep sfmdb

This database is used by HP System Fault Management. To repopulate the database, first check how many providers are there

root@hp-ux:~ # cimprovider -ls > /tmp/cimprovider_orig

User sfmdb must have a valid shell. In my system didn’t have so I changed the user’s shell.

root@hp-ux:~ # grep sfmdb /etc/passwd
sfmdb:*:103:20:System User Locked:/usr/users/sfmdb:/usr/bin/false
root@hp-ux:~ # usermod -s /sbin/sh sfmdb

Stopped the database and removed the directory

root@hp-ux:~ # /sbin/init.d/psbdb stop
root@hp-ux:~ # rm -r /var/opt/psb/db/pgsql

Reconfigured ProviderSvcsBase

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false ProviderSvcsBase

======= 10/03/13 11:34:23 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0094)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
ProviderSvcsBase,r=C.07.00.07.01,a=HP-UX_B.11.31_IA,v=HP
ProviderSvcsCore.CDM-SDK-CORE-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-CLI-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-COMM-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HT-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HWMAP-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_CER,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_MOF,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_MISC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-DOC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-RUN,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SHA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SRC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 16 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution
* The execution phase succeeded for “hp-ux:/”.
* Execution succeeded.

NOTE: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0094 @ hp-ux:/”.

======= 10/03/13 11:36:14 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0094)

Reconfigured SysFaultMgmt and all other providers that has its own database

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false SysFaultMgmt WBEMP-FCP SAS-PROVIDER RAIDSA-PROVIDER WBEMP-Storage

======= 10/03/13 11:36:37 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0095)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
SysFaultMgmt,r=C.07.05.08.01,a=HP-UX_B.11.31_IA/PA,v=HP
RAIDSA-PROVIDER.RAIDSA-PROV-RUN,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
SAS-PROVIDER.SAS-PROVIDER-RUN,l=/,r=B.11.31.1203.04.01,a=HP-UX_B.11.31_IA,v=HP,fr=B.11.31.1203.04.01,fa=HP-UX_B.11.31_IA
SFM-CORE.CPU-TEST-IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.CTR_PRO_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.CTR_PRO_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.EMT_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.EMT_DOC,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EMT_MAN,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EVM_PRO_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EVM_PRO_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.EVWEB_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EVWEB_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.EVWEB_DOC,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EVWEB_GUI_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.EVWEB_GUI_IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.EVWEB_MAN,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.FMD_PRO_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.FMD_PRO_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.GS_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.GS_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.HAS-IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.HS_PRO_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.HS_PRO_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.MEM-TEST-IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.MISC_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.MISC_COREIA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.MISC_TOOLS,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.SFMUI-PROPPAGE,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.SFMUI-PROPPAGE-IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
SFM-CORE.SFM_MAN,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.SFM_PRO_COMM,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA/PA
SFM-CORE.SFM_PRO_IA,l=/,r=C.07.05.08,a=HP-UX_B.11.31_IA/PA,v=HP,fr=C.07.05.08,fa=HP-UX_B.11.31_IA
WBEMP-FCP.CSP-LIB,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.CSP-RUN,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA/PA
WBEMP-FCP.FCP-IP-LIB,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.FCP-IP-RUN,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.FCP-LIB,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.FCP-NIP-LIB,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.FCP-NIP-RUN,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA
WBEMP-FCP.FCP-RUN,l=/,r=B.11.31.1203.05.01,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.05.01,fa=HP-UX_B.11.31_IA/PA
WBEMP-Storage.STORAGE-IP-LIB,l=/,r=B.11.31.1203.06.02,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.06.02,fa=HP-UX_B.11.31_IA
WBEMP-Storage.STORAGE-IP-RUN,l=/,r=B.11.31.1203.06.02,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.06.02,fa=HP-UX_B.11.31_IA
WBEMP-Storage.STORAGE-LWE-RUN,l=/,r=B.11.31.1203.06.02,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.06.02,fa=HP-UX_B.11.31_IA
WBEMP-Storage.STORAGE-PROV-LIB,l=/,r=B.11.31.1203.06.02,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.06.02,fa=HP-UX_B.11.31_IA
WBEMP-Storage.STORAGE-PROV-RUN,l=/,r=B.11.31.1203.06.02,a=HP-UX_B.11.31_IA/PA,v=HP,fr=B.11.31.1203.06.02,fa=HP-UX_B.11.31_IA
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 45 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution

* The execution phase succeeded for “hp-ux:/”.
* Execution succeeded.

NOTE: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0095 @ hp-ux:/”.

======= 10/03/13 11:43:45 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0095)

Verify if there is the same number of providers comparing the old and new file

root@hp-ux:~ # cimprovider -ls > /tmp/cimprovider_new

Send a test to the monitors

root@hp-ux:~ # sfmconfig -t -a
Sending test event for fpl_em monitor.
Sending test event for ia64_corehw monitor.
Sending test event for memory monitor.
Sending test event for processor monitor.
Sending test event for backbone monitor.

Verify the event archive

root@hp-ux:~ # evweb eventviewer -L

EvArchNo Severity Event # Event Category Archive Time Summary
========= =========== ============== ============== =================== ==============================
5 Information 103 Processor 2013-10-03 11:44:31 Test event
4 Information 103 System Hard… 2013-10-03 11:44:30 Test event
3 Information 103 System Hard… 2013-10-03 11:44:30 Test event
2 Information 103 Memory 2013-10-03 11:44:22 Test event
1 Information 103 System Hard… 2013-10-03 11:44:18 Test event

SMF ERROR: Could not install the CER database. CER configure failed

I tried to reconfigure the ProviderSvcsBase but I got an error where 1 script failed

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false ProviderSvcsBase

======= 10/03/13 10:09:56 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0115)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
ProviderSvcsBase,r=C.07.00.07.01,a=HP-UX_B.11.31_IA,v=HP
ProviderSvcsCore.CDM-SDK-CORE-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-CLI-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-COMM-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HT-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HWMAP-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_CER,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_MOF,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_MISC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-DOC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-RUN,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SHA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SRC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 16 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution
ERROR: “hp-ux:/”: 1 configure or unconfigure scripts failed.
* The execution phase failed for “hp-ux:/”.
* Execution had errors.

ERROR: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0115 @ hp-ux:/”.

======= 10/03/13 10:11:13 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0115)

It tries to run the script /var/adm/sw/products/ProviderSvcsCore/PSB_CER/configure and showed me the following error message

root@hp-ux:~ # /var/adm/sw/products/ProviderSvcsCore/PSB_CER/configure
* Configuring CER…
ERROR: Could not install the CER database. CER configure failed.

In my case, it was because the sfmdb user didn’t have a valid shell

root@hp-ux:~ # grep sfmdb /etc/passwd
sfmdb:*:103:20:System Fault Management:/usr/users/sfmdb:/usr/bin/false

I changed the shell

root@hp-ux:~ # usermod -s /sbin/sh sfmdb

And removed the directory where the database files were

root@hp-ux:~ # rm -r /var/opt/psb/db/pgsql

Then I re-run the command to reconfigure and it showed no problems.

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false ProviderSvcsBase

======= 10/03/13 11:34:23 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0094)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
ProviderSvcsBase,r=C.07.00.07.01,a=HP-UX_B.11.31_IA,v=HP
ProviderSvcsCore.CDM-SDK-CORE-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-CLI-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-COMM-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HT-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HWMAP-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_CER,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_MOF,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_MISC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-DOC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-RUN,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SHA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SRC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 16 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution
* The execution phase succeeded for “hp-ux:/”.
* Execution succeeded.

NOTE: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0094 @ hp-ux:/”.

======= 10/03/13 11:36:14 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0094)

evweb eventviewer -L: An error occured while executing the request. Please check log file for more details.

I was having a problem with the event viewer

root@hp-ux:~ # evweb eventviewer -L

An error occured while executing the request. Please check log file for more details.

I was instructed to check the log file /var/opt/sfm/log/sfm.log

root@hp-ux:~ # cat /var/opt/sfm/log/sfm.log
09/26/13 19:03:01 EVWEB_DB_LIB 63 WARNING 1825 15 LOGDB: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket “/tmp/.s.PGSQL.10864”?

09/26/13 19:03:01 commonLog 122 ERROR 1825 15 DB Connection failed to LOGDB…

09/26/13 19:03:01 commonLog 78 CRITICAL 1825 15 DB connection failed

09/26/13 19:17:50 UTILS 348 CRITICAL 1825 1 Thread Join Failed , Errno: 3

Then some services needed to be restarted

root@hp-ux:~ # /opt/wbem/sbin/cimserver -s
PGS10019: CIM server is stopped.
root@hp-ux:~ # usermod -s /sbin/sh sfmdb
root@hp-ux:~ # /sbin/init.d/psbdb stop
root@hp-ux:~ # /sbin/init.d/psbdb start
root@hp-ux:~ # /opt/wbem/sbin/cimserver
root@hp-ux:~ #