|
Description
|
Modifies the value of configuration objects on a component. The
Set sub-command has two forms:
- The modification of a single object to a new value specified in the command line.
- The modification of multiple objects to new values using a configuration file.
It supports multi-object value import from the below configuration file format:
Depending on the type of configuration object being modified, the new values could be applied immediately (in “real-time”) or require staging and a reboot of the system to apply the new values. The following components support either real-time or staged application of new values:
The following components require staging and system reboot for application of new values:
- BIOS
- Other PowerEdge RAID controllers — For software RAID configuration
- Networking devices – Ethernet and Fibre Channel
NOTE:
- To modify the value of staged objects such as BIOS or NIC, commit and reboot job creation must be used to apply the pending values. When single object
Setoperations are used to stage value modification, use the jobqueue command to schedule a job to reboot the server and apply the new values. For staged multi-object
Setoperations using xml configuration files, a job will automatically be created by the
Set command; use the –b, -w and -s options to specify how the staged reboot will be performed. For more information, see
jobqueue.
- Import and Export of INI file type doesn't support -c option for firmware versions earlier than iDRAC 4.40.00.00.
- For more information on the
set subcommand, run the RACADM command
racadm help set.
|
|
Input
|
- <FQDD Alias>
Examples for FQDDs:
- System.Power
- System.Power.Supply
- System.Location
- LifecycleController.LCAttributes
- System.LCD
- iDRAC.Serial
- <group> — Specifies the group containing the object that must be written.
-
<object> — Specifies the object name of the value that must be written.
- <index> — This option is specified where FQDD Aliases or Groups must be indexed.
- -f <filename> — Enables set to configure the device from a specified file. This option is not supported in the Firmware RACADM interface.
- -u
— Specifies user name of the CIFS remote share from which the file must be imported
- -p — Specifies password for the remote CIFS share from which the file must be imported.
- -l
— Specifies network share location from where the file must be imported.
- -t — Specifies the file type to be imported.
The valid values are:
- xml—Imports the Server Configuration Profile in XML format either from a local or network share file.
- JSON—Specifies a JSON file.
Staging and reboot control options
The following options control when and how system reboots are performed when using the –f option. As noted above, some
FQDDs require a system reboot to apply the new values; other
FQDDs optionally support immediate application of new values. If the imported file contains ONLY immediate application-capable
FQDDs such as iDRAC, do NOT use the –b option and the Set command will schedule a real-time job to immediately apply the new values.
NOTE:The –b, -w, –s, and --preview options are applicable only with –f option.
- -b—Specifies the host shutdown type to run scheduled import job. The parameters are
Graceful,
Forced, and
NoReboot for graceful shutdown, forced shutdown, and no reboot respectively. If -b is not specified, graceful shutdown is taken as the default except as noted above for files containing new values for immediate application-capable <FQDD>s.
NOTE:If the operating system is in use, then the
graceful shutdown option may time out within 300 seconds. If this operation is unsuccessful, then retry with the
force option.
- -w—Maximum time to wait for the graceful shutdown to occur. The value must be entered in seconds. Minimum accepted value is 300 seconds and the maximum accepted value is 3600 seconds. The default value is 1800 seconds.
- -s—Power state of the host when the import operation completes. The parameters are "On" for powered ON and "Off" for powered OFF. If this parameter is not specified, power ON is taken as default.
- --preview—Validates the configuration
.xml file and view the status.
The
--preview option provides the
Job ID to verify the status of the file preview operation. The
Job ID can be tracked by running the
racadm jobqueue view –I <JID> command.
NOTE:
- The
--preview option does not restart the system.
- The-b,-w options cannot be included with the
--preview option.
- A scheduled job or pending configuration should not be running while using the
--preview option.
- -c—Specifies the FQDD or list of FQDDs separated by ',' of the components for which the configurations should be imported. If this option is not specified, configuration related to all the components are imported.
NOTE:
- To use the
-c or
--preview option, the minimum Lifecycle Controller version required is 1.2.
- On certain devices, importing the server configuration profile requires two imports to apply the configuration to all the devices. The first import of the profile enables hidden devices which are then configured with a second import. The devices that require two imports are as follows:
- --savecustomdefaults—Saves current configuration as custom default configuration.
- --customdefaults—Performs the upload of custom default configuration file. This option should not be combined with
--preview. Supports XML file type only.
This command does not support setting the proxy parameters if the share location (-l) is HTTP/HTTPS. For more information, see
Proxy parameter section.
|
|
Example
|
Single-object Set of real-time objects
-
racadm set iDRAC.Info.Name idrac-server100
Single-object Set of staged objects
Multi-object Set of real-time objects
- Configure the iDRAC using a local Server Configuration Profile XML file containing only iDRAC settings.
racadm set -f myidrac.xml -t xml
- Configure the iDRAC using a Server Configuration Profile XML file stored on an NFS share containing only iDRAC settings.
racadm set -f myidrac.xml -t xml -l 10.1.2.3:/myshare
- Import a Server Configuration Profile from a CIFS share, using only the iDRAC component.
racadm set -f file –t xml -u myuser -p mypassword -l //192.168.0/share -c iDRAC.Embedded.1
Multi-object Set of staged objects
- Configure a systems using a local Server Configuration Profile XML file containing a mix of real-time and staged objects; reboot the server gracefully with a wait time of ten minutes, leaving the server powered on after the reboot.
racadm set -f myfile.xml -t xml -b "graceful" -w 600 -s "on"
- Configure a systems using a local Server Configuration Profile XML file containing a mix of real-time and staged objects; postpone reboot until other operations have been completed.
racadm set -f myfile.xml -t xml -b NoReboot
- Verify the Server Configuration Profile XML file content located in a remote CIFS share.
racadm set -f temp_Configuration_file -t xml -u Administrator -p Password -l //192.168.0/xyz –preview
- Configure a RAC from an XML configuration file located on a remote FTP share.
racadm set -f myfile.xml -t xml -u username -p password -l ftp://192.168.10.24/
- Configure a RAC from a JSON configuration file located on a remote FTP share.
racadm set -f myfile.xml -t json -u httpsuser -p httpspwd -l ftp://192.168.10.24/
- Configure a RAC from an XML configuration file located on a remote TFTP share.
racadm set -f myfile.xml -t xml -l tftp://192.168.10.24/
- Configure a RAC from a JSON configuration file located on a remote TFTP share.
racadm set -f myfile.xml -t json -l tftp://192.168.10.24/
- Configure a RAC from an XML configuration file located on a remote HTTP share.
racadm set -f myfile.xml -t xml -u httpuser -p httppwd -l http://test.com/myshare
- Configure a RAC from an XML configuration file located on a remote HTTPS share.
racadm set -f myfile.xml -t xml -u httpsuser -p httpspwd -l https://test.com/myshare
- Configure a RAC from a JSON configuration file located on a remote HTTPS share.
racadm set -f myfile.xml -t json -u httpsuser -p httpspwd -l https://test.com/myshare
- Configure the proxy parameter.
racadm set lifecyclecontroller.lcattributes.UserProxyUsername admin1
- Remove the proxy parameter.
racadm set lifecyclecontroller.lcattributes.UserProxyUsername
- Upload the custom default XML configuration file located on NFS share to RAC.
racadm set -f myfile.xml -t xml -l share_ip:/PATH --customdefaults
- Save current configuration as custom default configuration.
racadm set --savecustomdefaults
|