This section describes the following tasks:
OS profile installations can be customized to fit your provisioning and network needs.
To deploy default or custom OS profiles, use the load command with the server or group keyword and the osprofile subcommand.
To add the base management and OS monitoring features that support updating and patching, use the feature attribute with the osmonitor value when you issue the load command. The feature attribute of the load command enables you to automatically configure monitoring when you load the OS profile.
For syntax and parameter details, type help load server, help load group, and help add server at the N1–ok command line.
Servers boot from their default network boot interface automatically as the final step of a load operation.
The following table provides a quick reference of all the parameters that are available for the load group and load server commands.
Before you attempt any Solaris OS on x86 platform deployments by using the N1 System Manager, you must ensure that the nameserver and search values are correctly configured at the operating system level on your management server. Otherwise, the installations will fail.
For more details, see the resolv.conf(5) man page. You need root user access on your management server to modify these settings.
Parameters |
Red Hat or SUSE OS |
Solaris OS |
Multiple Servers |
Single Server |
Notes |
---|---|---|---|---|---|
bootip |
√ (R) |
|
√ |
√ |
Also known as provisionable IP. |
ip |
√ |
√ (R) |
√ |
√ |
Required if networktype is set to static. |
networktype |
√ (R) |
√ (R) |
√ |
√ |
Must be set to static for Solaris installation. |
bootgateway |
√ |
√ |
√ | ||
boothostname |
√ |
√ | |||
bootnameserver |
√ |
√ |
√ | ||
bootnetmask |
√ |
√ |
√ |
Default is set to the provisioning network interface that is specified using the n1smconfig utility. |
|
bootnetworkdevice |
√ |
√ |
√ |
√ | |
bootpath |
√ |
√ | |||
console |
√ |
√ |
√ | ||
consolebaud |
√ |
√ |
√ | ||
kernelparameter |
√ |
√ |
√ | ||
domainname |
√ |
√ |
√ |
If domainname is not specified, a default will be configured |
|
gateway |
√ |
√ |
√ |
√ | |
hostname |
√ |
√ |
√ | ||
nameserver |
√ |
√ |
√ |
√ | |
netmask |
√ |
√ |
√ |
√ |
Default is set to the provisioning network interface that is specified using the n1smconfig utility. |
networkdevice |
√ |
√ |
√ |
The Linux default is eth0. The Primary network interface is the default for Solaris installations. |
|
(R) = Required √ = Configurable |
The following procedure describes how to load an OS profile on a server or a server group by using the browser interface. The examples that follow the procedure provide command-line equivalents.
Uninstallation of an OS profile is not supported. However, you can reprovision a server by loading another OS profile on a server that is already provisioned.
Create an OS profile. See To Create an OS Profile.
Disable monitoring for the servers that will be loaded with an OS profile. See To Disable Monitoring for a Server or a Server Group for details. Disabling monitoring prevents the fault notifications that are generated if the server reboots after installation.
Ensure that you have enough disk space available to load an OS profile.
If you are loading a Red Hat 4 OS profile on a Sun Fire X2100 server or group of Sun Fire X2100 servers, see Example 3–13 for the required bootnetworkdevice and networkdevice attribute values.
Optionally create and copy a flash archive file. See To Copy a Flash Archive to the Management Server.
Optionally create and copy a post-installation script to the management server. See Step 4.
Log in to the N1 System Manager.
See To Access the N1 System Manager Browser Interface for details.
(Optional) Modify the OS profile to use a flash archive and a post-installation script.
N1-ok> set osprofile osprofile flar flar |
The flar attribute value is the full path and flash archive file name, for example, /jumpstart/Flash/archive1.flar.
N1-ok> add osprofile osprofile script script type type |
The script attribute value is the full path and script file name, for example, /etc/sysconfig/network-scripts/ifcfg-eth1.
The type attribute specifies the time when the custom script will run during the installation. Valid values for the type attribute are:
pre – Run the script before the installation (for example, drivers).
post – Run the script after the installation.
postnochroot – Run the script after the installation. The script does not have to be run as superuser (root).
The OS profile is modified to use the designated post-installation script and the flash archive file.
Navigate to the table that contains the server or the server group by performing one of the following actions:
Drag and drop the OS profile icon from the Shortcuts pane to the server or the server group.
The Load OS Profile wizard appears.
Use the wizard steps to guide you through the screens.
Click the Help tab in the left pane of the wizard for detailed information about the entry fields.
To begin loading the OS profile on the selected servers, click the Finish button in the wizard.
The wizard window closes and a job ID appears in the Command Line pane.
Click the Jobs tab.
The Jobs table appears with information about your Load OS job.
The Load OS job will not complete until a final reboot occurs.
Save the options that you used to load the OS profile as a note in case you need to restore the server sometime in the future.
See Modifying Server and Server Group Information for details.
The following example shows you how to install a Solaris OS profile on a server by using the load command. The feature parameter specifies that the OS monitoring feature is installed. See Adding and Upgrading Base Management and OS Monitoring Features for details.
N1-ok> load server 192.168.8.9 osprofile S10profile networktype static ip 192.168.18.19 feature osmonitor agentssh root/rootpassword |
The networktype attribute must be set to static for Solaris profile installations. See Table 3–4 and load server in Sun N1 System Manager 1.2 Command Line Reference Manual for details.
Use the show job command to view the results.
N1-ok> show job target=192.168.8.9 |
The following example shows you how to install a Solaris OS profile on a server group by using the load command.
N1-ok> load group devgroup osprofile S10profile excludeserver=server1 networktype static ip 192.186.8.8-192.186.8.9 Job "14" started. |
The networktype attribute must be set to static for Solaris profile installations. See Table 3–4 and load server in Sun N1 System Manager 1.2 Command Line Reference Manual for details.
The following command shows you how to view the job results.
N1-ok> show job 14 |
The following example shows you how to install a Linux OS profile on a server by using the load command.
N1-ok> load server 192.168.8.9 osprofile RH3profile bootip 192.168.8.9 networktype dhcp |
The bootip attribute is only used for Linux profile installations.
The following command shows you how to view the job results.
N1-ok> show job target=192.168.8.9 |
Setting the networktype attribute to DHCP means that the server uses DHCP to get its provisioning network IP address. If the system reboots, any added management features will break. In this case, use the set server agentip command to modify the server's agent IP address. See To Modify the Agent IP for a Server for more information.
The following example shows you how to install a Linux OS profile on a server group by using the load command.
N1-ok> load group devgroup osprofile RH3profile bootip 192.186.8.8-192.186.8.9 networktype dhcp Job "15" started |
The following command shows you how to view the job results.
N1-ok> show job 15 |
Setting the networktype attribute to DHCP means that the server uses DHCP to get its provisioning network IP address. If the system reboots, any added management features will break. In this case, use the set server agentip command to modify the server's agent IP address. See To Modify the Agent IP for a Server for more information.
This example shows you how to load a Red Hat Enterprise Linux 4 OS profile onto a Sun Fire X2100 server using static IP network configuration.
N1-ok> load server server1 osprofile RHEL4profile bootip 192.168.8.8 networktype static ip 192.168.8.8 bootnetworkdevice eth1 networkdevice eth1 |
This example shows you how to load a Red Hat Enterprise Linux 4 OS profile onto a Sun Fire X2100 server using DHCP network configuration.
N1-ok> load server server34 osprofile rh4u1es-64-min bootip=10.0.101.34 networktype=dhcp bootnetworkdevice=eth1 networkdevice=eth1 |
The values bootnetworkdevice and networkdevice are only required for Red Hat Linux 4 on Sun Fire X2100 servers.
When loading Solaris 10 x86 to a Sun Fire X2100 server , you need to first add a script to the profile. This script will disable the loading of the bge driver in /etc/system.
If your management server is running Linux, use the following command to add the script to the profile:
N1-ok> add osprofile profile_name script /opt/sun/scs/data/allstart/scripts/solaris_bge_disable.sh type=post |
If your management server is running the Solaris OS, use the following command to add the script to the profile:
N1-ok> add osprofile profile_name script /opt/SUNWscs/data/allstart/scripts/solaris_bge_disable.sh type=post |
The service processor will become inaccessible while the machine is being provisioned.
If a value is not specified for the bootnetmask or netmask parameters during the load operation, the netmask will default to the provisioning network interface that is specified in the n1smconfig utility. See To Configure the N1 System Manager System in Sun N1 System Manager 1.2 Installation and Configuration Guide.
If the deployment fails, see the topics in OS Profile Deployment Failures for possible solutions.
To enable remote connectivity, OS resource monitoring, package deployment, and inventory management, you must add the OS monitoring feature on each server. See To Add the OS Monitoring Feature.