Managing your HP-UX inventory with HP SIM (430146-002, January 2009)

16
Appendix
Use HP SIM to simplify managed server setup
If you are managing many servers, it can be time consuming to sign in to each server to download
and install all of the required software. This section describes how you can create a
depot containing
all of the software, and then create a tool in HP SIM to install the components.
Note
: This tool is designed for an HP
-
UX installation of HP SIM.
Creating the depot
On the CMS, download all of the software required for both HP
-
UX 11iv1
and 11iv2 into the
/tmp
folder. The following steps create a tape depot that will be used.
dirdepot
can be any name you
choose.
% swcopy
s /tmp/<first file>
-
x enforce_dependencies=false
\
* @
/tmp/dirdepot
% swcopy
s /tmp/<2
nd
file>
-
x enforce_depende
ncies=false
\
* @
/tmp/dirdepot
% swcopy
s /tmp/<last file>
-
x enforce_dependencies=false
\
* @
/tmp/dirdepot
% swpackage
s /tmp/dirdepot
x media_type=tape @
/tmp/newdepot.depot
There will be one
swcopy
command for each WBEM component (B8465BA, provider
s, for both PA
-
RISC and IPF, and both 11iv1 and 11iv2). The result will be the file called
newdepot.depot
that
will be deployed to each managed server by HP SIM.
Creating the tool
Now, create a tool that will copy the depot to each managed server and ins
tall the contents. HP
-
UX
knows how to extract the correct component for the OS version and hardware the OS is running on,
so the same depot will be copied to each managed server. Here is the skeleton of the tool:
<?xml version="1.0" encoding="UTF
-
8" ?>
<tool
-
list>
<ssa
-
command
-
tool name=”HPUX Deploy WBEM” revision=”1.0”>
<category>Local Tools</category>
<description>Copy WBEM components to the selected managed
servers and installs them.</description>
<comment>This tool copies the tape depot
to the selected
servers and installs the contents. </comment>
<execute
-
as
-
user>root</execute
-
as
-
user>
<toolbox
-
enabled value=”true” />
<toolbox toolbox
-
name=”All Tools” />
<include
-
filter type=”protocol”>
<node
-
filter name=”SSH” ope
rator=”ge” value=”1.0” />
</include
-
filter>
<ssa
-
block>
<command command
-
type=”stdout” log=”false”>swinstall
x
enforce_dependencies=false
s /tmp/newdepot.depot
\
*
</command>
<copy
-
block>
<source>/tmp/newdepot.
depot</source>
<destination>/tmp/newdepot.depot</destination>
</copy
-
block>
</ssa
-
block>
<attribute name=”menu
-
path”>Tools|HPUX Deploy WBEM</attribute>
</ssa
-
command
-
tool>