bmrc

bmrc — submit requests to the Bare Metal Restore server daemon

SYNOPSIS

<nbu_dir_path>bmrc -operation change -resource { restoretask | discovertask } [-client clientName] -state numericCode -progress numericCode

<nbu_dir_path>bmrc -operation complete -resource { restoretask | discovertask } [-client clientName] -state numericStateCode

<nbu_dir_path>bmrc -operation create -resource log [-client clientName]

<nbu_dir_path>bmrc -operation create -resource message [-client clientName] -msg messageText

<nbu_dir_path>bmrc -operation pull -resource { info | procedure } [-client clientName] -source sourceFileName -destination destinationFileName

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

DESCRIPTION

The bmrc client program runs on a Bare Metal Restore (BMR) client and submits requests to the BMR server daemon. The operation and resource are specified as arguments.

When you initiate bmrc from an external procedure in the repair environment on a restoring client, specify the path to the bmrc command as follows:

On Windows systems, %SystemDrive%\BMR\NBU\bin

At the first boot external procedure point, bmrc is in install_path\NetBackup\bin.

OPTIONS

-client clientName

Name of the Bare Metal Restore client.

-destination destinationFileName

On pull operation, the pathname of the file to be created on the local host.

-msg messageText

Text message to be added to the log on the server.

-operation operationName

An operation to perform:

change
complete
create
pull
-progress numericCode

A numeric progress code that is used internally by Bare Metal Restore.

-resource resourceName

A resource on which to perform the operation:

discovertask
info
log
message
procedure
restoretask
-source sourceFileName

On pull operation, name of file to retrieve from database.

-state numericCode

A numeric state code that is used internally by Bare Metal Restore.

EXAMPLES

EXAMPLE 1

Change the status of a discovery task:

# bmrc -operation change -resource discovertask -client clientName 
-state numericCode -progress numericCode

EXAMPLE 2

Change the status of a restore task:

# bmrc -operation change -resource restoretask -client clientName 
-state numericCode -progress numericCode

EXAMPLE 3

Complete a discovery task and set a final status code:

# bmrc -operation complete -resource discovertask -client clientName 
-status numericStatus

EXAMPLE 4

Complete a restore task and set a final status code:

# bmrc -operation complete -resource restoretask -client clientName 
-status numericStatus

EXAMPLE 5

Create a log on the server from standard input to this command:

# bmrc -operation create -resource log -client clientName

EXAMPLE 6

Create a message, which is added to a log on the server:

# bmrc -operation create -resource message -client clientName -msg 
message text

EXAMPLE 7

Pull a file from the server:

# bmrc -operation pull -resource info -client clientName -source 
sourceFileName -destination destinationFileName

EXAMPLE 8

Pull an external procedure from the server:

# bmrc -operation pull -resource procedure -client clientName 
-source sourceFileName -destination destinationFileName

NOTES

If you use NetBackup Access Management and the user credentials and computer credentials are expired, 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 computer credentials.

Specifying -? displays the command's usage statement when it is the only option on the command line.