backupcfg command

Use the backupcfg command to retrieve the CLI configuration from the Chassis Management Module (CMM) or Integrated Management Module (IMM).

Synopsis

smcli backupcfg [-h | -? | --help]

smcli backupcfg [-v] { -n systemName | -o oid | -i ipaddress [-m]}

Description

The backupcfg command creates a backup of the current settings on the system and displays them in the CLI/Properties format

Operands

None.

Options

-h | -?
Displays the syntax and a brief description of the command.
Tip: If you specify additional options other than -h | -? | --help, the options are ignored.
--help
Displays detailed information about the command, including the syntax, a description of the command, a description of the options and operands, error codes, and examples.
Tips:
  • If you specify additional options other than -h | -? | --help, the options are ignored.
  • You can also display detailed help in the form of man pages using the man command_name command.
-i | --ipaddress {ip_address | host_name}[,{ip_address | host_name}...]
Targets one or more systems, specified by IP address or host name.

The list can be a mixture of IP addresses and host names, separated by a comma.

ip_address
The IP address of the system.
Tips:
  • You can enter lssys -A IP_address to list the IP address of each discovered system.
  • You can use either the IPv4 or IPv6 format to specify the IP address.
host_name
Either the host name or the host name and Domain Name System (DNS) suffix of the system. If the host name contains spaces, enclose it in quotation marks. If it contains a comma, prefix the comma with a backslash (\).
Tips:
  • You can enter lssys -A HostName to list the host name of each discovered system.
  • The host names are not locale specific.
  • A given IP address or host name might resolve multiple systems. For example, both the OperatingSystem and Server instance of a particular system will have the same host name. Use system Object ID (option -n) to target a system uniquely.
-m | {multi}
Displays configuration properties that are not specific to the device, for example the IP address.
-n | --names {system_oid | system_name}[,{system_oid | system_name}...]
Targets one or more systems specified by name or ID.

The list can be a mixture of system names and IDs, separated by a comma and containing no blank spaces.

If the -n option is not specified, then a customized event action that starts a noninteractive task on the system on which the event occurred is created. If the -n option is specified, then a customized event action that starts a noninteractive task on a specified system is created.

system_oid
The unique ID of the system, specified as a hexadecimal value prefixed with 0x (for example, 0x37) or a decimal value (for example, 123).
Tip: Use the lssys -o command to list all system IDs.
system_name
The name of the system. If the system name contains a comma, prefix the comma with a backslash (\).
Tips:
  • The system names might not be unique. This command acts on all systems with the specified name. Use the -v | --verbose option to generate a message when this command targets multiple systems with the same name. To target a particular system that has a name that is not unique, identify the system by specifying its unique, hexadecimal ID, or use additional target options to refine the selection.
  • Use the lssys command without any options to list all system names.
  • The system names are not locale specific.
-o | --oid

Displays the unique IDs associated with the targeted systems in addition to other information.

IDs are displayed as hexadecimal values, prefixed with 0x (for example, 0x3e).

Tips:
  • This option cannot be used with the -p | --pipe option.
  • You can combine this option with the -l | --long and -A | --attribute options.
-v | --verbose
Writes verbose messages to standard output.

If this option is not specified, this command suppresses noncritical messages.

Exit status

The following codes are returned by this command.
  • 0: The operation completed.
  • 1: A usage error occurred.
  • 2: The command or bundle was not found.
  • 3: The command was not performed because either authentication failed or you are not authorized to perform the action.
  • 8: Invalid command.
  • 20: Device not found.
  • 27: Invalid parameter.
  • 29: Invalid or unsupported locale.
  • 51: The operation failed.
  • 120: Internal development error which should not happen.

Example

Retrieve the CLI configuration from the CMM or IMM.

This example illustrates how to request the CLI configuration from the CMM or IMM. BSOMACKENZIE is the system name. Add a greater than sign and file name at the end to save the information to a file.
smcli backupcfg -n BSOMACKENZIE > backupconfig.txt