Category: HP-UX

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:~ #

Delete events showing in evweb eventviewer

If your event log is getting full

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

EvArchNo Severity Event # Event Category Archive Time Summary
========= ========= ============== ============== =================== ==============================
17820 Critical 187 Secondary S… 2013-09-26 14:08:51 An attempt to probe existin…
17819 Critical 187 Secondary S… 2013-09-26 14:08:48 An attempt to probe existin…
17818 Critical 187 Secondary S… 2013-09-26 14:08:46 An attempt to probe existin…
17817 Critical 187 Secondary S… 2013-09-26 14:08:44 An attempt to probe existin…
17816 Critical 187 Secondary S… 2013-09-26 13:36:04 An attempt to probe existin…
17815 Critical 187 Secondary S… 2013-09-26 13:35:58 An attempt to probe existin…
17814 Critical 187 Secondary S… 2013-09-26 13:35:56 An attempt to probe existin…
17813 Critical 187 Secondary S… 2013-09-26 13:35:54 An attempt to probe existin…
17812 Critical 187 Secondary S… 2013-09-26 13:32:44 An attempt to probe existin…
17811 Critical 187 Secondary S… 2013-09-26 13:32:38 An attempt to probe existin…
17810 Critical 187 Secondary S… 2013-09-26 13:32:36 An attempt to probe existin…
17809 Critical 187 Secondary S… 2013-09-26 13:32:34 An attempt to probe existin…
17808 Critical 187 Secondary S… 2013-09-26 13:29:14 An attempt to probe existin…
17807 Critical 187 Secondary S… 2013-09-26 13:28:23 An attempt to probe existin…
17806 Critical 187 Secondary S… 2013-09-26 13:28:21 An attempt to probe existin…
17805 Critical 187 Secondary S… 2013-09-26 13:28:19 An attempt to probe existin…

You can delete all the events running the command below. If you put -f it won’t ask you to delete the events

root@hp-ux:~ # evweb eventviewer [-f] -D
Are you sure you want to delete the event(s) (y/n)? [n]:
y

The execution of command was successful.

Run evweb eventviewer -L to list the events

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

EvArchNo Severity Event # Event Category Archive Time Summary
========= ========= ============== ============== =================== ==============================

HP Data Protector – What devices are visible to the host

To check what devices are visible to the host use devbra

root@hp-ux:~ # whereis devbra
devbra: /opt/omni/lbin/devbra

Check version

root@hp-ux:~ # /opt/omni/lbin/devbra
HP Data Protector A.06.20: DEVBRA, internal build 407, built on Fri Oct 19 07:46:26 2012

HP Data Protector Operations Guide – To verify what devices are visible to the host, use the following command line option

Sample:

root@hp-ux:~ # /opt/omni/lbin/devbra -dev
Exch HP:ESL E-Series Path: “/dev/rchgr/autoch8” SN: “HPE154132113”
Description: HP StorageWorks ESL E-Series
Revision: 7.60 Flags: 0x0006 Slots: 300 Drives: 8
Drive(s) SN:
“HU1214MWT0”
“HU1219NE35”
“HU1219NE2Q”
“HU1214MWRQ”
“HU1214MWT1”
“HU1219NE2U”
“HU1219NE2H”
“HU1218NA4S”

Tape HP:Ultrium 5-SCSI Path: “/dev/rtape/tape265_BESTn” SN: “HU1219NE2U”
Description: HP LTO drive
Revision: I5EW Device type: lto [13] Flags: 0x0101

Tape HP:Ultrium 5-SCSI Path: “/dev/rtape/tape266_BESTn” SN: “HU1218NA4S”
Description: HP LTO drive
Revision: I5EW Device type: lto [13] Flags: 0x0101

HP MP / ILO: Sorry, LAN Console access is currently disabled

When you try to access the Management Processor of an HP Integrity server and receive the message Sorry, LAN Console access is currently disabled

