CLI Guide
Table 12. Details of config (continued)
• -f — The -f < filename > option causes config to read the contents of the file specified by <
filename > and configure CMC.
NOTE: When the –f option is specified and configuration of an attribute fails, then
configuration of other attributes in that group is skipped.
• -p — This option must be used with the -f option. It directs config to delete the password
entries contained in the config file -f < filename > after the configuration is complete.
To apply the password, you must remove the preceding Read-Only marker '#' in the config file
before running the config -f command.
• -g — The -g < groupName >, or group option, must be used with the -o option. The <
groupName > specifies 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 specifies 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 specified,
a value of 1 is assumed for groups, which are tables that have multiple entries. The index is
specified by the index value, not a named value.
• -c — The -c or check option, is used with the config subcommand and allows the user to
parse the .cfg file 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 configuration objects that were written out
of the total objects in the .cfg file.
Examples • racadm config -g cfgLanNetworking -o cfgNicIpAddress 192.168.0.1.
Sets the cfgNicIpAddress configuration parameter (object) to the value 192.168.0.1. This IP
address object is contained in the cfgLanNetworking group.
• racadm config -f myrac.cfg.
Configures or reconfigures CMC. The myrac.cfg file may be created from the getconfig
command. This file may also be edited manually as long as the parsing rules are followed.
NOTE: The myrac.cfg file does not contain passwords. To include passwords in the file,
you must enter them manually. If you want to remove password information from the
myrac.cfg file during configuration, use the -p option.
connect
Table 13. Details of connect
Description Connects to the switch or server serial console.
Synopsis • racadm connect [-b] —m <module>
• racadm connect [-b] <server-n>
• racadm connect [-b] <switch-n>
Input -b — Connects to the switch or console using the binary mode. This is an optional argument; a
server or a switch must be present.
NOTE: If you use the -b option, reset the CMC to terminate the connect operation.
• server-<n>: where n = 1 to 4
24 RACADM Subcommand Details