bpplclients

bpplclients — administer clients within NetBackup policies

SYNOPSIS

<admin_dir_path>bpplclients

<admin_dir_path>bpplclients policy_name | -allunique [-pt policy_type] [-L | -l | -U | -noheader] [-M master_server,...] [-v]

<admin_dir_path>bpplclients policy_name [-M master_server,...] [-v] -add host_name hardware os [-priority priority]

<admin_dir_path>bpplclients policy_name [-M master_server,...] [-v] -delete host_name ...

<admin_dir_path>bpplclients policy_name [-M master_server,...] [-v] -modify host_name [-hardware hardware] [-os os] [-priority priority]

<admin_dir_path>bpplclients policy_name -rename old_client_name new_client_name [-os os] [-hardware hardware]

On Windows systems, <admin_dir_path> is <install_path>\NetBackup\bin\admincmd\

DESCRIPTION

bpplclients does one of the following:

  • Produce a listing of clients.

  • Add a new client to a policy.

  • Delete a list of clients from a policy.

  • Modify an existing client in a policy.

For the -add, -delete, and -modify options, bpplclients returns to the system prompt immediately after it submits the client change request to NetBackup. To determine whether the change was successful, run bpplclients again to list the updated client information.

When the listing option is used, the list is ordered alphabetically by client name. Each client entry is on a single line, with a single entry for each client.

Authorized users can initiate this command.

For more information about NetBackup authorization, refer to the NetBackup Security and Encryption Guide.

OPTIONS

bpplclients consists of two forms. The bpplclients form that you use determines the options that you use with bpplclients.

The first form of bpplclients has no options and produces a listing of information about the clients for all policies.

The second form of bpplclients produces a listing of information about the clients for a single policy or for all policies. The following options apply to this form:

-add host_name hardware os [priority]

Add a client to the policy. If the local system has defined the maximum number of clients already, an error is returned. The maximum number of clients is unlimited (the installation default) for NetBackup Enterprise Server and 4 for NetBackup Server. Specify the host name, hardware type, and operating system (see the definitions section). (priority is not implemented at this time)

-delete host_name ...

Delete one or more clients from the policy. Up to 20 clients can be deleted at a time. The clients are provided as a space-delimited list of host names.

-hardware hardware

The hardware type of this client. In the dialog box for adding clients to a policy with the Backup Policy Management utility, select one of the hardware types.

-L

List in long format. No two-line header appears at the top of the listing; the header is embedded in the line for each client. The line for each client includes the following fields:

Client/HW/OS/Pri: (the header)

Client name

Hardware type

Operating system

Priority

Ignore the four additional fields. They are either unused or used for internal processes.

-l

List in short format; this option produces a terse listing. It also is called raw output mode. No two-line header appears at the top of the listing; the header is embedded in the line for each client. The line for each client includes the following fields:

CLIENT (the header)

Client name

Hardware type

Operating system

Priority

You can ignore the four additional fields. They are either unused or used for internal processes.

This option is useful for scripts or the programs that rework the listing contents into a customized report format.

-M master_server,...

Lists alternative master servers. This option consists of a comma-delimited list of host names. If this option is present, each master server in the list runs the bpplclients command. Each master server in the list must allow access by the system that issues the bpplclients command. If an error occurs for any master server, the process stops at that point.

If bpplclients produces a list, the list is the composite of the returned information from all the master servers in this list.

If bpplclients adds, deletes, or modifies a client (explained later), the change is made on all the master servers in this list.

-modify host_name ...

Modify the attributes for a client within a policy. The client was added to the policy previously. The attribute values follow the client name and replace the previous equivalent attribute values for this client. You must modify at least one of the client's attributes. -priority is not implemented at this time.

-noheader

List without any header. The listing consists of one line for each client, which contains the hardware type, operating system, and client name.

-os os

Specifies a different operating system for the client. In the dialog box for adding clients to a policy with the Backup Policy Management utility, select one of the operating systems.

The values that you choose for the hardware and the os options must form a valid combination.

policy_name

Change the client information for this policy. This option must be the first option on the command line.

policy_name | -allunique [-pt policy_type]