user@hostname:~ $ telnet ilo_ip_address
Trying 10.0.0.120…
Connected to 10.0.0.120.
Escape character is ‘^]’.

Sorry, LAN Console access is currently disabled.
Connection to 10.0.0.120 closed by foreign host.

You need to enable telnet and/or ssh according to the picture below. Access using a browser on the same IP address of the MP.
Integrity ILO Access Settings

Discover the IP address of ILO in a HP Integrity server

Example from an HP Integrity RX2660

root@hp-ux:~ # /opt/propplus/bin/cprop -detail -c “Management Processor”

[Component]: Management Processor
[Table]: Management Processor
——————————————————-
****************************************************
[Hash ID]: Management Processor:635bdafbx146dde57
< ClassName:HP_ManagementProcessor NameSpace:root/cimv2 >
[UniqueIdentifier]: 0.34.100.148.155.53
[ControllerType]: Unknown
[IPAddress]: 10.32.32.148
[URL]: https://10.32.32.148
[Dedicated]: Management
[CreationClassName]: HP_ManagementProcessor
[Name]: Management Processor
[EnabledState]: Enabled
[OperationalStatus]: OK
[FirmwareRevision]: F.002.026.000
[LEDColour]: 0
[LEDBlinkRate]: 0
[NICCondition]: 2
****************************************************
——————————————————-

This following example is a little different. This is to reset a GSP for HP 9000 rp5400 (L1000) Server

root@hp-ux_pa-risc:~ # ioscan -fnC tty
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tty 0 0/0/4/0 asio0 CLAIMED INTERFACE PCI Serial (103c1048)
/dev/GSPdiag1 /dev/mux0 /dev/tty0p1
/dev/diag/mux0 /dev/tty0p0 /dev/tty0p2
tty 1 0/0/5/0 asio0 CLAIMED INTERFACE PCI Serial (103c1048)
/dev/GSPdiag2 /dev/diag/mux1 /dev/mux1 /dev/tty1p1

root@hp-ux_pa:~ # stty +queryGSP < /dev/GSPdiag1
GSP is functional.

root@hp-ux_pa:~ # stty +resetGSP < /dev/GSPdiag1
GSP reset succeeded.

Installing HP-UX SysInfo

Download the depot file from The “Official” SysInfo Page

I copied the file to /tmp

root@hp-ux:/tmp # cd /tmp
root@hp-ux:/tmp # gunzip SysInfo.7.12a.depot.gz
root@hp-ux:/tmp # swinstall -s /tmp/SysInfo.7.12a.depot SysInfo

======= 08/30/13 13:47:52 EDT BEGIN swinstall SESSION
(non-interactive) (jobid=hp-ux-0259)

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

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Source: /tmp/SysInfo.7.12a.depot
* Targets: hp-ux:/
* Software selections:
SysInfo.SYS-INFO,r=A.07.12a,v=HP
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
“/root/.sw/sessions/swinstall.last”.
* The analysis phase succeeded for “hp-ux:/”.
* The execution phase succeeded for “hp-ux:/”.
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0259 @ hp-ux:/”.

======= 08/30/13 13:48:08 EDT END swinstall SESSION (non-interactive)
(jobid=hp-ux-0259)

You generate a text file with the -b flag or you can use -H to generate an HTML file

root@hp-ux:/tmp # /usr/bin/SysInfo -b

root@hp-ux:/tmp # /usr/bin/SysInfo -H

Maybe you wish to know about HP BSC getsysinfo.sh for HP-UX

/stand/bootconf is INCORRECT

You ran Sysinfo but received the message /stand/bootconf is INCORRECT, you need to edit the file /stand/bootconf to add the missing disk according to your configuration

=== START /stand/bootconf contents ===

l /dev/disk/disk2_p2

=== END /stand/bootconf contents ===

/stand/bootconf is missing an entry for /dev/disk/disk3_p2
– /stand/bootconf is INCORRECT and should contain the lines:

l /dev/disk/disk2_p2
l /dev/disk/disk3_p2

