Category: Solaris

RHEL 5 booting stuck – GRUB Loading stage2… Press any key to continue

I have a HPE Proliant DL380 G7 that is running Red Hat Enterprise Linux 5 that was stuck on the following message

GRUB Loading stage2…
Press any key to continue

Removed the section shown in red on file /boot/grub/grub.conf

root@rhel5:/boot/grub # cat grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/rootvg/rootlv
# initrd /initrd-version.img
#boot=/dev/cciss/c0d0
default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu

serial –unit=0 –speed=115200
terminal –timeout=10 console serial

title Red Hat Enterprise Linux Server (2.6.18-406.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-406.el5 ro root=/dev/rootvg/rootlv rhgb noquiet crashkernel=128@16M log_buf_len=3M elevator=noop nmi_watchdog=0
initrd /initrd-2.6.18-406.el5.img
title Red Hat Enterprise Linux Server (2.6.18-308.16.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-308.16.1.el5 ro root=/dev/rootvg/rootlv rhgb noquiet crashkernel=128@16M log_buf_len=3M elevator=noop nmi_watchdog=0
initrd /initrd-2.6.18-308.16.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-308.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-308.el5 ro root=/dev/rootvg/rootlv rhgb noquiet crashkernel=128M@16M log_buf_len=3M elevator=noop nmi_watchdog=0
initrd /initrd-2.6.18-308.el5.img

Service /network/sccheckd status is maintenance, check with svcs -xv

root@solaris:~ # svcs -xv
svc:/network/sccheckd:default (Sun Cluster configuration checker service)
State: maintenance since Tue Oct 15 17:34:16 2019
Reason: Restarter svc:/network/inetd:default gave no explanation.
See: http://sun.com/msg/SMF-8000-9C
See: man -M /usr/cluster/man -s 1M sccheckd
Impact: This service is not running.

root@solaris:~ # inetadm -p
NAME=VALUE
bind_addr=””
bind_fail_max=-1
bind_fail_interval=-1
max_con_rate=-1
max_copies=-1
con_rate_offline=-1
failrate_cnt=40
failrate_interval=60
inherit_env=TRUE
tcp_trace=TRUE
tcp_wrappers=FALSE
connection_backlog=10

root@solaris:~ # inetadm -l svc:/network/sccheckd:default
SCOPE NAME=VALUE
name=”sccheckd”
endpoint_type=”stream”
proto=”tcp”
isrpc=FALSE
wait=FALSE
exec=”/usr/cluster/lib/sccheck/sccheckd”
user=”root”
default bind_addr=””
default bind_fail_max=-1
default bind_fail_interval=-1
default max_con_rate=-1
default max_copies=-1
default con_rate_offline=-1
default failrate_cnt=40
default failrate_interval=60
default inherit_env=TRUE
default tcp_trace=TRUE
default tcp_wrappers=FALSE
default connection_backlog=10

insserv: warning: script missing LSB tags and overrides | insserv: Stopping depends on and therefore on system facility `$all’ which can not be true!

When trying to enable xinetd to start on boot, insserv was throwing error message and not enabling it.

root@linux:~ # chkconfig –list xinetd
xinetd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

root@linux:~ # chkconfig xinetd on
insserv: warning: script ‘K02OVTrcSrv’ missing LSB tags and overrides
insserv: warning: script ‘OVTrcSrv’ missing LSB tags and overrides
insserv: warning: script ‘esmrc’ missing LSB tags and overrides
insserv: Default-Start undefined, assuming default start runlevel(s) for script `esmrc’
insserv: There is a loop between service OVCtrl and esmrc if stopped
insserv: loop involving service esmrc at depth 2
insserv: loop involving service OVCtrl at depth 1
insserv: Stopping esmrc depends on OVCtrl and therefore on system facility `$all’ which can not be true!
insserv: exiting now without changing boot order!
/sbin/insserv failed, exit code 1

https://unix.stackexchange.com/questions/289667/unable-to-install-anything-using-apt-get-because-of-insserv

First of all, the problem is that you are stuck at the boot sequencing.

The boot sequencing method is decided during installation or upgrades. If there are no loops in the dependencies declared by the LSB headers of all installed init.d scripts and no obsolete scripts, the system is converted to dependency based boot sequence.

We have to check for

1. Loop in dependencies: Occurs when >
• There are missing LSB tags in some scripts or error in LSB tags like missing Required-Start: or Required-Stop: tags

• Some scripts depend on other scripts which depend on the system facility $all which cannot be true. Because the scripts depending on $all is loaded last at starting. Since it loads last, nothing can depend on it. Hence, messes up the dependency based boot sequence.

2. Obsolete scripts: Occur when

• Some packages being upgraded to newer versions which may not use a script in /etc/init.d/ and the maintainer may have missed the code to remove the old script. Not our mistake.

I edited file /etc/init.d/esmrc and added a LSB header after #!/bin/sh

root@linux:~ # vi /etc/init.d/esmrc
#!/bin/sh
### BEGIN INIT INFO
# Provides: esmrc
# Required-Start:
# Should-Start: $remote_fs $network $syslog
# Required-Stop:
# Should-Stop: $remote_fs $network $syslog
# Default-Start: 2 3 5
# Default-Stop: 0 1 4 6
# Short-Description : Enterprise Security Manager
# Description : Enterprise Security Manager (ESM) allows a computer to be
# monitored for compliance with security policy.
### END INIT INFO
#
# For HP-UX version 10.xx platforms the above line must be changed to
# ‘/sbin/sh’ by esmsetup and by the tune-up pack.
#
#*************************************************************************
###############################################################################
# Enterprise Security Manager (r)
###############################################################################

Installing lsof on Solaris 11 from OpenCSW

I’m doing an offline install of CSWlsof for Solaris 11

You need 3 packages, the package itself and the dependencies
lsof
common
isaexec

Download from one of the mirrors
https://reflector.westga.edu/repos/OpenCSW/stable/sparc/5.11/

Install the packages

common

root@solaris:/tmp/lsof_solaris # pkgadd -d common-1.5\,REV\=2010.12.11-SunOS5.8-sparc-CSW.pkg

The following packages are available:
1 CSWcommon common – common files and dirs for CSW packages
(sparc) 1.5,REV=2010.12.11

Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]: 1

Processing package instance from </tmp/lsof_solaris/common-1.5,REV=2010.12.11-SunOS5.8-sparc-CSW.pkg>

common – common files and dirs for CSW packages(sparc) 1.5,REV=2010.12.11
http://www.opencsw.org/ packaged for CSW by Philip Brown
## Executing checkinstall script.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing common – common files and dirs for CSW packages as

## Installing part 1 of 1.
/opt/csw/bin/sparc
/opt/csw/doc
/opt/csw/info
/opt/csw/lib/32
/opt/csw/lib/64
/opt/csw/lib/locale
/opt/csw/lib/sparc
/opt/csw/lib/sparcv8
/opt/csw/man
/opt/csw/share/locale/locale.alias
[ verifying class ]

Installation of was successful.

isaexec

root@solaris:/tmp/lsof_solaris # pkgadd -d isaexec-0.2\,REV\=2009.03.26-SunOS5.8-all-CSW.pkg

The following packages are available:
1 CSWisaexec isaexec – sneaky wrapper around Sun isaexec
(all) 0.2,REV=2009.03.26

Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]: 1

Processing package instance from </tmp/lsof_solaris/isaexec-0.2,REV=2009.03.26-SunOS5.8-all-CSW.pkg>

isaexec – sneaky wrapper around Sun isaexec(all) 0.2,REV=2009.03.26
This interesting packaging hack is copyrighted by Philip Brown,
phil@bolthole.com
You may copy, install, and otherwise redistribute this package as you like,
without having to pay any fee, so long as it remain unchanged, and this notice
remain intact as the copyright notice.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing isaexec – sneaky wrapper around Sun isaexec as

## Installing part 1 of 1.
[ verifying class ]
## Executing postinstall script.
Copying /usr/lib/isaexec to /opt/csw/bin/isaexec

Installation of was successful.

lsof

root@solaris:/tmp/lsof_solaris # pkgadd -d lsof-4.87\,REV\=2013.03.28-SunOS5.11-sparc-CSW.pkg

The following packages are available:
1 CSWlsof lsof – List open files
(sparc) 4.87,REV=2013.03.28

Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]: 1

Processing package instance from </tmp/lsof_solaris/lsof-4.87,REV=2013.03.28-SunOS5.11-sparc-CSW.pkg>

lsof – List open files(sparc) 4.87,REV=2013.03.28
Please see /opt/csw/share/doc/lsof/license for license information.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

The following files are being installed with setuid and/or setgid
permissions:
/opt/csw/bin/sparcv8plus/lsof
/opt/csw/bin/sparcv9/lsof

Do you want to install these as setuid/setgid files [y,n,?,q] y

Installing lsof – List open files as

## Installing part 1 of 1.
/opt/csw/bin/sparcv8plus/lsof
/opt/csw/bin/sparcv9/lsof
/opt/csw/share/doc/lsof/license
/opt/csw/share/man/man8/lsof.8
[ verifying class ]
/opt/csw/bin/lsof

Installation of was successful.

Creating a link on /usr/sbin to the binary that was installed under /opt/csw

root@solaris:/usr/sbin # ln -s /opt/csw/bin/lsof lsof

Solaris Cluster resource group is online but resource failed to start

Received the following error

root@solaris_node1:/ # scswitch -z -g dbs-oracle-pbr070-rg -h sc03-app02:solaris_node1
scswitch: (C450598) On node sc03-app02:solaris_node1, resource group dbs-oracle-pbr070-rg is online but resource lsn-orapbr070-01-res failed to start

Listener didn’t start

root@solaris_node1:~ # scstat -g | grep pbr070
Resources: dbs-oracle-pbr070-rg lhn-orapbr070-01-res lsn-orapbr070-01-res dbs-orapbr070-01-res zfs-orapbr070-01-res
Group: dbs-oracle-pbr070-rg sc03-app02:solaris_node1 Online faulted No
Group: dbs-oracle-pbr070-rg sc03-app04:solaris_node2 Offline No
Resource: lhn-orapbr070-01-res sc03-app02:solaris_node1 Online Online – LogicalHostname online.
Resource: lhn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline – LogicalHostname offline.
Resource: lsn-orapbr070-01-res sc03-app02:solaris_node1 Start failed Faulted
Resource: lsn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: dbs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: dbs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: zfs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: zfs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline

Stopping the individual resource

root@solaris_node1:~ # scswitch -n -j lsn-orapbr070-01-res

root@solaris_node1:~ # scstat -g | grep pbr070
Resources: dbs-oracle-pbr070-rg lhn-orapbr070-01-res lsn-orapbr070-01-res dbs-orapbr070-01-res zfs-orapbr070-01-res
Group: dbs-oracle-pbr070-rg sc03-app02:solaris_node1 Online No
Group: dbs-oracle-pbr070-rg sc03-app04:solaris_node2 Offline No
Resource: lhn-orapbr070-01-res sc03-app02:solaris_node1 Online Online – LogicalHostname online.
Resource: lhn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline – LogicalHostname offline.
Resource: lsn-orapbr070-01-res sc03-app02:solaris_node1 Offline Offline
Resource: lsn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: dbs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: dbs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: zfs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: zfs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline

After starting it again, received the same error

root@solaris_node1:~ # scswitch -e -j lsn-orapbr070-01-res
scswitch: (C450598) On node sc03-app02:solaris_node1, resource group dbs-oracle-pbr070-rg is online but resource lsn-orapbr070-01-res failed to start

root@solaris_node1:~ # scstat -g | grep pbr070
Resources: dbs-oracle-pbr070-rg lhn-orapbr070-01-res lsn-orapbr070-01-res dbs-orapbr070-01-res zfs-orapbr070-01-res
Group: dbs-oracle-pbr070-rg sc03-app02:solaris_node1 Online faulted No
Group: dbs-oracle-pbr070-rg sc03-app04:solaris_node2 Offline No
Resource: lhn-orapbr070-01-res sc03-app02:solaris_node1 Online Online – LogicalHostname online.
Resource: lhn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline – LogicalHostname offline.
Resource: lsn-orapbr070-01-res sc03-app02:solaris_node1 Start failed Faulted
Resource: lsn-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: dbs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: dbs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline
Resource: zfs-orapbr070-01-res sc03-app02:solaris_node1 Online Online
Resource: zfs-orapbr070-01-res sc03-app04:solaris_node2 Offline Offline

Asked DBA to start the listener manually. There was another listener running on the host with the same name. DBA stopped and started the resource by cluster

HPOM – Checking fmadm faulty and there is a pool without name

Node : sc02-app03.setaoffice.com
Node Type : Sun SPARC (HTTPS)
Severity : major
OM Server Time: 2018-02-06 11:11:01
Message : UXMON: [ID 377184 daemon.error] SUNW-MSG-ID: ZFS-8000-D3, TYPE: Fault, VER: 1, SEVERITY: Major
Msg Group : OS
Application : SOL_mon
Object : FMT
Event Type :
not_found

Instance Name :
not_found

Instruction : “The Fault Management agent has identified a HW or OS related problem with the severity presented by the ticket.
The problem(s) can be viewed and managed with the command – fmdump
To get a better understanding of the problem and on how to resolve it, locate the event that generated
the ticket in the syslog file /var/adm/messages, a URL will be found (http://sun.com/msg/xxx-nnnn-yy),
follow the link using your Oracle portal account for instructions.”
EventDataSource :

Checking fmadm faulty I see a pool without a name

root@sc02-app03:~# fmadm faulty
————— ———————————— ————– ———
TIME EVENT-ID MSG-ID SEVERITY
————— ———————————— ————– ———
Feb 06 15:59:15 4577aa7a-2b00-6eb6-f139-bf2848542fb2 ZFS-8000-HC Major

Problem Status : open
Diag Engine : zfs-diagnosis / 1.0
System
Manufacturer : unknown
Name : –
Part_Number : unknown
Serial_Number : unknown

System Component
Manufacturer : Oracle-Corporation
Name : ORCL,SPARC-T5-8
Part_Number : unknown
Serial_Number : unknown
Host_ID : (null)

—————————————-
Suspect 1 of 1 :
Problem class : fault.fs.zfs.io_failure_wait
Certainty : 100%
Affects : zfs://pool=9fbf9b5d11236d0a
Status : faulted but still in service

Resource
FMRI : “zfs://pool=9fbf9b5d11236d0a”
Status : faulted but still in service

Description : ZFS pool ” has experienced currently unrecoverable I/O failures.

Response : No automated response will occur.

Impact : Read and write I/Os cannot be serviced.

Action : Use ‘fmadm faulty’ to provide a more detailed view of this event.
Make sure the affected devices are connected, then run ‘zpool
clear’. Please refer to the associated reference document at
http://support.oracle.com/msg/ZFS-8000-HC for the latest service
procedures and policies regarding this diagnosis.

To solve this problem, you need to reboot the server

How to clear fmadm faulty entries in Solaris 10

Clear fmadm log

root@sc02-app04:~ # fmadm faulty
————— ———————————— ————– ———
TIME EVENT-ID MSG-ID SEVERITY
————— ———————————— ————– ———
Feb 06 10:17:04 0ad5260a-f9e0-ef7a-c91f-efcc76b9b164 ZFS-8000-HC Major

Host : sc02-app04
Platform : ORCL,SPARC-T5-8 Chassis_id :
Product_sn :

Fault class : fault.fs.zfs.io_failure_wait
Affects : zfs://pool=prd171
faulted but still in service
Problem in : zfs://pool=prd171
faulted but still in service

Description : The ZFS pool has experienced currently unrecoverable I/O
failures.

Response : No automated response will be taken.

Impact : Read and write I/Os cannot be serviced.

Action : Use ‘fmadm faulty’ to provide a more detailed view of this event.
Make sure the affected devices are connected, then run ‘zpool
clear’. Please refer to the associated reference document at
http://sun.com/msg/ZFS-8000-HC for the latest service procedures
and policies regarding this diagnosis.

————— ———————————— ————– ———
TIME EVENT-ID MSG-ID SEVERITY
————— ———————————— ————– ———
Feb 06 10:17:03 fe2302d7-99c9-c0c8-d54b-92495cc94fc9 ZFS-8000-D3 Major

Host : sc02-app04
Platform : ORCL,SPARC-T5-8 Chassis_id :
Product_sn :

Fault class : fault.fs.zfs.device
Affects : zfs://pool=prd171/vdev=5d2cdc446e947471
faulted and taken out of service
Problem in : zfs://pool=prd171/vdev=5d2cdc446e947471
faulted and taken out of service

Description : A ZFS device failed.

Response : No automated response will occur.

Impact : Fault tolerance of the pool may be compromised.

Action : Run ‘zpool status -x’ for more information. Please refer to the
associated reference document at http://sun.com/msg/ZFS-8000-D3
for the latest service procedures and policies regarding this
diagnosis.

root@sc02-app04:~ # fmadm repair 0ad5260a-f9e0-ef7a-c91f-efcc76b9b164
fmadm: recorded repair to 0ad5260a-f9e0-ef7a-c91f-efcc76b9b164
root@sc02-app04:~ # fmadm repair fe2302d7-99c9-c0c8-d54b-92495cc94fc9
fmadm: recorded repair to fe2302d7-99c9-c0c8-d54b-92495cc94fc9

Clear ereports and resource cache

root@sc02-app04:~ # cd /var/fm/fmd
root@sc02-app04:/var/fm/fmd # rm e* f* c*/eft/* r*/*

Clearing out FMA files with no reboot needed

root@sc02-app04:~ # svcadm disable -s svc:/system/fmd:default
root@sc02-app04:~ # cd /var/fm/fmd
root@sc02-app04:/var/fm/fmd # find /var/fm/fmd -type f -exec ls {} \;
/var/fm/fmd/topo/90ab82b5-08eb-6f9f-9a9a-af2975a2808b/hc-topology.xml
/var/fm/fmd/topo/6b4eba63-3576-e155-ac3b-8f6609f0b968/hc-topology.xml
/var/fm/fmd/topo/1badc01d-82b9-6203-9440-9dd440aedaca/hc-topology.xml
/var/fm/fmd/topo/f32b13d0-63a1-4b5a-e811-bfda6bddcba1/hc-topology.xml
/var/fm/fmd/topo/c4824832-ced3-672a-ec69-a9490f94d2c0/hc-topology.xml
/var/fm/fmd/ckpt/etm/etm
/var/fm/fmd/ckpt/zfs-diagnosis/zfs-diagnosis
root@sc02-app04:/var/fm/fmd # find /var/fm/fmd -type f -exec rm {} \;
root@sc02-app04:/var/fm/fmd # svcadm enable svc:/system/fmd:default

Checking fmadm faulty

root@sc02-app04:~ # fmadm faulty
root@sc02-app04:~ #

Reset the fmd serd modules

root@sc02-app04:~ # fmadm reset cpumem-diagnosis
fmadm: failed to reset module cpumem-diagnosis: specified module is not loaded in fault manager
root@sc02-app04:~ # fmadm reset cpumem-retire
fmadm: cpumem-retire module has been reset
root@sc02-app04:~ # fmadm reset eft
fmadm: eft module has been reset
root@sc02-app04:~ # fmadm reset io-retire
fmadm: io-retire module has been reset

Source: https://saifulaziz.com/2011/12/26/how-to-clear-fmadm-log-or-fma-faults-log/

UXMON: Service /application/pkg/zones-proxy-client status is maintenance, check with svcs -xv

ATTENTION, RMC LEVEL 1 AGENT: This ticket will be automatically worked by the Automation Bus. Pls. ensure your Ticket List/View includes the “Assignee” column, monitor this ticket until the user “ABOPERATOR” is no longer assigned, BEFORE you start work on this ticket.
Node : localzone.setaoffice.com
Node Type : Sun SPARC (HTTPS)
Severity : minor
OM Server Time: 2017-09-24 22:32:27
Message : UXMON: Service /application/pkg/zones-proxy-client status is maintenance, check with svcs -xv
Msg Group : OS
Application : svcsmon
Object : svcs
Event Type :
not_found

Instance Name :
not_found

Instruction : The svcsmon has detected solaris service status

Please, for details, browse the /var/opt/OV/log/OpC/svcs_mon.log
The configuration file uses to be /var/opt/OV/conf/OpC/svcs_mon.cfg

On global zone

root@globalzone:~ # pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///net/192.168.252.12/export/IPS-repos/solaris11/repo/
solaris origin online F file:///var/scmuidrs/idr2142.1.p5p/
solaris origin online F file:///var/scmuidrs/idr2160.2.p5p/
solaris origin online F file:///var/scmuidrs/idr2193.2.p5p/
solaris origin online F file:///var/scmuidrs/idr2194.1.p5p/
solaris origin online F file:///var/scmuidrs/idr2238.1.p5p/
exa-family origin online F file:///net/192.168.252.12/export/IPS-repos/exafamily/repo/
ha-cluster origin online F file:///net/192.168.252.12/export/IPS-repos/osc4/repo/

root@globalzone:~ # svcadm disable zones-proxyd system-repository; svcadm enable system-repository zones-proxyd; sleep 30
root@globalzone:~ #

On local zone

root@localzone:~# svcs -a | grep /application/pkg/zones-proxy-client
maintenance 8:08:15 svc:/application/pkg/zones-proxy-client:default

root@localzone:~# svcadm disable svc:/application/pkg/zones-proxy-client:default

root@localzone:~# svcadm enable svc:/application/pkg/zones-proxy-client:default

root@localzone:~# svcs -a | grep /application/pkg/zones-proxy-client
online 14:09:45 svc:/application/pkg/zones-proxy-client:default

Oracle SMF Oracle Configuration Manager (OCM) svc:/system/ocm:default

Listing status of ocm service

root@solaris:~ # svcs svc:/system/ocm:default
STATE STIME FMRI
disabled Jul_17 svc:/system/ocm:default

Listing SMF

root@solaris:~ # svcs -l svc:/system/ocm:default
fmri svc:/system/ocm:default
name Oracle Configuration Manager (OCM)
enabled false
state disabled
next_state none
state_time Mon Jul 17 04:48:06 2017
logfile /var/svc/log/system-ocm:default.log
restarter svc:/system/svc/restarter:default
contract_id
manifest /etc/svc/profile/generic.xml
manifest /lib/svc/manifest/system/ocm.xml
dependency require_all/none svc:/milestone/multi-user-server:default (online)
dependency require_all/error svc:/milestone/network:default (online)
dependency require_all/none svc:/system/cryptosvc (online)

Oracle Configuration Manager is used to collect client configuration information and upload it to the Oracle repository
When enabling OCM, it goes to maintenance mode

root@solaris:~ # svcadm enable svc:/system/ocm:default

root@solaris:~ # svcs -v svc:/system/ocm:default
STATE NSTATE STIME CTID FMRI
maintenance – 10:58:25 1081435 svc:/system/ocm:default

There are two errors in this installation. There is no proxy setup and it is missing user ocm

root@solaris:~ # cat /var/svc/log/system-ocm:default.log
[ Aug 28 10:58:09 Enabled. ]
[ Aug 28 10:58:09 Executing start method (“/lib/svc/method/svc-ocm start”). ]
/lib/svc/method/svc-ocm: starting…
OCM not registered
Collector running in connected mode
Begin anonymous registration…
Starting response file generation…
Can not create response file: Unknown Host: ccr.oracle.com: unknown error
Failed to create response file…
Failed to generate anonymous response file…
Unable to contact ccr.oracle.com. Please set your system proxy
in order to allow this system to contact Oracle for better
serviceability. See the configCCR(1M) manual page on home to set
the proxy server for Oracle Configuration Manager.

svc:/system/ocm:default has been temporarily disabled.

[ Aug 28 10:58:20 Method “start” exited with status 0. ]
[ Aug 28 10:58:20 Stopping because service disabled. ]
[ Aug 28 10:58:20 Executing stop method (“/lib/svc/method/svc-ocm stop”). ]
Stopping scheduler…
su: Unknown id: ocm
[ Aug 28 10:58:25 Method “stop” exited with status 95. ]