bmrs

bmrs — manage resources in the Bare Metal Restore database

SYNOPSIS

<nbu_dir_path>bmrs -operation delete -resource config -name configName -client clientName -resource client -name clientName -resource package -name packageName -resource srt -name srtName -resource discovertasklog -id idvalue -resource restoretasklog -id idvalue

<nbu_dir_path>bmrs -operation complete -resource discovertask -client clientName -status numericStatus -resource restoretask -client clientName -status numericStatus

<nbu_dir_path>bmrs -operation verify -resource srt -name srtName [-client clientName]

<nbu_dir_path>bmrs -operation copy -resource config -name configName -client clientName -destination newConfigName

<nbu_dir_path>bmrs -operation retrieve -resource config -client clientName -destination newConfigName [-enddate date] [-epochenddate eEnddate] [-policy policyName]

<nbu_dir_path>bmrs -operation import -resource config -path bundlePath [-client clientName] [-destination newConfigName]

<nbu_dir_path>bmrs -operation list -resource resourceName

On Windows systems, <nbu_dir_path> is <install_path>\NetBackup\bin\

DESCRIPTION

The bmrs command manages resources in the Bare Metal Restore database. The bmrs command runs only on the master server.

OPTIONS

-client clientName

Name of the Bare Metal Restore client.

-destination newConfigName

Name of the destination configuration to create.

-enddate date

The date for point-in-time restore configurations. If both -enddate and -epochenddate are specified, -epochenddate takes precedence.

The required date and time values format in NetBackup commands varies according to your locale. The /user/openv/msg/.conf file (UNIX and Linux) and the install_path\VERITAS\msg\LC.CONF file (Windows) contain information such as the date-time formats for each supported locale. The files contain specific instructions on how to add or modify the list of supported locales and formats.

More information is available about the locale of your system.

See the "Specifying the locale of the NetBackup installation" topic in the NetBackup Administrator's Guide, Volume II.

-epochenddate eEnddate

The date for the point-in-time restore configurations. This date is specified in the number of seconds since January 1, 1970. If both -enddate and -epochenddate are specified, -epochenddate takes precedence.

-id idvalue

Database record ID of the resource to use for this operation. It is either discoverTaskLogId or restoreTaskLogId.

-name value

Name of the resource to use for this operation: clientName, configName, packageName, or srtName .

-operation operationName

Possible operations are complete, copy, delete, import, list, retrieve, and verify.

-path bundlePath

Pathname to a bundle file that the bmrsavecfg command creates.

-policy policyName

Name of the policy to be used.

-resource resourceName

A resource on which to perform the operation. The allowed resources vary with operation specified. For -operation list, the following resources are supported:

bootserver
client
config
discovertask
discovertasklog
package
restoretask
restoretasklog
srt
-status numericStatus

A numeric completion status code, used internally by Bare Metal Restore.

EXAMPLES

EXAMPLE 1

List the configurations in the BMR database:

bmrs -operation list -resource config

EXAMPLE 2

Copy the current configuration (read-only) and create a new configuration (mynew) that you can edit for client aixp31:

bmrs -operation copy -resource config -name current -client aixp31 
-destination mynew

EXAMPLE 3

Delete configuration mynew for client aixp31:

bmrs -operation delete -resource config -name mynew -client aixp31

EXAMPLE 4

Verify the integrity of shared resource tree aixsrt:

bmrs -operation verify -resource srt -name aixsrt

NOTES

Specifying -? displays a synopsis of command usage when it is the only option on the command line.

If you use NetBackup Access Management and your user credentials and the machine credentials expire, renew them before you perform prepare-to-restore operations. Use the bpnbat command and -Login option to renew your user credentials. Use the bpnbat command and -LoginMachine option to renew the machine credentials.

SEE ALSO

bmrc