Sun N1 System Manager 1.3 Operating System Provisioning Guide

ProcedureTo Copy a Custom OS Update

  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Command Line in Sun N1 System Manager 1.3 Discovery and Administration Guide for details.

  2. Copy the custom OS update to the N1 System Manager.

    N1-ok> create update update updatetype other file file ostype ostype 
    installscriptfile installscriptfile [adminfile adminfile] [responsefile responsefile]

    Note –

    Even though the tab completion allows this argument anywhere in the create update command, the command will fail if updatetype other is not the first argument.

    Use the tab completion help to find out the valid ostype values.

    See create update in Sun N1 System Manager 1.3 Command Line Reference Manual for details.

Example 5–3 Copying an Custom OS Update With a Patch Installation Script Through the Command Line

This example shows an executable Bourne shell (/bin/sh) patch installation script.

mkdir /tmp/layer
cd /tmp/layer
echo "untar the source:"
tar -xvf /tmp/mypatches.tar
echo "let's install mypatches:"
patchadd -M /tmp/layer 117448-01 117466-01
cd /tmp
rm -rf /tmp/layer
exit $?

The following sample command shows how to copy the patch installation script to N1 System Manager with the OS update files. This example assumes that you have copied the script to the management server's /tmp directory with the name

N1-ok> create update mypatches updatetype other file /tmp/mypatches.tar ostype solaris10x86 installscriptfile 

In this example, /tmp/mypatches.tar contains the Solaris patches 117448–01 and 117466–01 in the datastream format.

The script and the source files for the OS update are copied to the target server when the load server server-name update command is issued. The script file is executed by using the Bourne shell with the full path to the package file as the sole argument.