Friday, October 5, 2018

Ops Center Instalation and Configuration

OpsCenter : 192.168.10.80
physical host: 192.168.10.85
physical host: 192.168.10.90

Ops_Center_instalation_and_Configuration

Download the software from oracle.com
Follow the installation document
https://docs.oracle.com/cd/E27363_01/doc.121/e27333/toc.htm#OPCHK111
https://www.oracle.com/technetwork/oem/host-server-mgmt/opscenterhareference-2030037.pdf


root@vcloud-mg-v01:/var/tmp/downloads# cd /var/opt
root@vcloud-mg-v01:/var/opt# ls
BART  sun
root@vcloud-mg-v01:/var/opt# cd sun
root@vcloud-mg-v01:/var/opt/sun# ls
root@vcloud-mg-v01:/var/opt/sun# ls -ltr
total 0
root@vcloud-mg-v01:/var/opt/sun# ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 10
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 29995
virtual memory          (kbytes, -v) unlimited
root@vcloud-mg-v01:/var/opt/sun# ulimit -Sn
1024
root@vcloud-mg-v01:/var/opt/sun# ulimit -Hn
65536
root@vcloud-mg-v01:/var/tmp# mkdir Software
root@vcloud-mg-v01:/var/tmp# cd Software/
root@vcloud-mg-v01:/var/tmp/Software# unzip ../OCDoctor-latest.zip
Archive:  ../OCDoctor-latest.zip
   creating: OCDoctor/
   creating: OCDoctor/proxy/

root@vcloud-mg-v01:/var/tmp#

