Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1538483.1
Update Date:2017-10-05
Keywords:

Solution Type  Technical Instruction Sure

Solution  1538483.1 :   Collect a System Controller (SC) Explorer using STB7.3 (or newer) on Sun Fire 12K/15K/E20K/E25K (Starcat) Servers  


Related Items
  • Sun Fire 15K Server
  •  
  • Sun Fire E20K Server
  •  
  • Sun Fire E25K Server
  •  
  • Sun Fire 12K Server
  •  
Related Categories
  • PLA-Support>Sun Systems>SPARC>Enterprise>SN-SPARC: SF-Exxk
  •  




Applies to:

Sun Fire E25K Server - Version All Versions and later
Sun Fire 12K Server - Version All Versions and later
Sun Fire E20K Server - Version All Versions and later
Sun Fire 15K Server - Version All Versions and later
All Platforms

Goal

This document describes how to collect a System Controller (SC) specific Explorer. The Explorer module sf15k_sc is completely re-written, starting with Services Tool Bundle (STB) 7.3.

It needs to have environment variable EXP_SMSUSER set, see below !!

This document applies to all Sun Fire Exxk servers, and describes the usage of the sf15k_sc  module of Explorer 7.3 (as part of STB7.3) or newer.

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join, or start a discussion in the My Oracle Support Community - SPARC Legacy Servers

Solution

Upgrading to STB 7.3 on  Sun Fire Exxk (Starcat) Servers System Controller (SC)

For details on how to get hold of the latest version of Services Tool Bundle (STB), how to install and how to use it, reading Oracle Services Tools Bundle (STB) - RDA/Explorer, SNEEP, ACT [ID 1153444.1]  is a good starting point. To ensure your Explorer run is using the latest available modules,  and to ensure the Explorer defaults file is usable by Explorer 7.3, be sure to have run the following commands during the installation process:

root@e25k-x-a-sc1 # ./install_stb.sh -verbose -force
.
.
.
root@e25k-x-a-sc1 # pwd
/opt/SUNWexplo/bin
root@e25k-x-a-sc1 # ./explorer -g
.
.
root@e25k-x-a-sc1 #

 

Running Explorer on  Sun Fire Exxk (Starcat) Servers System Controller (SC)

Like on any other Oracle SPARC Server, you can run Explorer on the Sun Fire Exxk System Controller (SC), which is a Solaris host itself . When you run Explorer with the option -w sf15k_sc, it will collect all Sun Fire Exxk platform specific information from the System Controller. This specific set of data will be in the sf15k sub-directory of the host's Explorer. Previous version of the sf15k_sc module (STB7.2 and earlier) did create and remove the necessary users on the SC to be able to collect all domain specific information.

Starting with STB7.3 , the sf15k_sc module no longer does create and remove these users, instead it relies on an existing user on the SC with the appropriate privileges. For Explorer to be able to successfully run the sf15k_sc module, the environment variable EXP_SMSUSER must be set with the username that has the appropriate privileges. How to set EXP_SMSUSER, and what privileges is needs, is described in How to set EXP_SMSUSER .

 

How to set environment variable EXP_SMSUSER

This paragraph will describe how to set the value of environment variable EXP_SMSUSER to sms-svc

After installing STB7.3,  you first need to run "explorer -g" to generated a defaults file that is usable by Explorer 7.3. Starting with Explorer 7.0 the package  is distributed both as a SVR4 package and as an IPS package. The standard location for the output and configuration files is as follows:

  • Solaris10:
    • the default output files location is /opt/SUNWexplo/output
    • the default configuration files location is /etc/opt/SUNWexplo
  • Solaris11:
    • the default output files location is /var/explorer/output
    • the default configuration files location is /etc/explorer
  • throughout this document  ${XPL_ETC} will be used to indicate the location of configuration files
  • throughout this document  ${XPL_OUT} will be used to indicate the location of output files

One option for setting EXP_SMSUSER , is to set its value on the shell command line, before running explorer -w sf15k_sc :

root@e25k-x-a-sc1 # EXP_SMSUSER="sms-svc"
root@e25k-x-a-sc1 # export EXP_SMSUSER
root@e25k-x-a-sc1 # echo ${EXP_SMSUSER}
sms-svc
root@e25k-x-a-sc1 #

To make the settings for EXP_SMSUSER persistant, you can add a line to the file ${XPL_ETC}/default/explorer :

root@e25k-x-a-sc1 # pwd
/etc/opt/SUNWexplo/default
root@e25k-x-a-sc1 # ls -ld explorer
-rw-------   1 root     other       2000 Mar 19 18:33 explorer
root@e25k-x-a-sc1 # cat explorer | grep EXP_SMSUSER
EXP_SMSUSER="sms-svc"
root@e25k-x-a-sc1 #

