C H A P T E R 7 |
Configuring and Managing the Server Using the CLI |
This chapter describes how to use the Embedded Lights Out Manager (ELOM) command-line interface (CLI) to configure, manage, and maintain the server. The sections in this chapter:
The majority of the CLI configuration and management tasks are located in the following /SP namespaces:
Create, delete users, change user status, permission and password. |
||
Configure MAC address, IP address, netmask, gateway, DNS, DHCP or static, and host name. |
||
Set date and time, enable/disable NTP, designate IP address of NTP server, and view timezone list. |
||
Configure server IP address, designate update file, and intiatre update process. |
||
Configuring SNMP on the ELOM and Managing SNMP User Accounts |
Power control configuration and management tasks are available in the following /SYS namespace:
Control power, control boot and display boot status, control ID LED, and control Fault LED |
For information about using the CLI, see Appendix A.
The CLI has a timeout function that you can change. The default timeout is 300 seconds.
|
To set the CLI timeout, enter the following command:
-> set /SP/Timeout=time_in_seconds
This section describes how to add, delete, view, and configure user accounts using the CLI.
The ELOM supports up to 10 user accounts. One of those, root, is predefined and cannot be removed. Therefore, you can configure up to 9 additional accounts.
Each user account consists of a user name, a password, and a permission. For more information about user permissions, see User Accounts and Permissions Levels. TABLE 7-1 summarizes acceptable user name and password length and character set.
Do not include spaces in user names and passwords.
|
-> cd /SP/users
-> create username
username The name that the new user will use to log in to the ELOM. The system will then prompt you for a password (8-16 characters in length).
|
|
|
Use the set command to change passwords and permissions for configured user accounts.
Note - You must have administrator privileges to change user properties. |
set target [propertyname=value]
These targets, properties, and values are valid for local user accounts.
When changing the permissions for user1234 from administrator to operator, enter:
To change password for user1234, enter:
-> set /SP/users/user1234 password=password
You can display or configure the ELOM network settings from the CLI.
|
The above command displays the seven network properties:
To display individual network settings, enter:
property One of the seven network properties.
|
Use the set command to change a property’s value.
set target [propertyname=value]
These targets, properties, and values are valid for ELOM network settings.
Note - Changing the IP address will disconnect your active session if you are connected to the ELOM via a network. |
To change the IP address for the ELOM, enter:
-> set IPAddress=xxx.xxx.xxx.xxx
To set the Gateway address for the ELOM, enter:
-> set Gateway=xxx.xxx.xxx.xxx
To change the network settings from static to DHCP settings, enter:
You can set the date and time and configure an NTP server using the CLI.
|
1. Enter the following commands:
a. To set the date, enter the following command:
Where mm/dd/yyyy is the two-digit month, two-digit day, and four-digit year, respectively.
Where hh:mm:ss is the two-digit hour, two-digit minute, and two-digit seconds, respectively.
c. To enable or disable NTP, enter:
-> set NTPStatus=[enable|disable]
d. To set the IP address of the NTP server, enter:
Where ip_address is the IP address of the NTP server.
This setting is only effective if NTPStatus is set to enable (Step c).
You can use CLI to update the SP firmware. Updating the ELOM from the command line enables you to update both the firmware, and the BIOS at the same time.
|
Note - The upgrade takes about 5 minutes to complete, depending on network traffic. During this time, no other tasks can be performed in the Embedded Lights Out Manager software. |
1. Copy the combined bios/bmc image to your Tftp server.
2. If the server OS is running, perform a graceful shutdown.
3. Log in to the CLI, and navigate to the TftpUpdate directory. Enter:
Note - A network failure during the file upload will result in a timeout. This causes the SP to reboot with the prior version of the firmware. |
4. To set the IP address of the TFTP server, enter the following command:
-> set ServerIPAddress=tfp-server-ip-address
tfp-server-ip-address The IP address of the tftp server.
5. To set the file name of the combined bmc.bios image, enter the following command:
a. To set the update method to overwrite existing settings, enter:
This is the default method. It clears the CMOS, and overwrites all customized BIOS settings.
b. To set the update method to preserve existing settings, enter:
This method preserves the CMOS settings.
7. Select Yes to continue, or select No to exit.
The system is equipped with sensors that read several system critical parameters, such as voltages and temperatures (for imformation about how to view these sensors, see Viewing Server Module Sensor Information). The system monitors these sensors and creates an alert when a sensor reading crosses an upper or lower critical threshold level.
You can manage these alerts, by using the CLI to create filters that trap alerts based on the sensor type. You can then have the filters perform various preconfigured actions in response to the alert. Configuring alerts with the CLI is a two step process:
1. Configure a destination IP address in the PET.
2. Configure a platform event filter (PEF) to enable and perform various alert-triggered actions.
You manage alerts from the /SP/AgentInfo namespace, using the show and set commands. The show command allows you to display current alert property and value settings. The set command allows you to configure alert property and value settings.
Use the show command to display PET and PEF targets, properties, and values.
To display targets, properties, and target commands for PET, enter the following command:
To display targets, properties, and target commands for PEF, enter the following command:
Before configuring alerts, you might want to display a target’s current settings. This allows you to examine the current status of alerts. Use the cd command and the show command, respectively, to navigate to targets and display property values. For example:
The output of the show command appears:
-> show /SP/AgentInfo/PET Targets: Destination1 Destination2 Destination3 Destination4 Properties: Target Commands: show cd set |
Use the show command to view PET target properties.
To display properties, enter the following commands:
The result of executing the show command for the target, Destination1 appears:
-> show /SP/AgentInfo/PET/Destination1 Targets: Properties: IPAddress = 10.5.157.112 Target Commands: show set |
The first step to configuring alerts is to configure the PET IP address. After you configure the IP address, you need to configure the individual PEF filter tables. Filter tables are where you designate the specific alert-triggered actions
Use the set command to configure alerts in PET and PEF:
This target, property, and value is valid when using the set command to set the IPMI PET IP address:
To set the IP address for Destination1, enter the following commands:
-> cd /SP/AgentInfo/PET/Destination1
-> set IPAddress=xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx The IP address.
Repeat the above set command to configure the IP address for additional destination targets.
PEF Global Controls allow you to enable PEF actions globally. These settings override settings in the PEF filter table. These targets and properties are valid for configuring the global PEF controls:
1. To configure the PEF global controls, you must first enable global control by entering the following commands:
After enabling global control, you can enable global control for specific actions.
2. To enable global PEF control for a specific action, enter the following commands for each PEFActionGlobalCtrl that you want to enable:
This example shows how to enable the power reset PEF global action:
-> set PEFActionGlobalCtrlPowerReset=enable
The event filter table is where you designate the specific alert-triggered actions. You can configure up to six event filter tables. These targets, properties, and values are valid for setting the PEF:
1. To configure a PEF EventFilterTable target, enter the following commands:
The result of executing the show command appears:
By examining the output of the show command, you can view the current global control configuration. If necessary use the cd and show commands to navigate to and examine the individual event filter table targets. You will need to decide which table you are going to configure.
2. When you have decided which EventFilterTable to configure, enable the table by entering the following commands:
This example uses EventFilterTable1:
3. To display EventFilterTable1, enter the following command:
The result of executing the show command appears:
Next, set the sensor type. There are six values for the sensor type:
4. Use the set command to configure the sensor type:
For example, to set the temperature sensor, enter:
5. Use the set command to enable (or disable) actions.
For example, to set the sendalert and sendmail actions, enter:
6. When you are finished, use the show command to verify the PEF configuration:
The output from the command appears:
In the example above, EventFilterTable1 is enabled to activate the SendAlert and SendMail actions, based on temperature related alerts.
You can use the CLI to view and clear the System Event Log (SEL).
|
1. To view the SEL, navigate to the SEL namespace and execute the show command:
-> cd /SP/AgentInfo/SEL
-> show
2. To clear the SEL, navigate to the SEL namespace and use the set command and the ClearEventlog property:
-> cd /SP/AgentInfo/SEL
-> set ClearEventlog=
You can manage the console by using the start and stop commands.
|
To start a session to the server console, enter this command:
-> start /SP/AgentInfo/Console
Note - After running the start command, no output will be displayed until the server is rebooted. |
To revert to CLI once the console has been started, press Esc-Shift-9 (Esc-().
Note - Key combinations in this manual are based on the U.S. keyboard, which might differ from other keyboards. For a U.S. keyboard map, see Appendix B. |
Enter this command to terminate a server console session started by another user:
You can use the CLI to configure mail parameters, including up to 10 email recipients.
|
1. Navigate to the Mail namespace:
2. Use the set command to configure the IP address of the SMTP server and the sending server:
-> set SMTPServer=xxx.xxx.xxx
-> set Sender=xxx.xxx.xxx
xxx.xxx.xxx The IP addresses of the SMTP and sending servers.
-> set EmailAddress=xxx.xxx.xxx
xxx.xxx.xxx The IP address of the receiving server.
You can use the CLI to change the server’s state and to access the host console.
1. Navigate to the /SYS/CtrlInfo namespace:
The above example shows the available targets and properties.
a. To power on the server module, enter:
-> set /SYS/CtrlInfo PowerCtrl=on
b. To power off the server module gracefully, enter:
c. To power off the host, enter the following command:
d. To reset the server module, enter:
e. To reboot the server module and enter BIOS automatically, enter:
f. To reboot the server module, and boot using PXE, enter:
g. To reboot and enter the Pc-Check diagnostic utility, enter:
-> set BootCtrl=PCCheck_enable
h. To disable the option to reboot into Pc-Check, and boot normally, enter the following commands:
-> set BootCtrl=PCCheck_disable
-> set BootCtrl=regular
Copyright © 2008, Sun Microsystems, Inc. All Rights Reserved.