bmrepadm

bmrepadm — manage external procedures

SYNOPSIS

<nbu_dir_path>bmrepadm [-data] -list [pattern]

<nbu_dir_path>bmrepadm [-data] -delete procedureName

<nbu_dir_path>bmrepadm [-data] -extract procedureName

<nbu_dir_path>bmrepadm [-data] -add fileName

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

DESCRIPTION

The bmrepadm command lists, adds, extracts, or deletes external procedures from the database. The bmrepadm command is installed and run on the NetBackup master server that is licensed for BMR.

A procedure name (procedure Name) must be in the form type.os or name_type.

type is one of the following strings:

  • prediscover

  • preformat

  • prerestore

  • postrestore

  • firstboot

os is one of following strings:

  • aix

  • hp

  • linux

  • Sol

  • win

name is the name of a Bare Metal Restore client.

OPTIONS

-add pathName

Adds the external procedure in pathName to the database. The last component of pathName must be a valid external procedure Name.

-data

Manipulates an arbitrary user-supplied data file instead of an external procedure. This option also relaxes all of the naming convention rules for procedure and file name argument values. The names of data files can be anything except a valid external procedure name.

-delete procedure Name

Deletes the procedure Name external procedure from the database. The procedure Name must be a valid external procedure name.

-extract procedure Name

Extracts an external procedure from the database and writes it to the current directory. The procedure name must be a valid external procedure Name.

-list [pattern]

Lists the entries (external procedures or user-supplied data files) in the database. Only the entries that match the pattern are listed; if no pattern is specified, all entries in the database are listed. The "*" character may be used in the pattern to match any sequence of characters.

NOTES

bmrepadm does not validate client names. That is, you can add an external procedure for a nonexistent client).

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

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

EXAMPLES

EXAMPLE 1

Add a data file:

# bmrepadm -data -add nameNotMatchingEPname

EXAMPLE 2

List the data files:

# bmrepadm -data -list

EXAMPLE 3

Add an external procedure that runs for all Solaris clients after the NetBackup restore phase of restoration:

bmrepadm -add <pathname>postrestore.sol

EXAMPLE 4

Add an external procedure that runs before the disks are formatted on a client that is named zanzibar:

bmrepadm -add <pathname>zanzibar_preformat