root@vcloud-mg-v01:/var/tmp/Software/OCDoctor#  ./OCDoctor.sh --ec-prereq
Ops Center Doctor 4.68  [SunOS11.3.34.4]
========== Checking 12c Enterprise Controller Requirements ... ====================
OK: Size of Main Memory: 24576 MB
OK: ZFS ARC cache is already limited
OK: Size of swap space is good for local or remote database installation:  16383 MB
OK: /tmp size is not limited in /etc/vfstab
OK: Found enough disk space on /var/opt/sun (244G)
OK: Found enough disk space on /opt (49G)
OK: Found enough disk space on /tmp (35G)
OK: no running Cacao instance found
OK: None or unique Cacao SMF instance found
OK: All required packages are installed
OK: No leftover package from OS Provisioning found
OK: Connected to the Solaris repository successfully (http://192.168.10.200/)
OK: Found only one pkg/server instance
WARNING: Did not find /etc/netboot folder (Bug 15781475).
         Run 'mkdir /etc/netboot' prior to installing the EC to avoid issues with Linux OS provisioning from this S11 colocated proxy.
         You can ignore this message if you are not planning on using the colocated proxy for Linux OS provisioning.

OK: Solaris 11 Update 3 is installed
OK: Not Solaris 11.3.14|15|16
OK: No known conflicting packages exist
OK: Patches for extendedFILE library are installed
OK: /etc/profile has the umask of 022
OK: /etc/profile.secld-100218:122302 has the umask of 022
OK: Verified correct umask
OK: Network ports needed by Management node and Proxy are not in use
OK: All required SMF services are online
OK: Checked for ssh requirements
OK: No SUNWjass installed
OK: Checked for user & group 'webservd'
OK: Checked for output messages from /etc/profile
OK: No partially installed packages
OK: prtdiag doesn't hang
OK: This is not a T3 machine (if it was then a workaround may be needed)
OK: No Solaris 11 leftover packages found
OK: /usr/local is writeable.
OK: Locales are OK ("en_US.UTF-8")
OK: No '*' in /etc/auto_home
OK: Directory /guests does not exist.
OK: Hostname vcloud-mg-v01 doesn't resolve to 127.0.0.1
OK: Hostname vcloud-mg-v01 resolves to 192.168.10.80 and back properly
OK: localhost resolves to 127.0.0.1
OK: DNS does not unexpectedly resolve hostname '_default_'
OK: No development build of cacao is installed
WARNING: The service filesystem/autofs is not online.
         The installation may fail trying to add the 'oracleoc' user.
         To enable it, run 'svcadm enable autofs'.

OK: package hmp-tools@2.2.1 is not installed
OK: package hmp-libs@2.2.1 is not installed
OK: ulimit -Sn is 1024
OK: ulimit -Hn is 65536
OK: No leftover /var/js directory from a previous installation found.
OK: No leftover SMF services from a previous OpsCenter EC, PC or Agent installation found.
OK: Found 2 DB installation files for OpsCenter 12.3.1 or higher in /var/tmp/downloads

        A co-located Oracle Database will get installed as part of the overall OpsCenter installation.
        To improve DB performance it is recommended to use dedicated zpools for DB Datafiles and redo logs.
        The OCDoctor toolbox contains the script '.../OCDoctor/toolbox/colo_db_zfs_layout' to assist
        you in creating dedicated filesystems with the recommended zfs filesystem parameter prior to
        the OpsCenter installation.

        Please, review the document '.../OCDoctor/howto/howto_improve_DB_performance_using_zfs_layout.txt'
        for more details.



root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# svcadm enable autofs
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# ls -l howto/howto_improve_DB_performance_using_zfs_layout.txt
-rwxr-xr-x   1 root     root        3637 May 29  2017 howto/howto_improve_DB_performance_using_zfs_layout.txt
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# rmdir /etc/netboot


#./colo_db_zfs_layout
Usage: colo_db_zfs_layout [-v|--pre-install|--post-install]
                -v              # prints out script version number
                --pre-install   # Prepares zfs filesystems before EC installation to optimize
                                  database performance and configures the database to use the
                                  new layout if required
                --post-install  # Creates zfs filesystems after EC installation and
                                  relocates/reconfigures the database files to optimize
                                  database performance

====================================================================
 --pre-install    *** Detailed Description ***
The user will be prompted for zpool names for the desired location of key Ops Center components.

This script will layout separate zfs filesystems for /var/opt/sun/xvm (base Ops Center directories) and
/var/opt/sun/xvm/oracle/oradata/OCDB (database files and redo logs) directories on the zpool specified
[Ops Center pool]. In addition, it will tune the zfs filesystem under the database toan 8K blocksize to
match the Oracle database and improve database performance.

If a different zpool is specified for the [REDO log pool], a separate zfs filesystem
/var/opt/sun/xvm/oracle/oradata/OCDB/REDO will be created on this zpool and tuned toan 8K blocksize. It will
also create a script and sql file in /var/tmp that will have to be executed after the completion of the Ops
Center install, to move the redo logs into the new REDO filesystem. Placing the database redo logs on a
separate zpool (separate disk spindle) will spread thedatabase IOPS load across more disk spindles further

 --post-install   *** Detailed Description ***
IMPORTANT: This functionality is not implemented yet.
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor#

================================

You have new mail.
root@vcloud-mg-v01:~# cd /var/tmp
root@vcloud-mg-v01:/var/tmp# ls
bart
bart11022016.tar
coreutils-8.13
coreutils-8.13.tar
downloads
enterprise-controller.Solaris.i386.12.3.3.1801.tar
enterprise-controller.Solaris.i386.12.3.3.1801.tar.zip
errlog-secld-100218:122302
gdate
jdk-8u162-solaris-x64.tar
OC
OCDoctor-latest.zip
secld-solaris11
secld-solaris11-new.tar
Software
standalone-1002.tar.gz
VmTools
root@vcloud-mg-v01:/var/tmp# ls -ltr
total 18914986
drwxr-xr-x   2 root     root           7 Nov  2  2016 bart
-rw-------   1 kancho  staff     253440 Nov  2  2016 bart11022016.tar
drwxr-xr-x   2 root     root          14 Jan  4  2017 secld-solaris11
-rw-r--r--   1 root     root     4755434496 Sep 22  2017 enterprise-controller.S                                                                                                                                                             olaris.i386.12.3.3.1801.tar
drwxr-xr-x   3 root     root           5 Oct  1 14:50 VmTools
-rw-r--r--   1 root     root     1883451 Oct  1 16:10 OCDoctor-latest.zip
-rw-r--r--   1 root     root     263990272 Oct  1 16:56 jdk-8u162-solaris-x64.ta                                                                                                                                                             r
drwxrwxrwx   2 root     root           4 Oct  2 00:27 downloads
-rw-r--r--   1 root     root     4104073727 Oct  2 02:30 enterprise-controller.S                                                                                                                                                             olaris.i386.12.3.3.1801.tar.zip
-rw-r--r--   1 root     root      129536 Oct  2 12:20 secld-solaris11-new.tar
-rw-r--r--   1 root     root           0 Oct  2 12:23 errlog-secld-100218:122302
-rw-------   1 kancho  staff    45608960 Oct  2 13:28 coreutils-8.13.tar
drwxr-xr-x  12 root     root          48 Oct  2 13:32 coreutils-8.13
-rwx------   1 kancho  staff     184548 Oct  2 13:52 gdate
drwxr-xr-x   4 root     root           4 Oct  2 15:12 Software
drwxr-xr-x   4 root     root           4 Oct  2 16:43 OC
-rw-------   1 root     root     505798159 Oct  2 20:12 standalone-1002.tar.gz
root@vcloud-mg-v01:/var/tmp# cd Software
root@vcloud-mg-v01:/var/tmp/Software# ls
OCDoctor           xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/Software# cd xvmoc_full_bundle/
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# ls
install                   OpsCenterUpgrades.README  xvmoc_proxy_update
Linux_i686                SunOS_i386                xvmoc_update_bundle
ocasmp                    SunOS_sparc
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# w
  9:37am  up 20:57,  1 user,  load average: 0.00, 0.00, 0.00
User     tty           login@  idle   JCPU   PCPU  what
kaledai  pts/1         9:35am                      w
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# w
  9:37am  up 20:57,  1 user,  load average: 0.00, 0.00, 0.00
User     tty           login@  idle   JCPU   PCPU  what
kaledai  pts/1         9:35am                      w
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# sync;sync;sync
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# beadm list
BE                    Flags Mountpoint Space  Policy Created
--                    ----- ---------- -----  ------ -------
pBE_07202018          NR    /          52.40G static 2018-10-01 12:47
pBE_07202018-backup-1 -     -          63.51M static 2018-10-02 12:24
pBE_10022018_preSTIG  -     -          63.42M static 2018-10-02 12:20
solaris               -     -          15.86M static 2018-10-01 12:20
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# reboot

Password:
kaledai@vcloud-mg-v01:~$ sudo su -

root@vcloud-mg-v01:~# df -h
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/pBE_07202018
                        98G   5.3G        40G    12%    /
/devices                 0K     0K         0K     0%    /devices
/dev                     0K     0K         0K     0%    /dev
ctfs                     0K     0K         0K     0%    /system/contract
proc                     0K     0K         0K     0%    /proc
mnttab                   0K     0K         0K     0%    /etc/mnttab
swap                    38G   804K        38G     1%    /system/volatile
objfs                    0K     0K         0K     0%    /system/object
sharefs                  0K     0K         0K     0%    /etc/dfs/sharetab
rpool/ROOT/pBE_07202018/var
                        98G    21G        40G    35%    /var
/usr/lib/libc/libc_hwcap1.so.1
                        45G   5.3G        40G    12%    /lib/libc.so.1
fd                       0K     0K         0K     0%    /dev/fd
swap                    38G     4K        38G     1%    /tmp
rpool/VARSHARE          98G   2.6M        40G     1%    /var/share
rpool/VARSHARE/zones    98G    31K        40G     1%    /system/zones
rpool/export            98G    32K        40G     1%    /export
rpool/export/home       98G    33K        40G     1%    /export/home
rpool/export/home/kancho
                        98G    38K        40G     1%    /export/home/kancho
rpool/export/home/kaledai
                        98G    34K        40G     1%    /export/home/kaledai
rpool                   98G   3.5M        40G     1%    /rpool
sopcmgv01-pool/FS_dataxvm
                       244G   483M       244G     1%    /var/opt/sun
rpool/VAR-AUDIT        3.0G   2.8M       3.0G     1%    /var/share/audit
rpool/VARSHARE/pkg      98G    32K        40G     1%    /var/share/pkg
rpool/VARSHARE/pkg/repositories
                        98G    31K        40G     1%    /var/share/pkg/repositories
root@vcloud-mg-v01:~# cd /var/tmp/Software/
root@vcloud-mg-v01:/var/tmp/Software# ls
OCDoctor           xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/Software# cd xvmoc_full_bundle/
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# ls
install                   ocasmp                    SunOS_i386                xvmoc_proxy_update
Linux_i686                OpsCenterUpgrades.README  SunOS_sparc               xvmoc_update_bundle
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# pwd
/var/tmp/Software/xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# ls -ltr
total 38
drwxr-xr-x   2 950108   staff          3 Sep 22  2017 ocasmp
drwxr-xr-x   3 950108   staff          3 Sep 22  2017 Linux_i686
drwxr-xr-x   3 950108   staff          3 Sep 22  2017 SunOS_sparc
drwxr-xr-x   3 950108   staff          3 Sep 22  2017 SunOS_i386
drwxr-xr-x   6 950108   staff         10 Sep 22  2017 xvmoc_update_bundle
drwxr-xr-x   6 950108   staff         10 Sep 22  2017 xvmoc_proxy_update
-r-xr-xr-x   1 950108   staff       9045 Sep 22  2017 install
lrwxrwxrwx   1 950108   staff         44 Oct  2 15:13 OpsCenterUpgrades.README -> xvmoc_update_bundle/OpsCenterUpgrade                                                                                                                       s.README
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# more OpsCenterUpgrades.README

root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# pwd
/var/tmp/Software/xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# ls
install                   Linux_i686                ocasmp                    OpsCenterUpgrades.README  SunOS_i386                SunOS_sparc               xvmoc_proxy_update        xvmoc_update_bundle
root@vcloud-mg-v01:/var/tmp/Software/xvmoc_full_bundle# cd ../OCDoctor/
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# ls
agent                    cli                      functions                Manifest.txt             post-upgrade.sh          product_metadata_update  tuning                   whatisblobid
AUTHORS                  Debug.nfo                GDD                      OCDoctor.sh              pre-upgrade.sh           proxy                    tuning_proxy
CHANGELOG                ec                       howto                    pis                      prereq                   toolbox                  version
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# ./OCDoctor.sh --ec-prereq

root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# mkdir /etc/netboot
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# ls
agent                    cli                      functions                Manifest.txt             post-upgrade.sh          product_metadata_update  tuning                   whatisblobid
AUTHORS                  Debug.nfo                GDD                      OCDoctor.sh              pre-upgrade.sh           proxy                    tuning_proxy
CHANGELOG                ec                       howto                    pis                      prereq                   toolbox                  version

root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# ./OCDoctor.sh --ec-prereq

root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# groupadd -g 102 dba
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# groupadd -g 501 oinstall
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor#
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor#
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# more /etc/user_attr
#
# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d".  They should not be copied to this file.
#
# Only local changes should be stored in this file.
#
root@vcloud-mg-v01:/var/tmp/Software/OCDoctor# cd ../../OC
root@vcloud-mg-v01:/var/tmp/OC# ls
OCDoctor           xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/OC# cd xvmoc_full_bundle/
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# pwd
/var/tmp/OC/xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# ls
install                   Linux_i686                ocasmp                    OpsCenterUpgrades.README  SunOS_i386                SunOS_sparc               xvmoc_proxy_update        xvmoc_update_bundle
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# ./install


Failed Step:  Check for installation prerequisites.
The following is a portion of the installer
log which may indicate the cause of the error.
If this does not indicate the cause of the
error, you will need to view the full log
file. More information on how to do that is
available below.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

max_nprocs value found in or under /etc/system:    50000
This vers, 0.175.3.34.0.4.0, is greater than or equal to 0.175.2.0.0.42.0
/usr/bin/pkgrepo list -s http://192.168.10.200/  pkg://solaris/entire@0.5.11,5.11-0.175.3.34.0.4.0:20180628T213223Z
The configured solaris publisher supports this version of Oracle Solaris 11
Testing Shell Limits
localhost is alive

error: Need to update/set /etc/system. Add: 'set zfs:zfs_arc_max=9771460608' to
        /etc/system. The system will require a reboot after making this change!

Number of precheck error messages: 1, number of warnings: 0

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Please fix the problem and then try this step again.
For a full log of the failed install see the file: /var/tmp/opscenter/installer.log.4008.

t. Try this step again (correct the failure before proceeding)
x. Exit
Enter selection: (t/x) x
Installation aborted by user.
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# vi /etc/system
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# more /etc/system

* set zfs:zfs_arc_max=2147483648
* set zfs:zfs_arc_min=67108864
set zfs:zfs_arc_max=9771460608
set zfs:zfs_arc_min=67108864
* Setting max file descriptors
set rlim_fd_max=65536
set rlim_fd_cur=1024
* To prevent buffer overflow
* Note: These settings are obselete in Solaris 11.3
* set noexec_user_stack = 1
* set noexec_user_stack_log = 1
* Enable BSM Auditing
set c2audit:audit_load = 1
* Monitor for unauthorized connections of mobile devices
exclude: scsa2usb
* OEM 12c OPS center Embedded DB Kernel Parameters
set pidmax=60000
set maxusers=4096
set maxuprc=50000
set max_nprocs=50000
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle#  sync;sync;sync
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# reboot
Using username "kaledai".

kaledai@vcloud-mg-v01:~$ sudo su -

root@vcloud-mg-v01:~# passwd root
New Password:
Re-enter new Password:
passwd: password successfully changed for root
root@vcloud-mg-v01:~# vi /etc/shadow
root@vcloud-mg-v01:~# cd /var/tmp/OC
root@vcloud-mg-v01:/var/tmp/OC# cd xvmoc_full_bundle/
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# ls
install                   ocasmp                    SunOS_i386                xvmoc_proxy_update
Linux_i686                OpsCenterUpgrades.README  SunOS_sparc               xvmoc_update_bundle
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# ./install

Oracle Configuration Manager already configured.

    Ops Center Enterprise Controller Installer
    (version 12.3.3.1801 on SunOS)

 1. Check for installation prerequisites.                                                                                           [Partially Run]
 2. Configure file systems.                                                                                                         [Not Completed]
 3. Install prerequisite packages.                                                                                                  [Not Completed]
 4. Install Agent components.                                                                                                       [Not Completed]
 5. Create Deployable Proxy Bundles.                                                                                                [Not Completed]
 6. Install application packages.                                                                                                   [Not Completed]
 7. Run postinstall tasks.                                                                                                          [Not Completed]
 8. Install Expect.                                                                                                                 [Not Completed]
 9. Install IPMI tool.                                                                                                              [Not Completed]
10. Set database credentials.                                                                                                       [Not Completed]
11. Install and Configure Oracle Database.                                                                                          [Not Completed]
12. Seed Ops Center Database Schema                                                                                                 [Not Completed]
13. Install Service container components.                                                                                           [Not Completed]
14. Install Core Channel components.                                                                                                [Not Completed]
15. Install Proxy Core components.                                                                                                  [Not Completed]
16. Set Proxy database credentials.                                                                                                 [Not Completed]
17. Install Enterprise Controller components.                                                                                       [Not Completed]
18. Install Update Connection - Enterprise.                                                                                         [Not Completed]
19. Install Ops Center BUI components.                                                                                              [Not Completed]
20. Install OS provisioning components.                                                                                             [Not Completed]
21. Initialize and start services.                                                                                                  [Not Completed]

Executing current step:  Check for installation prerequisites...
Completed current step:  Check for installation prerequisites.


 1. Check for installation prerequisites.                                                                                                                                                                                        [Completed]
 2. Configure file systems.                                                                                                                                                                                                      [Completed]
 3. Install prerequisite packages.                                                                                                                                                                                               [Completed]
 4. Install Agent components.                                                                                                                                                                                                    [Completed]
 5. Create Deployable Proxy Bundles.                                                                                                                                                                                             [Completed]
 6. Install application packages.                                                                                                                                                                                                [Completed]
 7. Run postinstall tasks.                                                                                                                                                                                                       [Completed]
 8. Install Expect.                                                                                                                                                                                                              [Completed]
 9. Install IPMI tool.                                                                                                                                                                                                           [Completed]
10. Set database credentials.                                                                                                                                                                                                    [Completed]
11. Install and Configure Oracle Database.                                                                                                                                                                                       [Completed]
12. Seed Ops Center Database Schema                                                                                                                                                                                              [Completed]
13. Install Service container components.                                                                                                                                                                                        [Completed]
14. Install Core Channel components.                                                                                                                                                                                             [Completed]
15. Install Proxy Core components.                                                                                                                                                                                               [Completed]
16. Set Proxy database credentials.                                                                                                                                                                                              [Completed]
17. Install Enterprise Controller components.                                                                                                                                                                                    [Completed]
18. Install Update Connection - Enterprise.                                                                                                                                                                                      [Completed]
19. Install Ops Center BUI components.                                                                                                                                                                                           [Completed]
20. Install OS provisioning components.                                                                                                                                                                                          [Completed]
21. Initialize and start services.                                                                                                                                                                                               [Completed]


Ops Center Enterprise Controller installation is complete.

Please point your browser to:

        http://vcloud-mg-v01

to begin using Ops Center Enterprise Controller.

You have new mail in /var/mail/root
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle#
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# /opt/SUNWxvmoc/bin/ecadm status
online
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# pwd
/var/tmp/OC/xvmoc_full_bundle
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# ls
install                   Linux_i686                ocasmp                    OpsCenterUpgrades.README  SunOS_i386                SunOS_sparc               xvmoc_proxy_update        xvmoc_update_bundle
root@vcloud-mg-v01:/var/tmp/OC/xvmoc_full_bundle# cd /var/opt/
root@vcloud-mg-v01:/var/opt# ls
BART    oracle  sun
root@vcloud-mg-v01:/var/opt# cd sun/
root@vcloud-mg-v01:/var/opt/sun# ls
harvester  xvm
root@vcloud-mg-v01:/var/opt/sun# ls -l
total 8
drwxr-xr-x   2 root     root           3 Oct  2 20:48 harvester
drwxr-xr-x  28 root     sys           54 Oct  3 10:54 xvm
root@vcloud-mg-v01:/var/opt/sun# cd harvester/
root@vcloud-mg-v01:/var/opt/sun/harvester# ls
standalone-1002.tar.gz
root@vcloud-mg-v01:/var/opt/sun/harvester#

==================================================

Installing Agent to add host.

We will be adding control domain to opsCenter

Deploy the Controller Agent on both physical hosts.

1.  From Ops Center Server (192.168.10.80) under /var/opt/sun/xvm/images/agent folder, upload the agent IPS package to .75 and .76
On 192.168.10.80   /var/opt/sun/xvm/images/agent/OpsCenterAgent.SolarisIPS.all.12.3.3.1801.zip

root@sinf-mg-p12:/var/tmp/OC# unzip ../OpsCenterAgent.SolarisIPS.all.12.3.3.1801.zip

2.  Edit the install script.  On Line 744, remove the –G ‘*’ 
Edit the install script, as following.  Change Line 744 and remove the -G '*'
   744          # exec_echo_gettext "$PKG set-publisher -G '*' -g ${PROXY_URI} $SOLARIS_PUBLISHER"
   745            exec_echo_gettext "$PKG set-publisher -g ${PROXY_URI} $SOLARIS_PUBLISHER"

3.  Run  the install script with the –p  and –l  options.  The –p takes the IP of the OpsCenter server.

Note set publisher to 64
# pkg set-publisher -g http://192.168.10.200 solaris
# pkg publisher
# pkg search cacao
# pkg list | grep -i cacao-incorporation

root@sinf-mg-p12:/var/tmp/OC/OpsCenterAgent# ./install -p 192.168.10.80 -l
Thu Oct  4 16:09:47 EDT 2018

command: ./install -p 192.168.10.80 -l
Agent installer version: 12.3.3.1801
This is Solaris 11.2 or greater
/usr/bin/pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
cacao                       origin   online F https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS/
mp-re          (non-sticky) origin   online F https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS/
opscenter                   origin   online F https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS/
solaris                     origin   online F http://192.168.10.200/
/usr/bin/pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire (solaris)                                  0.5.11-0.175.3.34.0.4.0    i--
entire (solaris)                                  0.5.11-0.175.3.31.0.6.0    ---
entire (solaris)                                  0.5.11-0.175.3.28.0.4.0    ---
entire (solaris)                                  0.5.11-0.175.3.25.0.3.0    ---
entire (solaris)                                  0.5.11-0.175.3.19.0.5.0    ---
entire (solaris)                                  0.5.11-0.175.3.14.0.6.0    ---
entire (solaris)                                  0.5.11-0.175.3.1.0.5.0     ---
Checking to see if this is an upgrade to an existing Agent Controller
No existing Agent Controller found.
Installing the IPS Agent Controller
Setting PKG_CONCURRENCY to 10

Certificate:
-----------------------------------------------------------------------
x509 -noout -in /etc/certs/CA/192.168.10.80.OpsCenter_cert.pem -issuer -subject -dates
-----------------------------------------------------------------------

192.168.10.80   oracle-oem-oc-mgmt-vcloud-mg-v01 vcloud-mg-v01
192.168.10.80 oracle-oem-oc-mgmt-vcloud-mg-v01
oracle-oem-oc-mgmt-vcloud-mg-v01
No need to update /etc/inet/hosts : PROXY CERT_CN entry already present
Using Proxy URI https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS
Ops Center publisher URI: https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS
/usr/bin/pkg set-publisher -g https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS solaris
Startup: Refreshing catalog 'solaris' ... Done
Startup: Caching catalogs ... Done
/usr/bin/pkg set-publisher -G '*' -g https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS  cacao
/usr/bin/pkg set-publisher -G '*' -g https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS --non-sticky mp-re
/usr/bin/pkg set-publisher -G '*' -g https://oracle-oem-oc-mgmt-vcloud-mg-v01:8002/IPS  opscenter
/usr/bin/pkg set-publisher -P solaris
/usr/bin/pkg refresh
Refreshing catalog 'cacao' ... Done
Refreshing catalog 'solaris' ... Done
Refreshing catalog 'opscenter' ... Done
Refreshing catalog 'mp-re' ... Done
/usr/bin/pkg set-mediator --deny-new-be --no-backup-be -V 1.8 java
Planning: Evaluating mediator changes ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 21.15 seconds
No changes required.
/usr/bin/pkg list -af /library/cacao
NAME (PUBLISHER)                                  VERSION                    IFO
library/cacao (cacao)                             2.3.1.1-0.175.0.9.0.4.0    ---
library/cacao                                     2.4.7.0-0.175.3.8.0.3.0    ---
library/cacao                                     2.4.3.0-0.175.3.0.0.24.0   ---
/usr/bin/pkg list -af consolidation/cacao/cacao-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/cacao/cacao-incorporation (cacao)   0.5.11-0.175.0.9.0.4.0     ---
consolidation/cacao/cacao-incorporation           0.5.11-0.175.3.8.0.3.0     i--
consolidation/cacao/cacao-incorporation           0.5.11-0.175.3.0.0.24.0    ---
Current facet.version-lock.consolidation/cacao/cacao-incorporation setting is True
/usr/bin/pkg install --accept --deny-new-be --no-backup-be //solaris/consolidation/cacao/cacao-incorporation@0.5.11-0.175.3.8.0.3.0 //solaris/library/cacao system/xopen/xcu4
Startup: Refreshing catalog 'cacao' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'opscenter' ... Done
Startup: Refreshing catalog 'mp-re' ... Done
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
Planning: Fetching manifests: 0/2  0% complete
Planning: Fetching manifests: 2/2  100% complete
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 22.89 seconds
           Packages to install:  2
       Create boot environment: No
Create backup boot environment: No

Download:  0/91 items  0.0/2.1MB  0% complete
Download: Completed 2.11 MB in 1.30 seconds (1.6M/s)
Actions:   1/150 actions (Installing new actions)
Actions: Completed 150 actions in 0.10 seconds.
Done
Done
Done
Done
Done
Installed cacao:
/usr/bin/pkg list /library/cacao
NAME (PUBLISHER)                                  VERSION                    IFO
library/cacao                                     2.4.7.0-0.175.3.8.0.3.0    i--
/usr/bin/pkg list consolidation/cacao/cacao-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/cacao/cacao-incorporation           0.5.11-0.175.3.8.0.3.0     i--
No Ops Center zones installed
/usr/bin/pkg install --accept --deny-new-be --no-backup-be //cacao/library/cacao/cacao-crews /management/em-sysmgmt-ld-vc/server-drvr@12.3.3.1801 /management/em-sysmgmt-oc/opscenter-ac-incorporation@12.3.3.1801
Startup: Refreshing catalog 'cacao' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'opscenter' ... Done
Startup: Refreshing catalog 'mp-re' ... Done
Planning: Solver setup ...
Planning: Finding local manifests ... Done
Planning: Fetching manifests: 0/2  0% complete
Planning: Fetching manifests: 2/2  100% complete
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 22.89 seconds
           Packages to install:  2
       Create boot environment: No
Create backup boot environment: No

Download:  0/91 items  0.0/2.1MB  0% complete
Download: Completed 2.11 MB in 1.30 seconds (1.6M/s)
Actions:   1/150 actions (Installing new actions)
Actions: Completed 150 actions in 0.10 seconds.
Done
Done
Done
Done
Done
Installed cacao:
/usr/bin/pkg list /library/cacao
NAME (PUBLISHER)                                  VERSION                    IFO
library/cacao                                     2.4.7.0-0.175.3.8.0.3.0    i--
/usr/bin/pkg list consolidation/cacao/cacao-incorporation
NAME (PUBLISHER)                                  VERSION                    IFO
consolidation/cacao/cacao-incorporation           0.5.11-0.175.3.8.0.3.0     i--
No Ops Center zones installed
/usr/bin/pkg install --accept --deny-new-be --no-backup-be //cacao/library/cacao/cacao-crews /management/em-sysmgmt-ld-vc/server-drvr@12.3.3.1801 /management/em-sysmgmt-oc/opscenter-ac-incorporation@12.3.3.1801
Startup: Refreshing catalog 'cacao' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'opscenter' ... Done
Startup: Refreshing catalog 'mp-re' ... Done
Planning: Solver setup ... Done
Planning: Running solver ... Done
Planning: Finding local manifests ... Done
Planning: Fetching manifests:  0/28  0% complete
Planning: Fetching manifests: 28/28  100% complete
Planning: Package planning ... Done
Planning: Merging actions ... Done
Planning: Checking for conflicting actions ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 26.53 seconds
           Packages to install: 28
       Create boot environment: No
Create backup boot environment: No

Download:    0/1070 items    0.0/119.1MB  0% complete
Download:  881/1070 items   92.4/119.1MB  77% complete (18.6M/s)
Download: Completed 119.15 MB in 6.39 seconds (18.6M/s)
Actions:    1/1641 actions (Installing new actions)
Actions: Completed 1641 actions in 1.68 seconds.
Done
Done
Done
/usr/bin/pkg install --accept --deny-new-be --no-backup-be /system/management/ipmitool
Startup: Refreshing catalog 'cacao' ... Done
Startup: Refreshing catalog 'solaris' ... Done
Startup: Refreshing catalog 'opscenter' ... Done
Startup: Refreshing catalog 'mp-re' ... Done
Planning: Solver setup ...
Planning: Running solver ... Done
Planning: Consolidating action changes ... Done
Planning: Evaluating mediators ... Done
Planning: Planning completed in 19.21 seconds
No updates necessary for this image.
/usr/bin/pkg set-publisher -P solaris
Executing post installation configuration
Generating new system keys ...

Configuring as LDom Virtualization Controller on 5.11 sparc.
Uncomment xmpp.ciphersuite.excluded property in /opt/sun/n1gc/etc/ldoms.properties
Agent Controller 12.3.3.1801 Installation complete.

To uninstall Agent Controller execute /var/scn/install/uninstall
End Time: Thu Oct  4 16:12:47 EDT 2018.

4. Run agentadm command to attached it to the Proxy controller’s IP.  The root password of 192.168.10.80 is stored in /var/tmp/OC/mypasswd.

root@sinf-mg-p12:/opt/SUNWxvmoc/bin# ./agentadm configure -u root -p /var/tmp/OC/mypasswd -x 192.168.10.80
agentadm: Version 12.3.3.1801 launched with args: configure -u root -p /var/tmp/OC/mypasswd -x 192.168.10.80

Validating step : workarounds configure  -u root -p /var/tmp/OC/mypasswd -x 192.168.10.80
Validating step : db configure  -u root -p /var/tmp/OC/mypasswd -x 192.168.10.80
/var/run/cacao/instances/scn-agent/run/*.pid: No such file or directory
Validating step : sc_console configure  -u root -p /var/tmp/OC/mypasswd -x 192.168.10.80
verified sc_console command is OK
Validating step : setup_hmp configure    -u root -p /var/tmp/OC/mypasswd
Validating step : scn_agent configure
scn_agent Common Agent Container environment is OK
Validating step : uce_agent configure
Validating step : config_sysconfig configure
Validating step : final configure
End of validation

executing step : workarounds
workaround  configuration done.

executing step : db
/var/run/cacao/instances/scn-agent/run/*.pid: No such file or directory
configuring db
INFO: hd_domain_vc_agent_db.sh password not decrypted.
Java DB creation and initialization for Domain Model successful
Configuring jobs db
Java DB creation and initialization for job manager successful
INFO: db - Password is not encrypted
DB version successfully set to 12.3.3.1801

executing step : sc_console
verified sc_console command is OK
Configuring sc_console
checking existing sc_console connections
doing sc-console registration

Certificate:
Serial Number:          1727265594
Version:                3
Issuer:                 CN=vcloud-mg-v01_scn-proxy_ca
Subject:                CN=vcloud-mg-v01_scn-proxy_agent
Not valid before:       Mon Jan 03 10:05:06 EST 1972
Not valid after:        Sun Oct 03 11:05:06 EDT 2038

Certificate:
Serial Number:          1567264078
Version:                3
Issuer:                 CN=vcloud-mg-v01_scn-proxy_ca
Subject:                CN=vcloud-mg-v01_scn-proxy_ca
Not valid before:       Mon Jan 03 10:05:05 EST 1972
Not valid after:        Sun Oct 03 11:05:05 EDT 2038

Accept server's certificate? (y|n)
y
Connection registered successfully.
sc-console registration done

executing step : setup_hmp
hwmgmtd service does not exist on this system

executing step : scn_agent
scn_agent Common Agent Container environment is OK
Configuring for a Virtualization Controller
Checking if the cacao scn-agent instance exists
creating cacao scn-agent instance
getting parameter value from cacao instance for micro-agent
getting parameter value from cacao instance for jmxmp-connector-port
setting the cacao scn-agent instance parameter java-home to /usr/jdk/jdk1.8.0_172
setting the cacao scn-agent instance parameter jdmk-home to /usr/lib/cacao/ext/crews/lib
jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \
/usr/jdk/jdk1.8.0_172/jre/lib/security/java.security is currently disabling MD5 algorithms
No existing //etc/cacao//instances/scn-agent/security/jsse/keystore, will create cacao instance testinst
creating cacao testinst instance
MD5 is not being used in cacao cert generation
Removing test cacao instance testinst
setting the cacao scn-agent instance parameter java-flags to -Xmx1024m -Xss384k -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:MaxPermSize=196m -client -Dxvmserver=true -Dfile.encoding=utf-8 -Djava.endorsed.dirs=/usr/lib/cacao/lib/endorsed
setting the cacao scn-agent instance parameter watchdog-probe-frequency to 3600
setting the cacao scn-agent instance parameter jmxmp-connector-port to 0
Enabling scn-agent instance.
setting the cacao scn-agent instance parameter log-file-count to 10
setting the cacao scn-agent instance parameter log-file-limit to 10000000
setting log level for agent facade module
Setting VC log levels
Starting scn-agent instance.
Waiting for instance scn-agent to be up.
Enabling SMF service, svc:/system/hotplug
scn-agent configuration done.

executing step : uce_agent

executing step : config_sysconfig

executing step : final
End of configuration.

5. run   sc-console command to verify agent is connected to OPS Center.
root@sinf-mg-p12:/opt/SUNWxvmoc/bin# sc-console list-connections
scn-agent https://192.168.10.80:21165 urn:scn:clregid:57cd7690-a61f-4cba-99ef-69c2bed59210:20181004201945785