Bear in mind that lines in  the file ${XPL_ETC}/default/explorer are treated like lines in a shell script, if they start with # they are considered comment lines and have no effect on Explorer. For more details on Explorer, please visit the explorer manual pages. Which privileges are needed by user EXP_SMSUSER is described in What privileges does user EXP_SMSUSER need .

Note: running explorer -g will remove the EXP_SMSUSER setting from ${XPL_ETC}/default/explorer. After running explorer -g the line with EXP_SMSUSER needs to be added to the file again !!

What privileges does user EXP_SMSUSER need

User EXP_SMSUSER is an existing SMS user, that needs to have the following privileges setup, for the sf15k_sc module to run successfully:

  • user EXP_SMSUSER must be a member of the platform administrator group; this memberships is shown as platadmn
  • for each domain (A-R) user EXP_SMSUSER must be a member of the domain administrator group; this membership is shown as dmn<domain_id>admn
  • membership of other groups (service, operator, etc. ) is not necessary, but is also not causing any problems with the sf15k_sc module

 

root@e25k-x-a-sc1 # smsconfig -l platform
sms-svc platadmn
Tue Mar 19 21:19:40 GMT 2013
smsconfig complete.
root@e25k-x-a-sc1 # smsconfig -l a
sms-svc dmnaadmn
Tue Mar 19 21:19:28 GMT 2013
smsconfig complete.
root@e25k-x-a-sc1 # smsconfig -l b
sms-svc dmnbadmn dmnbrcfg
Tue Mar 19 21:19:33 GMT 2013
smsconfig complete.
root@e25k-x-a-sc1 #
.
.

 

Final observations

If you don't get this to work, make the Explorer module more verbose, by running explorer -verbose -w default,sf15k_sc. If that does not clear up any confusion, you can turn on "tracing" in two ways:

  • in the file ${XPL_ETC}/rdainput.txt you can add the line RDA_XPLR_TRACE="1"
  • before running the explorer command, run EXP_TRACE_RDA=1 ; export EXP_TRACE_RDA

This will cause a very,very verbose run, with a ton of output, but it will tell you exactly what happens. After activating tracing, you can run /opt/SUNWexplo/bin/explorer -verbose -w default,sf15k_sc 2>&1 | tee -a /tmp/log.txt  . All screen output will be in the specified output file, there might be a clue in the trace output just before any issue you experience.

 

What can go wrong ? Some example output of common mistakes that can happen ...

User EXP_SMSUSER is not set, the sf15k_sc module will not collect anything, it will result in an explorer without a sf15k directory:

.
.
Apr 10 16:53:48 f15k-x-a-sc1[5930] sf15k_sc:RUNNING
Apr 10 16:53:48 f15k-x-a-sc1[5930] sf15k_sc:ERROR SMS user is not defined
.
.

 

User EXP_SMSUSER does not have platform administration privileges, the sf15k_sc module will not collect anything, it will result in an explorer with an empty sf15k directory:

root@e25k-x-a-sc1 # echo $EXP_SMSUSER
sms-svc
root@e25k-x-a-sc1 # /opt/SUNWSMS/bin/smsconfig -l platform
sms-col platadmn platsvc
Wed Apr 10 17:23:42 BST 2013
smsconfig complete.
root@e25k-x-a-sc1 # ./explorer -w default,sf15k_sc
.
.
Apr 10 17:27:29 f15k-x-a-sc1[19086] sf15k_sc:RUNNING
Apr 10 17:27:30 f15k-x-a-sc1[19086] sf15k_sc:ERROR SMS user does not have
                                                  platform privileges
.
.
root@e25k-x-a-sc1 #

 

User EXP_SMSUSER does not have domain privileges for one of more domains, for these domains the domain specific information is not collected by the sf15k_sc module, the matching ./sf15k/<domain_id> directory in the explorer output will be empty, the below output shows an Explorer collect, where EXP_SMSUSER did not have domain privileges for domain E:

root@e25k-x-a-sc1 # echo $EXP_SMSUSER
sms-svc
root@e25k-x-a-sc1 # /opt/SUNWSMS/bin/smsconfig -l e
sms-col dmneadmn
Wed Apr 10 17:43:53 BST 2013
smsconfig complete.
root@e25k-x-a-sc1 ## ./explorer -w default,sf15k_sc
.
.
Apr 10 17:37:26 f15k-x-a-sc1[24175] sf15k_sc:RUNNING
Apr 10 17:40:50 f15k-x-a-sc1[24175] ilomsnapshot_finish:RUNNING
.
.
root@e25k-x-a-sc1 # ls /opt/SUNWexplo/output/explorer.80f9d1be.f15k-x-a-sc1-2013.04.10.16.34/sf15k/
A                                        pcd
B                                        showboards_-c.out
C                                        showboards_-v.out
D                                        showbus.out
F                                        showbus_-v.out
G                                        showchs_-v_-c_SB15.out
H                                        showcmdsync.err
I                                        showcmdsync.out
J                                        showcmdsync_-v.err
K                                        showcmdsync_-v.out
L                                        showcodlicense_-v.out
M                                        showcodusage_-v.out
N                                        showdatasync_-l.err
O                                        showdatasync_-l.out
P                                        showdatasync_-v.err
Q                                        showdatasync_-v.out
R                                        showdate_-v.out
adm                                      showenvironment.out
etc                                      showfailover.out
flashupdate                              showfailover_-r.out
getfacl                                  showfailover_-v.out
hostobjs                                 showlogs_-E_-p_e.out
ls_-laR_@etc@opt@SUNWSMS@SMS@config.out  showplatform.out
ls_-laR_@var@opt@SUNWSMS@SMS@adm.out     showplatform_-v.out
marginclock.out                          smsversion_-t.out
marginvoltage.out
#

 

You think you are running Explorer on the main SC, but in fact you are running Explorer on the spare SC. You think Explorer is broken, but it is not. Being on the spare SC, only a few commands will be completed successfully, this is how a sf15k directory looks on the spare SC:

f15k-x-a-sc0:sms-svc:31> showfailover -r
SPARE
f15k-x-a-sc0:sms-svc:32> su -
Password:
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have mail.
root@e25k-x-a-sc0 # ls /opt/SUNWexplo/output/explorer.80f9e476.f15k-x-a-sc0-2013.04.09.16.32/sf15k
A                                        P
B                                        R
C                                        adm
D                                        etc
E                                        flashupdate
F                                        getfacl
G                                        hostobjs
H                                        ls_-laR_@etc@opt@SUNWSMS@SMS@config.out
I                                        ls_-laR_@var@opt@SUNWSMS@SMS@adm.out
J                                        pcd
K                                        showfailover.out
L                                        showfailover_-r.out
M                                        showfailover_-v.out
N                                        smsversion_-t.out
O
root@e25k-x-a-sc0 #

 

This is how the output of a successful run looks:

root@e25k-x-a-sc1 # ./explorer -w default,sf15k_sc
.
.
.Oracle Explorer Data Collector 7.3
Apr 10 17:34:54 f15k-x-a-sc1[24175] explorer:  Explorer ID: explorer.80f9d1be.f15k-x-a-sc1- 2013.04.10.16.34
Apr 10 17:35:00 f15k-x-a-sc1[24175] rda:  RUNNING
Apr 10 17:35:00 f15k-x-a-sc1[24175] rda:  Initializing RDA
Apr 10 17:35:00 f15k-x-a-sc1[24175] rda:  Running RDA
------------------------------------------------------------------------------
RDA Data Collection Started 10-Apr-2013 17:35:13
------------------------------------------------------------------------------
Processing RDA.BEGIN module ...
Processing RDA.CONFIG module ...
Processing XPLR module ...
Apr 10 17:35:15 f15k-x-a-sc1[24175] patch:RUNNING
Apr 10 17:35:18 f15k-x-a-sc1[24175] pkg:RUNNING
Apr 10 17:35:38 f15k-x-a-sc1[24175] sysconfig:RUNNING
Apr 10 17:37:25 f15k-x-a-sc1[24175] platform_serial:RUNNING
Apr 10 17:37:26 f15k-x-a-sc1[24175] sf15k_sc:RUNNING
Apr 10 17:40:50 f15k-x-a-sc1[24175] ilomsnapshot_finish:RUNNING
Processing RDA.END module ...
------------------------------------------------------------------------------
RDA Data Collection Ended 10-Apr-2013 17:40:53
------------------------------------------------------------------------------
Apr 10 17:40:54 f15k-x-a-sc1[24175] rda:  Converting RDA output to Explorer format
Apr 10 17:41:06 f15k-x-a-sc1[24175] rda:  Cleaning RDA work directories
Apr 10 17:41:07 f15k-x-a-sc1[24175] explorer:  data collection complete
Apr 10 17:41:28 f15k-x-a-sc1[24175] explorer:  Removing previous explorers from /opt/SUNWexplo/o utput ...
Apr 10 17:41:28 f15k-x-a-sc1[24175] explorer:  Explorer finished

The result of the Oracle Explorer data collection can be found in the
/opt/SUNWexplo/output directory.
The packed result is: explorer.80f9d1be.f15k-x-a-sc1-2013.04.10.16.34.tar.gz
You can send this file to Oracle.

Do not submit any health, payment card or other sensitive production
data that requires protections greater than those specified in the
Oracle GCS Security Practices
(http://www.oracle.com/us/support/library/customer-support-security-practices-069170.pdf).
Information on how to remove data from your submission is available at
https://support.oracle.com/rs?type=doc&id=1227943.1.
root@e25k-x-a-sc1 #

 

explorer, sf15k_sc, Starcat


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback