Reference Guide
cong
Table 13. Cong
Description Allows you to set CMC conguration parameters individually or to batch them as part of a conguration le. If
the data is dierent, that CMC object is written with the new value.
Synopsis
racadm config [-c|-p] -f <filename>
racadm config -g <groupName> -o <objectName> [-i
<
index>] <Value>
NOTE: The conguration le retrieved using remote racadm are not interoperable. For the cong -f
<
le name
> command, use the conguration le retrieved from the same interface.
Input
NOTE: The -f and -p options are not supported for the serial/Telnet/SSH console.
• -f — The -f <lename> option causes cong to read the contents of the le specied by <lename> and
congure CMC.
• -p— This option must be used with the -f option. It directs cong to delete the password entries
contained in the cong le -f <lename> after the conguration is complete.
To apply the password, you must remove the preceding Read-Only marker '#' in the cong le before
executing the cong -f command.
• -g— The -g <groupName>, or group option, must be used with the -o option. The <groupName>
species the group containing the object that is to be set.
• -o — The -o <objectName> <Value>, or object option, must be used with the -g option. This option
species the object name that is written with the string <value>.
• -i — The -i <index>, or index option, is valid only for indexed groups and can be used to specify a unique
group. The <index> is a decimal integer from 1 through n, where n can vary from 1 to maximum number of
indexes a particular group supports. If -i <index> is not specied, a value of 1 is assumed for groups, which
are tables that have multiple entries. The index is specied by the index value, not a named value.
• -c — The -c, or check option, is used with the cong subcommand and allows the user to parse the .cfg
le to locate syntax errors. If issues are found, the line number and a short description about the issue is
displayed. This option is a check-only.
Output This subcommand generates error output for any of the following reasons:
• Invalid syntax, group name, object name, index, or other invalid database members.
• RACADM CLI failures.
This subcommand returns an indication of the number of conguration objects that were written out of the
total objects in the .cfg le.
Examples
• racadm config -g cfgLanNetworking -o cfgNicIpAddress 192.168.0.5.
Sets the cfgNicIpAddress conguration parameter (object) to the value 192.168.0.5. This IP address
object is contained in the cfgLanNetworking group.
• racadm config -f myrac.cfg.
Congures or recongures CMC. The myrac.cfg le may be created from the getcong command. This
le may also be edited manually as long as the parsing rules are followed.
NOTE: The myrac.cfg le does not contain passwords. To include passwords in the le, you must
enter them manually. If you want to remove password information from the myrac.cfg le during
conguration, use the -p option.
26