This procedure describes how to modify the scripts, partitions, updates, and distribution groups that are configured for an OS profile.
An OS profile that is currently being deployed cannot be modified.
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.
Modify an OS profile by performing one of the following actions:
Add new OS profile attributes.
N1-ok> add osprofile osprofile-name [configuration-attributes] |
See add osprofile in Sun N1 System Manager 1.3 Command Line Reference Manual for details.
Remove existing OS profile attributes.
N1-ok> remove osprofile osprofile-name [configuration-attributes] |
See remove osprofile in Sun N1 System Manager 1.3 Command Line Reference Manual for details.
Change existing OS profile parameters.
N1-ok> set osprofile osprofile-name [configuration-attributes] |
See set osprofile in Sun N1 System Manager 1.3 Command Line Reference Manual for details.
View the new OS profile details.
N1-ok> show osprofile osprofile-name |
The modified OS profile information appears in the output.
This example shows how to use a flash archive and a post-installation script by modifying the solaris_ver10 OS profile.
For this example, assume that you have created the following script in a directory named /scripts on the management serverdirectory.
This sample script name is add_host.sh and the script adds a host to the /etc/hosts file on a managed server.
echo "129.10.12.101 myhost" >>/a/etc/hosts |
Note that the root file system on the provisioned server is /a during the post installation time.
This example also assumes that you have created a flash archive file called archive1.flar and that you have completed the steps in To Copy a Flash Archive to the Management Server.
The following example shows how to add the script to the OS profile.
N1-ok> add osprofile solaris_ver10 script /scripts/add_host.sh type post |
The following example shows how to set up the OS profile to use the flash archive.
N1-ok> set osprofile solaris_ver10 flar /jumpstart/Flash/archive1.flar |
To find out how to load the modified OS profile, see To Load an OS Profile on a Server or a Server Group.