The general process that you follow to define a target host is similar for all target host types. However, the details differ for each type. This section contains sample tasks for some, but not all, target host types.
Before you can install the image onto a system, often referred to as provisioning, you must inform the OS provisioning server about that system.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the Sun ALOM section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the SunALOM component row of the Plan Parameters table.
To create a new variables set, click Select from List in the SunALOM component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variable values and change them, if needed.
If you need more information that is provided by the prompts in the component variables table, see the detailed list of variables, along with default values and examples, in Sun ALOM Target Host Variables.
Decide whether to enter passwords in the variables set or in the plan prompts.
There are two methods for entering the passwords:
Type appropriate values in the following variables:
alom_access_userid |
alom_access_password |
terminal_server_userid |
terminal_server_password |
For information about encrypting the passwords, see Password Encryption.
Leave the component variables blank and enter the password in the plan prompts provided in the Plan Details Run page.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the SunALOM component row of the Plan Parameters table.
From the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
To encrypt the passwords from the plan, follow these steps on the Plan Details Run page.
Click the checkbox next to “If you are specifying the ALOM password below.”
Type the password in the Password to Access ALOM field.
The password encrypts as you type.
If the system is connected to a terminal server, click the checkbox next to “If you are specifying the terminal server password below.”
Type the terminal server password in the Terminal Server Password field.
The password encrypts as you type.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host test240, the virtual host is test240-target.
To create a variable set for the SunALOM component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunALOM \ -name "testv240" -u admin -p admin -vars "installPath=testv240; \ description=To test v240;ethernet_mac_address=0:3:ba:53:5b:5d; \ ethernet_ip_address=10.42.42.100;ethernet_netmask=255.255.255.0;architecture=sun4u; \ kernel_arch=sun4u;disk_size=20GB;alom_ip_address=10.5.133.150;alom_access_userid=admin; \ alom_access_password=" |
For more information about the variables, see Sun ALOM Target Host Variables.
To set up the appropriate password access, create a file that contains the following entries:
true root true root
Where:
The first line in the file corresponds to checking the “If you are specifying the ALOM password below” box in the plan variables section of the browser interface.
The second line in the file is the password to access ALOM.
The third line in the file corresponds to checking the “If you are specifying the terminal password below” box in the plan variables section of the browser interface.
The fourth line in the file is the password to access the terminal.
Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/testv240-target.
To run the plan and create the target, type a command similar to the following example:
# cr_cli -cmd pe.p.run -u admin -p admin \ -PID NM:/com/sun/n1osp/targets/SunALOM-create -tar H:NM:masterserver-osp \ -comp + -vs testv240 -pto 30 -nto 10 -f /tmp/testv240-target |
The Sun IPMI target host type is used for several system families, including the Sun FireTM x2100, x4100, x4200, and V20z,systems.
For this task, the target host is a Sun Intelligent Platform Management Interface (IPMI) system. Specifically, the example defines a x2100 target host.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the Sun IPMI Targets sub-section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the SunIPMI component row of the Plan Parameters table.
To create a new variables set, click Select from List in the SunIPMI component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variables and change them, if needed.
The prompts in the component variables table are mostly self-explanatory. However, if you need more information, see the detailed list of variables, along with default values and examples in Sun IPMI Target Host Variables.
Decide whether to enter passwords in the variables set or in the plan prompts.
There are two methods for entering the passwords:
Type appropriate values in the following variables:
ipmi_access_userid |
ipmi_access_password |
ssh_access_userid |
ssh_access_password |
For information about encrypting the passwords, see Password Encryption.
Leave the component variables blank and enter the password in the plan prompts provided in the plan run page.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the SunIPMI component row of the Plan Parameters table.
From the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
To encrypt the password from the plan, follow these steps on the Plan Details Run page.
Click the checkbox next to “If you are specifying the IPMI password below.”
Type the password in the Password to Access IPMI field.
The password encrypts as you type.
Click the checkbox next to “If you are specifying the SSH password below.”
Type the password in the SSH Password to Access the Remote Management Interface field.
The password encrypts as you type.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host sunfire-x2100, the virtual host is sunfire-x2100-target.
To create a variable set for the SunIPMI component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunIPMI -name "x2100" \ -u admin -p admin -vars "installPath=x2100host;description=test x2100 host; \ device_type=sunfirex2100;ethernet_mac_address=00:09:3d:10:94:a6;ethernet_ip_address=10.42.42.110; \ ethernet_netmask=255.255.255.0;architecture=x86;kernel_arch=i86pc; \ guid={3AE45192-159D-11D8-AEF3-001083FDFE90};disk_size=20GB;ipmi_ip_address=10.5.133.134; \ ipmi_access_userid;ipmi_access_password=;ssh_access_userid=admin;ssh_access_password= \ console_service=false" |
For more information about the variables, see Sun IPMI Target Host Variables.
To set up the appropriate password access, create a file that contains the following entries:
true admin true admin
Where:
The first line in the file corresponds to checking the “If you are specifying the IPMI password below” box in plan variables section of the browser interface.
The second line in the file is the password to access IPMI.
The third line in the file corresponds to checking the “If you are specifying the SSH password below” box in plan variables section of the browser interface.
The fourth line in the file is the SSH password to access the remote management interface.
Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/testv20z-target.
To run the plan and create the Sun IPMI target, type a command similar to the following example:
# cr_cli -cmd pe.p.run -u admin -p admin \ -PID NM:/com/sun/n1osp/targets/SunIPMI-create -tar H:NM:masterserver-osp \ -comp + -vs x2100 -pto 30 -nto 10 -f /tmp/test-x2100 |
The previous example applies to the Sun Fire x2100.
The Sun RSC target host type is used for systems such as a Sun FireTM v490 or v890 system.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the Sun RSC Targets section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the SunRSC component row of the Plan Parameters table.
To create a new variables set, click Select from List in the SunRSC component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variable values and change them, if needed.
If you need more information that is provided by the prompts in the component variables table, see the detailed list of variables, along with default values and examples, in Sun RSC Target Host Variables.
Decide whether to enter passwords in the variables set or in the plan prompts.
There are two methods for entering the passwords:
Type appropriate values in the following variables:
rsc_access_userid |
rsc_access_password |
terminal_server_userid |
terminal_server_password |
For information about encrypting the passwords, see Password Encryption.
Leave the component variables blank and enter the password in the plan prompts provided in the Plan Details Run page.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the SunRSC component row of the Plan Parameters table.
From the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
To encrypt the passwords from the plan, follow these steps on the Plan Details Run page.
Click the checkbox next to “If you are specifying the RSC password below.”
Type the password in the Password to Access RSC field.
The password encrypts as you type.
Click the checkbox next to “If you are specifying the terminal server password below.”
Type the terminal server password in the Terminal Server Password field.
The password encrypts as you type.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host test490, the virtual host is test490-target.
To create a variable set for the SunRSC component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/SunRSC \ -name "testv490" -u admin -p admin -vars "installPath=testv490; \ description=To test v490;ethernet_mac_address=0:3:ba:53:5b:5d; \ ethernet_ip_address=10.42.42.100;ethernet_netmask=255.255.255.0;architecture=sun4u; \ kernel_arch=sun4u;disk_size=20GB;rsc_ip_address=10.5.133.150;rsc_access_userid=admin; \ rsc_access_password=" |
For more information about the variables, see Sun RSC Target Host Variables.
To set up the appropriate password access, create a file that contains the following entries:
true root false root
Where:
The first line in the file corresponds to checking the “If you are specifying the RSC password below” box in the plan variables section of the browser interface.
The second line in the file is the password to access RSC.
The third line in the file corresponds to checking the “If you are specifying the terminal password below” box in the plan variables section of the browser interface.
The fourth line in the file is the password to access the terminal.
Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/testv490-target.
To run the plan and create the target, type a command similar to the following example:
# cat /tmp/RSC-target | cr_cli -cmd pe.p.run -u admin -p admin \ -PID NM:/com/sun/n1osp/targets/SunRSC-create -tar H:NM:masterserver-osp \ -comp + -vs testv490 -pto 30 -nto 10 -f /tmp/testv490-target |
The following tasks show how to define an HP ILO host, for example an HP ProLiant series system.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the HP ILO Targets sub-section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the HPILO component row of the Plan Parameters table.
To create a new variables set, click Select from List in the HPILO component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variables and change them, if needed.
The prompts in the component variables table are mostly self-explanatory. However, if you need more information, see the detailed list of variables, along with default values and examples in HP ILO Target Host Variables.
Decide whether to provide passwords in the variables set or in the plan prompts.
There are two methods for providing the passwords:
Type appropriate encrypted values in the following variables:
ilo_access_userid |
ilo_access_password |
For information about encrypting the passwords, see Password Encryption.
Leave the component variables blank and enter the password in the plan prompts provided in the plan run page.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the HPILO component row of the Plan Parameters table.
On the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
To encrypt the password from the plan, follow these steps on the Plan Details Run page.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host hp-proliant-1, the virtual host is hp-proliant-1-target.
To create a variable set for the HPILO component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/HPILO -name "hpProliant" \ -u admin -p admin -vars "installPath=HP-Proliant;description=Test description; \ ethernet_mac_address=00:0E:7F:FD:85:26;ethernet_ip_address=10.42.42.20; \ ethernet_netmask=255.255.255.0;architecture=x86;kernel_arch=i86pc; \ guid={4D303435-4C47-5037-3239-202020202020};disk_size=20GB;ilo_ip_address=10.5.133.166; \ ilo_version=1.6.4;ilo_access_userid=admin;ilo_access_password=" |
For more information about the variables, see HP ILO Target Host Variables.
To set up the appropriate password access, create a file that contains the following entries:
true admin123
Where:
The first line in the file corresponds to checking the “If you are specifying the ILO password below” box in plan variables section of the browser interface.
The second line in the file is the password to access ILO.
Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/hp-proliant.
To run the plan and create the target host, type a command similar to the following example:
# cat /tmp/hp-proliant | cr_cli -cmd pe.p.run -u admin -p admin \ -PID NM:/com/sun/n1osp/targets/HPILO-create -tar H:NM:masterserver-osp -comp + \ -vs hpProliant -pto 30 -nto 10 -f /tmp/hp-proliant |
Use the remotely-managed target host type to identify target hosts that do not match any of the predefined types but that have other forms of remote management, such as SunFire B100s and B100x blades. The option provides the greatest flexibility of providing information regarding a target but also requires several variables to be filled.
There are two sets of remote management information gathered for this type of target. The first set of remote management information ends with _1 suffix, and the second set ends with the _2 suffix. Each remote network management information set requires information about the type of network management and the associated hardware abstraction layer (HAL) JAR file that handles the remote network management capabilities. The HAL JAR files are located at /opt/SUNWn1osp/drivers on the OS provisioning server. You need to be aware of the services, such as power, boot and console, that is supported by each HAL JAR file. For example, the b1600sc.jar file includes support for power, boot, and console services for the Sun Fire B100s and B100x Blade series. Before you populate the variable sets for the remotely-managed host type, ensure that you are familiar with these services and the HAL JARs that support these services.
Each remote network management interface can have a terminal server connection, in which case the information about the terminal server also has to be entered. Depending on the type of network management, the network management might support power management, boot mode, and console support.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the Other Remotely-Managed Targets sub-section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the Other component row of the Plan Parameters table.
To create a new variables set, click Select from List in the Other component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Verify variables and change them, if needed.
The prompts in the component variables table are mostly self-explanatory. However, if you need more information, see the detailed list of variables, along with default values and examples in Other Remotely-Managed Target Host Variables.
Decide whether to provide passwords in the variables set or in the plan prompts.
There are two methods for providing the passwords:
Type appropriate encrypted values in the following variables:
netmgmt_password_1 |
terminal_server_access_password_1 |
netmgmt_password_2 |
terminal_server_access_password_2 |
For information about encrypting the passwords, see Password Encryption.
Leave the component variables blank and enter the password in the plan prompts provided in the plan run page.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the Other component row of the Plan Parameters table.
From the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
To encrypt the password from the plan, follow these steps on the Plan Details Run page.
Click the checkbox next to the first “If you are specifying the password below.”
Type the password to access the first network management interface in the Password to Access Management Interface 1 field.
The password encrypts as you type.
Click the checkbox next to the first “If you are specifying the terminal server password below.”
Type the password to access the first terminal server in the Password to Access Terminal Server Password 1 field.
The password encrypts as you type.
Click the checkbox next to the second “If you are specifying the password below.”
Type the password to access the second network management interface in the Password to Access Management Interface 2 field.
The password encrypts as you type.
Click the checkbox next to the second “If you are specifying the terminal server password below.”
Type the password to access the second terminal server in the Password to Access Terminal Server Password 2 field.
The password encrypts as you type.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host sunfire-b100s-1, the virtual host is sunfire-b100s-1-target.
The following CLI example creates a target host for a SunFire B100s system.
To create a variable set for the Other component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/Other -name "b100s10" \ -u admin -p admin -vars "installPath=Blade-S10;description=S10 b100s blade target; \ ethernet_mac_address=00:03:ba:29:e4:ea;ethernet_ip_address=10.216.0.11; \ ethernet_netmask=255.255.255.192;architecture=sun4u;kernel_arch=sun4u;disk_size=30GB; \ netmgmt_type_1=b1600sc;netmgmt_version_1=1.0; \ netmgmt_hal_jar_1="file:///opt/SUNWn1osp/drivers/sun/b1600sc.jar"; \ netmgmt_ip_address_1=10.216.0.60;netmgmt_protocol_1=telnet;netmgmt_port_1=s10; \ power_service_true_false_1=true;boot_service_true_false_1=true; \ console_service_true_false_1=true;netmgmt_userid_1=admin;netmgmt_password_1=Clz6pK2b6qw=" |
For more information about the variables, see Other Remotely-Managed Target Host Variables.
To set up the appropriate password access, create a file that contains the following entries:
false admin false admin false admin false admin
Where:
The first line in the file corresponds to the first “If you are specifying the password below” box in the plan variables section of the browser interface.
The second line in the file is the password to the first management interface.
The third line in the file corresponds to the first “If you are specifying the terminal server password below” box in the plan variables section of the browser interface.
The fourth line in the file is the password to the first terminal server..
The fifth line in the file corresponds to the second “If you are specifying the password below” box in the plan variables section of the browser interface.
The sixth line in the file is the password to the second management interface.
The seventh line in the file corresponds to the second “If you are specifying the terminal server password below” box in the plan variables section of the browser interface.
The eighth line in the file is the password to the second terminal server..
Make sure to name the file something useful so that you can remember it for the next step. For example, you might name the file /tmp/b100s.
To run the plan and create the target host, type a command similar to the following example:
# cat /tmp/b100s | cr_cli -cmd pe.p.run -u admin -p admin \ -PID NM:/com/sun/n1osp/targets/Other-create -tar H:NM:masterserver-osp -comp + \ -vs b100s10 -pto 30 -nto 10 -f /tmp/b100s |
You can manually power off and power on targets that do not have any remote management interfaces, such as workstations or desktop systems. To identify these targets for OS provisioning, use the Generic Target Host option.
In the Common Tasks section of the N1 SPS browser interface, select OS Provisioning.
On the OS Provisioning Common Tasks page, click Create in the Generic Targets sub-section of the Target Hosts section.
On the Plans Details page, click Run.
Choose variables to use for this plan.
To use an existing variables set, select a name from the drop-down menu in the Target component row of the Plan Parameters table.
To create a new variables set, click Select from List in the Target component row of the Plan Parameters table.
Click Create Set.
Type a name for the variables set.
Determine whether to call the OSP Control Service.
For a generic target host, pay special attention to the osp_control_service variable. If you set this variable to TRUE and the system has a manual HAL, the N1 SPS software stops and waits for you to perform the appropriate function. If you monitor the status of the installation through the status feature, the OS provisioning control service lets you know when to power off and power on the target host.
If the target host is on a private network and has no access to DHCP services, set this variable to FALSE.
Verify other variables and change them, if needed.
The other prompts in the component variables table are mostly self-explanatory. However, if you need more information, see the detailed list of variables, along with default values and examples in Generic Target Host Variables.
Save the variables set.
Select the variables set that you just saved from the drop-down menu in the Target component row of the Plan Parameters table.
On the Plan Details Run page, select the provisioning server on which to define the target host.
The host name of the OS provisioning server ends in -osp.
Click Run Plan (includes preflight).
To verify that the target host is created successfully, click the Hosts link in the left side of the N1 SPS browser interface.
You should see the name of the virtual host appended with -target. For example, if you defined a provisioning target for host sunfire-v60x, the virtual host is sunfire-v60x-target.
To create a variable set for the Target component, type a command similar to the following example:
# cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/targets/Target -name "mysystem" \ -u admin -p admin -vars "installPath=Generic;target_host=:[installPath]-target; \ description=Test description;ethernet_mac_address=00:0E:7F:FD:85:26; \ ethernet_ip_address=10.42.42.20;ethernet_netmask=255.255.255.0;architecture=x86; \ kernel_arch=i86pc;disk_size=20GB" |
For more information about the variables, see Generic Target Host Variables.
To run the plan and create the target host, type a command similar to the following example:
# cr_cli -cmd pe.p.run -u admin -p admin -PID \ NM:/com/sun/n1osp/targets/Target-create -tar H:NM:masterserver-osp -comp + \ -vs mysystem -pto 30 -nto 10 |