policy_name specifies the name of a policy. It lists client information only for the policy with this name.

-allunique without [-pt policy_type] lists client information for all policies that are defined for NetBackup on the master server.

If you use -allunique -pt policy_type, where policy_type is a specific policy type (such as Sybase), the following occurs: The command lists the client information only for the clients that belong to that type of policy.

If the command line contains neither the policy_type nor -allunique option, the listing contains client information for all policies.

If you use this option, it must be the first option on the command line.

-pt policy_type

Specify the policy type by entering one of the following character strings (the default is Standard):

Informix-On-BAR
Lotus-Notes
MS-Exchange-Server
MS-SharePoint
MS-SQL-Server
MS-Windows-NT
NDMP
NetWare
Oracle
OS/2
Standard
Sybase

The following policy types apply only to NetBackup Enterprise Server:

AFS
DataTools-SQL-BackTrack
DB2
Enterprise-Vault
FlashBackup
FlashBackup-Windows
SAP
Split-Mirror
Vault
-priority priority

Not implemented.

policy_name

The policy that has the client. This option must be the first option on the command line.

-rename old_client_name new_client_name

old_client_name specifies the current name of the client and new_client_name specifies the new name.

-U

Lists in user format. The listing consists of one line for each client, which contains the hardware type, operating system, and client name. A two-line header begins the listing. This option is the default format for the listing.

-v

Selects the verbose mode. This option causes bpplclients to log additional information for debugging purposes. The information goes into the NetBackup administration daily debug log. This option is meaningful only when you enable the debug log function (that is, when the following directory is defined):

Windows systems: install_path\NetBackup\logs\admin

This option must precede the -add, -delete, or -modify option on the command line.

EXAMPLES

EXAMPLE 1

While the master server runs, list the clients that are known to the master server.

# bpplclients
Hardware		 OS			 Client
---------------  ---------------  --------------
Novell		 Novell 6.5	 marge
Windows-x64	Windows2008	marmot
HP9000-800	 HP-UX 11.23	squash
Windows-x64	Windows2008	tigers

This command can also be entered on a client named hatt, with the same results.

EXAMPLE 2

List the defined clients for the policy onepolicy:

# bpplclients onepolicy
Hardware		 OS			 Client
---------------  ---------------  --------------
Solaris		Solaris10		jeckle
RS6000		 AIX5			 streaky
HP9000-800	 HP-UX 11.23	chilly
HP9000-800	 HP-UX 11.31	shark

EXAMPLE 3

Add the client marmot to the policy twopolicy on the master servers serv1 and serv2. The hardware type for lynx is HP9000; the operating system is HP-UX 11.23. The default priority is used. (The command is all on one line.)

# bpplclients twopolicy -M serv1,serv2 -add lynx HP9000 HP-UX 11.23

EXAMPLE 4

Delete the clients marmot and vole from the policy twopolicy on the master servers serv1 and serv2. (The command is all on one line.)

# bpplclients twopolicy -M serv1,serv2 -delete marmot vole

EXAMPLE 5

While the master server hatt runs, list client information for policy BackTrack on the master server beaver:

# bpplclients BackTrack -M beaver
Hardware		 OS			 Client
---------------  ---------------  --------------
Solaris		Solaris10		saturn

EXAMPLE 6

Assume that you have a policy that is called my_policy with one defined client. The client name is pear, the operating system is Solaris 10, and the hardware type is Solaris.

# bpplclients my_policy -rename pear apple -os MacOS -hardware Mac

This command changes the client name pear in my_policy to apple. It also changes the os from Solaris to MacOS and hardware from Solaris to Mac.

RETURN VALUES

An exit status of zero (0) means that the command ran successfully.

Any exit status other than zero (0) means that an error occurred.

If the administrative log function is enabled, the exit status is logged in the administrative daily log under the log directory:

Windows systems: install_path\NetBackup\logs\admin

It has the following form:

	bpplclients: EXIT status = exit status

If an error occurred, a diagnostic precedes this message.

FILES

Windows systems:

install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\policy\policy_name\clients

SEE ALSO

bpadm (UNIX and Linux systems), bpplinfo