=== END Bootconf Data ===

The file /stand/bootconf must have both boot disks if your system is mirrored

root@hp-ux:~ # cat /stand/bootconf
l /dev/disk/disk2_p2

To verify which disk/partition is missing, type lvlnboot -v

root@hp-ux:~ # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk2_p2 — Boot Disk
/dev/disk/disk3_p2 — Boot Disk
Boot: lvol1 on: /dev/disk/disk2_p2
/dev/disk/disk3_p2
Root: lvol3 on: /dev/disk/disk2_p2
/dev/disk/disk3_p2
Swap: lvol2 on: /dev/disk/disk2_p2
/dev/disk/disk3_p2
Dump: lvol2 on: /dev/disk/disk2_p2, 0

To update this file, you can simply edit the file

root@hp-ux:~ # vi /stand/bootconf
l /dev/disk/disk2_p2
l /dev/disk/disk3_p2

Configuring HP-UX routes

Add or delete a route to a specific host:

root@hp-ux:/ # route add host 192.168.1.1 192.168.0.1 1

root@hp-ux:/ # route delete host 192.168.1.1 192.168.0.1

Add or delete a route to a network

root@hp-ux:/ # route add net 192.168.1.0 netmask 255.255.255.0 192.168.1.1 1

root@hp-ux:/ # route delete net 192.168.1.0 netmask 255.255.255.0 192.168.1.1

Add or delete a default route

root@hp-ux:/ # route add default 192.168.0.1 1

root@hp-ux:/ # route delete default 192.168.0.1

Flush all gateway entries from the routing table

root@hp-ux:/ # route -f

Saving the IP Routing Configuration

root@hp-ux:/ # vi /etc/rc.config.d/netconf
ROUTE_DESTINATION[0]=”net 129.1.0.0″
ROUTE_MASK[0]=”255.255.0.0″
ROUTE_GATEWAY[0]=”128.1.0.1″
ROUTE_COUNT[0]=”1″
ROUTE_ARGS[0]=””
ROUTE_SOURCE[0]=””
ROUTE_DESTINATION[1]=”default”
ROUTE_MASK[1]=””
ROUTE_GATEWAY[1]=”128.1.0.1″
ROUTE_COUNT[1]=”1″
ROUTE_ARGS[1]=””
ROUTE_SOURCE[1]=””

HP-UX: root password expired in a trusted system

There is an HP-UX system that had the root password expired

user@linux:~ $ ssh root@hp-ux
Last successful login for root: Mon Apr 1 13:01:33 BRA3BDT 2013
Last unsuccessful login for root: Mon Apr 1 13:02:14 BRA3BDT 2013
Your password has expired.
Last login: Mon Apr 1 13:01:33 2013 from 172.16.4.198
Changing password for root
Old password:
Sorry.

I was unable to change the password since it is not known

root@hp-ux:/root # passwd root
Changing password for root
Old password:
Sorry.

Since there is no /etc/shadow file because this is a trusted system, to delete the root password you go to the /tcb/files/auth/r/root and delete the password from the :u_pwd attribute

root@hp-ux:/tcb/files/auth/r # cat root
root:u_name=root:u_id#0:\
:u_pwd=2576d348b7120d068cf812db81d2a414:\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_succhg#1348864982:u_unsucchg#1364832324:u_pswduser=root:u_suclog#1364832138:\
:u_unsuclog#1364832144:u_numunsuclog#1:u_maxtries#0:u_lock@:\
:chkent:

Then you should not have a problem to change the password

root@hp-ux:/tcb/files/auth/r # passwd root
Changing password for root
Last successful password change for root: Fri Sep 28 17:43:02 2012
Last unsuccessful password change for root: Mon Apr 1 13:05:24 2013

Do you want (choose one letter only):
pronounceable passwords generated for you (g)
a string of letters generated (l) ?
to pick your passwords (p) ?

Enter choice here: p
New password:
Re-enter new password:
Passwd successfully changed