Friday 3 October 2014

HOW TO CONFIGURE MULTIPLE SOLARIS PUBLISHERS ON SOLARIS 11.2?

1)Down load latest SRUs & unzip same in required location.
#unzip -d /IPS/SOL11.2_SRU2.8/reop p19691311_1100_SOLARIS64_1of2.zip
#unzip -d /IPS/SOL11.2_SRU2.8/reop p19691311_1100_SOLARIS64_2of2.zip
2)rebuild Repository
# pkgrepo -s /IPS/SOL11.2_SRU2.8/repo rebuild
Initiating repository rebuild.
3)Verify Repository
 # pkgrepo -s /IPS/SOL11.2_SRU2.8/repo verify

4)Create pkg/server new instance
# svccfg -s pkg/server add  sol11-2sru2-8
# svcs -a|grep sol11-2sru2-8
5) configure require properties.
# svccfg -s svc:/application/pkg/server:sol11-2sru2-8
svc:/application/pkg/server:sol11-2sru2-8> listprop
svc:/application/pkg/server:sol11-2sru2-8> addpg pkg application
svc:/application/pkg/server:sol11-2sru2-8> listprop
pkg  application
svc:/application/pkg/server:sol11-2sru2-8> addpg general framework
svc:/application/pkg/server:sol11-2sru2-8> listprop
pkg      application
general  framework
svc:/application/pkg/server:sol11-2sru2-8> addpropvalue general/enabled boolean: true
svc:/application/pkg/server:sol11-2sru2-8> listprop
pkg                                application
general                            framework
general/enabled                   boolean     true
general/complete                  astring
restarter                          framework            NONPERSISTENT
restarter/logfile                 astring     /var/svc/log/application-pkg-server:sol11-2sru2-8.log
restarter/start_pid               count       2193
restarter/start_method_timestamp  time        1412052471.802291000
restarter/start_method_waitstatus integer     256
restarter/contract                count
restarter/auxiliary_state         astring     fault_threshold_reached
restarter/next_state              astring     none
restarter/state                   astring     maintenance
restarter/state_timestamp         time        1412052471.832000000
restarter_actions                  framework            NONPERSISTENT
restarter_actions/enable_complete time        1412052471.850069000

svc:/application/pkg/server:sol11-2sru2-8> setprop pkg/port=8082
svc:/application/pkg/server:sol11-2sru2-8> listprop
pkg                                application
pkg/port                          count       8082
general                            framework
general/enabled                   boolean     true
general/complete                  astring
restarter                          framework            NONPERSISTENT
restarter/logfile                 astring     /var/svc/log/application-pkg-server:sol11-2sru2-8.log
restarter/start_pid               count       2193
restarter/start_method_timestamp  time        1412052471.802291000
restarter/start_method_waitstatus integer     256
restarter/contract                count
restarter/auxiliary_state         astring     fault_threshold_reached
restarter/next_state              astring     none
restarter/state                   astring     maintenance
restarter/state_timestamp         time        1412052471.832000000
restarter_actions                  framework            NONPERSISTENT
restarter_actions/enable_complete time        1412052471.850069000
svc:/application/pkg/server:sol11-2sru2-8> setprop pkg/inst_root="/IPS/SOL11.2_SRU2.8/repo"
svc:/application/pkg/server:sol11-2sru2-8> listprop
pkg                                 application
pkg/port                           count       8082
pkg/inst_root                      astring     /IPS/SOL11.2_SRU2.8/repo
general                             framework
general/complete                   astring
general/enabled                    boolean     false
restarter                           framework           NONPERSISTENT
restarter/logfile                  astring     /var/svc/log/application-pkg-server:sol11-2sru2-8.log
restarter/start_pid                count       2193
restarter/start_method_timestamp   time        1412052471.802291000
restarter/start_method_waitstatus  integer     256
restarter/contract                 count
restarter/auxiliary_state          astring     disable_request
restarter/next_state               astring     none
restarter/state                    astring     disabled
restarter/state_timestamp          time        1412052841.027547000
restarter_actions                   framework           NONPERSISTENT
restarter_actions/enable_complete  time        1412052471.850069000
restarter_actions/auxiliary_tty    boolean     true
restarter_actions/auxiliary_fmri   astring     svc:/network/ssh:default
restarter_actions/disable_complete time        1412052841.048321000
svc:/application/pkg/server:sol11-2sru2-8> end
6)to set the publishers
#pkg set-publisher -G '*' -g http://xx.xx.xx.xx:8082/ solaris
#pkg set-publisher -G '*' -g http://xx.xx.xx.xx:8082/ solaris
7)to check publisher
#pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F http://xx.xx.xx.xx:8081/
solaris                     origin   online F http://xx.xx.xx.xx:8082/
8)pkg update
#pkg update --accept


1 comment: