SRDB ID   Synopsis   Date
48151   Sun Fire[TM] 15K: Multiple .postrc files   30 Oct 2002

Status Issued

Description
- Problem Statement: 

How does setkeyswitch/hpost interpret multiple .postrc files?

- Symptoms:

There can be platform-wide as well as domain-specific 
.postrc files. You can also make a special one-time-use (ad hoc)
or limited-use .postrc file.

Question:

If I can have all these .postrc files, how can I predict which 
one(s) get used by setkeyswitch on?
            

SOLUTION SUMMARY:
- Troubleshooting:

Any 'setkeyswitch on' operation will read at most
one .postrc file.

The search path that setkeyswitch uses is this:

1. The current working directory.
2. A domain-specific .postrc file, which is located here:
       /etc/opt/SUNWSMS/config/[A..R]/.postrc 
       [A..R] is the domain ID of the domain being posted.
3. The platform-wide .postrc file, which is located here:
       /etc/opt/SUNWSMS/config/platform/.postrc

Again, if at any time during the search a .postrc file is found,
that file is read and further searching is abandoned.

It is also possible to specify a particular .postrc
file on the hpost command line.  However, running
hpost from the command line is not recommended.

Example:

hpost -p/export/home/sms-svc/.postrc -d g

The argument to -p can also be the reserved word
 'none' , which causes no .postrc file to be used.

NOTE: It is not recommended to put a .postrc file
      in /var/tmp. /var/tmp is the current working
      directory for SMS deamons. If you
      accidently leave a .postrc file in /var/tmp
      and dsmd performs an ASR action, the
      hpost that is executed uses /var/tmp/.postrc.

- Resolution:

- Summary of part number and patch ID's

None
        
- References and bug IDs

http://cpre-amer.west.sun.com/esg/hsg/starcat/binaries/post.pdf

- Additional background information:

Shortly after components get powered on during setkeyswitch,
you can see which .postrc file is being used.

Powering on: HPCI at IO2
Powering on: CPU at SB2

Significant contents of .postrc (domain)
        /etc/opt/SUNWSMS/SMS1.2/config/G/.postrc:

- Meta-Data/Problem categorization:

Product/Platform: SF15K
Category:
 
- Keywords

multiple many several .postrc search path interpret setkeyswitch hpost
            

INTERNAL SUMMARY:

SUBMITTER: Rob Romack APPLIES TO: Hardware/Sun Fire /15000 ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.