NetBackup Commands
NetBackup Commands
Release 7.1
21159692
Legal Notice
Copyright 2011 Symantec Corporation. All rights reserved.
Symantec and the Symantec Logo are trademarks or registered trademarks of Symantec
Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks
of their respective owners.
This Symantec product may contain third party software for which Symantec is required
to provide attribution to the third party (Third Party Programs). Some of the Third Party
Programs are available under open source or free software licenses. The License Agreement
accompanying the Software does not alter any rights or obligations you may have under
those open source or free software licenses. Please see the Third Party Legal Notice Appendix
to this Documentation or TPIP ReadMe File accompanying this Symantec product for more
information on the Third Party Programs.
The product described in this document is distributed under licenses restricting its use,
copying, distribution, and decompilation/reverse engineering. No part of this document
may be reproduced in any form by any means without prior written authorization of
Symantec Corporation and its licensors, if any.
THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,
ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO
BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL
OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING,
PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED
IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights in
Commercial Computer Software or Commercial Computer Software Documentation", as
applicable, and any successor regulations. Any use, modification, reproduction release,
performance, display or disclosure of the Licensed Software and Documentation by the U.S.
Government shall be solely in accordance with the terms of this Agreement.
Symantec Corporation
350 Ellis Street
Mountain View, CA 94043
http://www.symantec.com
Printed in the United States of America.
10 9 8 7 6 5 4 3 2 1
Technical Support
Symantec Technical Support maintains support centers globally. Technical
Supports primary role is to respond to specific queries about product features
and functionality. The Technical Support group also creates content for our online
Knowledge Base. The Technical Support group works collaboratively with the
other functional areas within Symantec to answer your questions in a timely
fashion. For example, the Technical Support group works with Product Engineering
and Symantec Security Response to provide alerting services and virus definition
updates.
Symantecs support offerings include the following:
A range of support options that give you the flexibility to select the right
amount of service for any size organization
For information about Symantecs support offerings, you can visit our Web site
at the following URL:
www.symantec.com/business/support/
All support services will be delivered in accordance with your support agreement
and the then-current enterprise technical support policy.
Hardware information
Operating system
Network topology
Problem description:
Customer service
Customer service information is available at the following URL:
www.symantec.com/business/support/
Customer Service is available to assist with non-technical questions, such as the
following types of issues:
Contents
Introduction .......................................................................... 13
About NetBackup commands ..........................................................
Navigating multiple menu levels .....................................................
NetBackup command conventions ...................................................
NetBackup Media Manager command notes ......................................
Appendix A
13
14
14
15
24
26
27
29
31
34
39
42
45
48
50
52
53
58
66
67
68
71
72
73
75
79
85
88
91
95
Contents
bpconfig ..................................................................................... 97
bpdbjobs ................................................................................... 108
bpdbm ...................................................................................... 116
bpdgclone ................................................................................ 119
bpdown .................................................................................... 121
bpduplicate ............................................................................... 122
bperror ..................................................................................... 131
bpexpdate ................................................................................. 140
bpfis ........................................................................................ 147
bpgetconfig ............................................................................... 151
bpgetdebuglog ........................................................................... 155
bpimage .................................................................................... 156
bpimagelist ............................................................................... 160
bpimmedia ................................................................................ 168
bpimport .................................................................................. 179
bpinst ....................................................................................... 186
bpkeyfile ................................................................................... 193
bpkeyutil .................................................................................. 195
bplabel ..................................................................................... 197
bplist ....................................................................................... 200
bpmedia ................................................................................... 208
bpmedialist ............................................................................... 212
bpminlicense ............................................................................. 224
bpnbat ...................................................................................... 227
bpnbaz ..................................................................................... 234
bppficorr .................................................................................. 249
bpplclients ................................................................................ 251
bppldelete ................................................................................. 258
bpplinclude ............................................................................... 260
bpplinfo .................................................................................... 266
bppllist ..................................................................................... 278
bpplsched ................................................................................. 280
bpplschedrep ............................................................................. 293
bppolicynew .............................................................................. 301
bpps ........................................................................................ 309
bpps ........................................................................................ 313
bprd ........................................................................................ 314
bprecover .................................................................................. 316
bprestore .................................................................................. 319
bpschedule ................................................................................ 333
bpschedulerep ........................................................................... 340
bpsetconfig ............................................................................... 346
bpstsinfo .................................................................................. 348
Contents
bpstuadd ...................................................................................
bpstudel ...................................................................................
bpstulist ...................................................................................
bpsturep ...................................................................................
bptestbpcd ................................................................................
bptestnetconn ............................................................................
bptpcinfo .................................................................................
bpup ........................................................................................
bpverify ....................................................................................
cat_convert ...............................................................................
create_nbdb ..............................................................................
duplicatetrace ............................................................................
importtrace ...............................................................................
jbpSA ......................................................................................
jnbSA ......................................................................................
ltid ..........................................................................................
nbauditreport ............................................................................
nbcatsync .................................................................................
NBCC .......................................................................................
NBCCR .....................................................................................
nbcertupdater ............................................................................
nbcplogs ..................................................................................
nbdb_admin ..............................................................................
nbdb_backup .............................................................................
nbdb_move ................................................................................
nbdb_ping .................................................................................
nbdb_restore .............................................................................
nbdb_unload ..............................................................................
nbdbms_start_server ..................................................................
nbdbms_start_stop ....................................................................
nbdc .........................................................................................
nbdecommission ........................................................................
nbdelete ...................................................................................
nbdeployutil ..............................................................................
nbdevconfig ..............................................................................
nbdevquery ...............................................................................
nbdna .......................................................................................
nbemm .....................................................................................
nbemmcmd ...............................................................................
nbexecute .................................................................................
nbfirescan .................................................................................
nbftadm ...................................................................................
nbftconfig .................................................................................
354
364
367
374
383
386
390
395
396
404
410
412
415
419
421
423
425
429
432
437
439
443
447
450
451
453
454
455
457
458
459
462
464
467
473
484
489
493
494
510
512
513
514
10
Contents
nbhba ......................................................................................
nbjm ........................................................................................
nbkmsutil .................................................................................
nbpem ......................................................................................
nbpemreq .................................................................................
nbrb .........................................................................................
nbrbutil ....................................................................................
nbregopsc .................................................................................
nbreplicate ...............................................................................
nbstl ........................................................................................
nbstlutil ....................................................................................
nbsu ........................................................................................
nbsvrgrp ...................................................................................
restoretrace ...............................................................................
tl4d ..........................................................................................
tl8d ..........................................................................................
tl8cd ........................................................................................
tldd ..........................................................................................
tldcd ........................................................................................
tlhd ..........................................................................................
tlhcd ........................................................................................
tlmd .........................................................................................
tpautoconf ................................................................................
tpclean .....................................................................................
tpconfig ....................................................................................
tpext ........................................................................................
tpreq ........................................................................................
tpunmount ................................................................................
verifytrace ................................................................................
vltadm .....................................................................................
vltcontainers .............................................................................
vlteject .....................................................................................
vltinject ....................................................................................
vltoffsitemedia ..........................................................................
vltopmenu ................................................................................
vltrun .......................................................................................
vmadd ......................................................................................
vmadm ....................................................................................
vmchange .................................................................................
vmcheckxxx ..............................................................................
vmd ........................................................................................
vmdelete ...................................................................................
vmoprcmd ................................................................................
524
527
528
532
534
538
539
544
546
548
555
563
569
572
574
576
580
584
588
592
596
600
603
606
609
626
627
630
632
635
636
641
645
647
651
653
658
661
663
670
672
674
676
Contents
vmphyinv .................................................................................
vmpool .....................................................................................
vmquery ...................................................................................
vmrule .....................................................................................
vmupdate ..................................................................................
vxlogcfg ....................................................................................
vxlogmgr ..................................................................................
vxlogview .................................................................................
681
685
688
693
696
699
707
712
11
12
Contents
Chapter
Introduction
This chapter includes the following topics:
14
Introduction
Navigating multiple menu levels
Move your cursor to the right. First highlight and then click NetBackup
Administration Console.
The -help (-h) option prints a command line usage message when it is the
only option on the command line. For example:
bpclient -help
A vertical bar (or the pipe symbol) | separates optional arguments from which
the user can choose. For example, if a command has the following format, you
can choose arg1 or arg2 (but not both):
command [ arg1 | arg2 ]
Italics indicate that the information is user supplied. For example, the user
supplies policy, schedule, and filename in the following command:
bpbackup -p policy -s schedule filename
Introduction
NetBackup Media Manager command notes
An ellipsis (...) means that you can repeat the previous parameter. For example,
consider the following command:
bpbackup [-S master_server [,master_server,...]] filename
Here, the -S option requires the first master server name. Additional names
can be added, separated by commas and followed by a file name as in:
bpbackup -S mars,coyote,shark,minnow memofile.doc
tpreq and tpunmount are user commands for requesting tape mounts and
15
16
Introduction
NetBackup Media Manager command notes
Appendix
NetBackup Commands
This appendix includes the following topics:
acsd
add_media_server_on_clients
backupdbtrace
backuptrace
bmrc
bmrconfig
bmrepadm
bmrprep
bmrs
bmrsrtadm
bp
bpadm
bparchive
bpbackup
bpbackupdb
bpcatarc
bpcatlist
bpcatres
18
NetBackup Commands
bpcatrm
bpcd
bpchangeprimary
bpclient
bpclimagelist
bpclntcmd
bpclusterutil
bpcompatd
bpconfig
bpdbjobs
bpdbm
bpdgclone
bpdown
bpduplicate
bperror
bpexpdate
bpfis
bpgetconfig
bpgetdebuglog
bpimage
bpimagelist
bpimmedia
bpimport
bpinst
bpkeyfile
bpkeyutil
bplabel
NetBackup Commands
bplist
bpmedia
bpmedialist
bpminlicense
bpnbat
bpnbaz
bppficorr
bpplclients
bppldelete
bpplinclude
bpplinfo
bppllist
bpplsched
bpplschedrep
bppolicynew
bpps
bpps
bprd
bprecover
bprestore
bpschedule
bpschedulerep
bpsetconfig
bpstsinfo
bpstuadd
bpstudel
bpstulist
19
20
NetBackup Commands
bpsturep
bptestbpcd
bptestnetconn
bptpcinfo
bpup
bpverify
cat_convert
create_nbdb
duplicatetrace
importtrace
jbpSA
jnbSA
ltid
nbauditreport
nbcatsync
NBCC
NBCCR
nbcertupdater
nbcplogs
nbdb_admin
nbdb_backup
nbdb_move
nbdb_ping
nbdb_restore
nbdb_unload
nbdbms_start_server
nbdbms_start_stop
NetBackup Commands
nbdc
nbdecommission
nbdelete
nbdeployutil
nbdevconfig
nbdevquery
nbdna
nbemm
nbemmcmd
nbexecute
nbfirescan
nbftadm
nbftconfig
nbhba
nbjm
nbkmsutil
nbpem
nbpemreq
nbrb
nbrbutil
nbregopsc
nbreplicate
nbstl
nbstlutil
nbsu
nbsvrgrp
restoretrace
21
22
NetBackup Commands
tl4d
tl8d
tl8cd
tldd
tldcd
tlhd
tlhcd
tlmd
tpautoconf
tpclean
tpconfig
tpext
tpreq
tpunmount
verifytrace
vltadm
vltcontainers
vlteject
vltinject
vltoffsitemedia
vltopmenu
vltrun
vmadd
vmadm
vmchange
vmcheckxxx
vmd
NetBackup Commands
vmdelete
vmoprcmd
vmphyinv
vmpool
vmquery
vmrule
vmupdate
vxlogcfg
vxlogmgr
vxlogview
23
24
NetBackup Commands
acsd
acsd
acsd Automated Cartridge System (ACS) daemon (UNIX) or process (Windows)
SYNOPSIS
acsd [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
acsd interfaces with Media Manager to mount and unmount tapes automatically
that are under Automated Cartridge System (ACS) control. If the Media and Device
Management of the Administration Console shows drives in an ACS robot, the
ltid NetBackup Device Manager daemon or service (Windows) runs acsd. Stopping
ltid stops acsd.
On UNIX and Linux systems, start or stop acsd independently of ltid by using
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the acsd
process ID. Then enter the following commands:
kill acsd_pid
/usr/openv/volmgr/bin/acsd [-v] &
acsd performs its tasks by sending requests to the ACS storage server Interface
process (acsssi). It communicates with the server that controls the ACS.
On Windows systems, acsd performs its tasks by sending requests to the STK
LibAttach service, which communicates with the server that controls the ACS.
When the connection is established, acsd puts the ACS robot in the UP state and
can mount and unmount tapes. If the connection cannot be established or ACS
errors exist, acsd changes the robot to the DOWN state. In this state, acsd still
runs and returns the robot to the UP state when the problem no longer exists.
Use the following to address and define drives in the Media Manager: ACS number,
LSM number, Panel number, and Drive number.
Configure drive cleaning for ACS robots by using ACS library software. You cannot
define the cleaning volumes by using Media Manager. In addition, you cannot use
the tpclean command for cleaning operations on drives under ACS robotic control.
NetBackup Commands
acsd
On UNIX and Linux systems, the Internet service port number for acsd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the file
/usr/openv/volmgr/database/ports/acsd with a single line that contains the
service port number for acsd. The default service port number is 13702.
On Windows systems, the Internet service port number for acsd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the file install_path\Volmgr\database\ports\acsd with a single line
that contains the service port number for acsd. The default service port number
is 13702.
Note: This command applies only to the NetBackup Enterprise Server.
OPTIONS
-v
This option is used on UNIX and Linux systems only. It logs debug information
using syslogd. If you start ltid with -v, acsd also starts with -v.
ERRORS
On UNIX and Linux systems, acsd returns an error message if a copy of acsd is
in operation. Media Manager logs ACS and network errors to syslogd. Log entries
are also made when the state changes between UP and DOWN. acsssi logs to a
log file in the /usr/openv/volmgr/debug/acsssi directory.
On Windows systems, Media Manager logs ACS and network errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
SEE ALSO
See ltid on page 423.
See tpconfig on page 609.
See vmadm on page 661.
25
26
NetBackup Commands
add_media_server_on_clients
add_media_server_on_clients
add_media_server_on_clients add media server on clients
SYNOPSIS
add_media_server_on_clients
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
Run the add_media_server_on_clients command from a NetBackup server to
synchronize the server list from the servers configuration with the server lists
on the known clients.
The add_media_server_on_clients command tries to connect to all configured
clients (clients that are listed in backup policies).
For each client to which it can connect, add_media_server_on_clients updates
the clients configuration (if necessary) to include all the servers from the servers
configuration.
NetBackup Commands
backupdbtrace
backupdbtrace
backupdbtrace trace debug logs of backupdb (image catalog backup) jobs
SYNOPSIS
backupdbtrace [-server name] [-job_id number] [-start_time hh:mm:ss]
[-end_time hh:mm:ss] mmddyy [mmddyy ...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The backupdbtrace utility consolidates the debug log messages for the specified
backup database jobs and writes them to standard output. It then sorts them by
time. backupdbtrace tries to compensate for time zone changes and the clock
drift between remote servers and clients.
At a minimum, you must enable debug logging for the administrator on the master
server and for bptm and bpbkar on the media server. For best results, set the
verbose logging level to 5. Then enable the debug logging for the following in
addition to the processes already identified:
backupdbtrace uses the -job_id option as the sole criterion for selecting the
backupdb job to trace. If -job_id is not used, then backupdbtrace selects all the
backupdb jobs that started on the days that the day stamps (mmddyy) specified.
Use the -start_time and -end_time options to examine the debug logs on the
specified time interval.
backupdbtrace writes error messages to standard error.
OPTIONS
-server
Name of the media server where the backupdb command is initiated. The
default is the local host name.
-job_id
Job ID number of the backupdb job to analyze. Default is any job ID.
27
28
NetBackup Commands
backupdbtrace
-start_time
One or more day stamps. This option identifies the log file names (log.mmddyy
for UNIX, mmddyy.log for Windows) to analyze.
OUTPUT FORMAT
The following is the format of an output line:
<daystamp>.<millisecs>.<program>.<sequence> <computer> <log_line>
daystamp
EXAMPLES
Example 1 - This example analyzes the log of a backupdb job with job ID 5 run on
May 6, 2009.
# backupdbtrace -job_id 5 050609
Example 2 - This example analyzes the log of all the backupdb jobs that were run
on August 5, 2009 and August 17, 2009.
# backupdbtrace 080507 081709
NetBackup Commands
backuptrace
backuptrace
backuptrace consolidate the debug logs for a NetBackup job
SYNOPSIS
backuptrace [-master_server name] [-job_id number] [-birth_time
number] [-policy_name name] [-client_name name] [-start_time hh:mm:ss]
[-end_time hh:mm:ss] mmddyy [mmddyy...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The backuptrace utility consolidates the debug logs for specified NetBackup job
or jobs. The debug log messages relevant to the specified backup jobs are written
to standard output. Then the messages sort by time. The backuptrace utility tries
to compensate for time zone changes and the clock drift between remote servers
and clients. The output is formatted so that you can more easily sort or group by
timestamp, program name, server name, or client name.
At a minimum, you must enable debug logging for the following:
For best results, set the verbose logging level to 5 and enable debug logging for
the following in addition to the processes already identified:
Use the backuptrace utility for regular file system, database extension, and
alternate backup method backup jobs.
OPTIONS
-master_server name
29
30
NetBackup Commands
backuptrace
-job_id number
One or more day stamps. This option identifies the log file names (log.mmddyy
for UNIX, mmddyy.log for Windows) to analyze.
NOTES
Media Manager logs are not analyzed.
EXAMPLES
/usr/openv/netbackup/bin/admincmd/backuptrace -job_id 289
041105 > /tmp/job.log.289
C:\Program Files\VERITAS\NetBackup\bin\admincmd\backuptrace
policy weekly_bkups 051205 >/tmp/jobs.weekly_bkups
Use this utility to consolidate logs for all jobs that are started for the policy
weekly_bkups on the specified date. Use the -start_time/-end_time arguments
to limit the window for which the jobs are to be evaluated.
NetBackup Commands
bmrc
bmrc
bmrc submit requests to the Bare Metal Restore server daemon
SYNOPSIS
bmrc -operation change -resource { restoretask | discovertask }
[-client clientName] -state numericCode -progress numericCode
bmrc -operation complete -resource { restoretask | discovertask }
[-client clientName] -state numericStateCode
bmrc -operation create -resource log [-client clientName]
bmrc -operation create -resource message [-client clientName] -msg
messageText
bmrc -operation pull -resource { info | procedure } [-client
clientName] -source sourceFileName -destination destinationFileName
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command 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 UNIX and Linux systems, /usr/openv/netbackup/bin
On Windows systems, %SystemDrive%\BMR\NBU\bin
At the first boot external procedure point, bmrc is in install_path\NetBackup\bin.
OPTIONS
-client clientName
31
32
NetBackup Commands
bmrc
-destination destinationFileName
On pull operation, the pathname of the file to be created on the local host.
-msg messageText
An operation to perform:
change
complete
create
pull
-progress numericCode
EXAMPLES
Example 1 - Change the status of a discovery task:
# bmrc -operation change -resource discovertask -client clientName
-state numericCode -progress numericCode
NetBackup Commands
bmrc
Example 5 - Create a log on the server from standard input to this command:
# bmrc -operation create -resource log -client clientName
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 commands usage statement when it is the only option
on the command line.
33
34
NetBackup Commands
bmrconfig
bmrconfig
bmrconfig change configuration settings
SYNOPSIS
bmrconfig [-resource resourceType [-platform win | hp | aix | solaris
| linux] [-manager ldm | lvm | native | sfw | svm | vxvm] [-operation
add | change | clearly | delete | display | list | map]]
bmrconfig -operation verify -client clientName -configuration
configName
bmrconfig -operation initialize -resource disk | network | all -client
clientName -configuration configName -sourceconfiguration
source_configName
bmrconfig -operation initialize -resource disk | network | all -client
clientName -configuration configName -sourceclient source_clientName
-sourceconfiguration source_configName
bmrconfig -operation add | change | clearly | delete | display | list
| map -resource resourceType [-name resourceName] [-manager ldm |
lvm | native | sfw | svm | vxvm] -client clientName -configuration
configName [-attributes "key=value" ["key=value" ...]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bmrconfig command changes a configurations system, network, volume,
driver, and NetBackup settings. The read-only current configuration and discovered
configuration cannot be changed. Use the bmrs command to create a copy of a
configuration that you can change.
OPTIONS
-attributes
NetBackup Commands
bmrconfig
-client clientName
The volume manager that controls the resource. Volume managers are as
follows:
ldm - Windows Logical Disk Manager
lvm - AIX or HP-UX Logical Volume Manager
native - the volume manager native to the operating system
sfw - Veritas Storage Foundation for Windows
svm - Solaris Volume Manager
vxvm - Veritas Volume Manager
-name resourceName
The name of the resource to act on. The various volume managers determine
the valid characters in a resource name.
-operation operation_name
configuration
list - prints all the instances of the specified resource type
map - maps a resource that includes dependent resources, from the original
35
36
NetBackup Commands
bmrconfig
-resource resourceType
The type of the resource on which the operation is performed. Resource types
are as follows:
all - all resources
accesspath - a Windows access path
disk - a physical storage device
diskgroup - a logical grouping of disks
diskset - a Solaris Volume Manager disk set
driveletter - a Windows drive letter
esm - backup client identity
filesystem - a file system for UNIX, Linux, and Windows
gateway - a network gateway
host - a network server
hotfix - a Windows hotfix
hotsparepool - a set of the slices that are used for SVM failover
ip - network identity
license - a product license key
logicaldrive - a Windows extended partition; first one implicitly adds
container
logicalvolume - an AIX or HP-UX logical volume
metadb - an SVM database replica slice
mountpoint - a path that serves as an access point to a volume
msd - a mass storage driver
multidevice - a Linux multidevice
nativedisk - Solaris Native disk resource
nativepart - Solaris Native partition resource
network - a sub network
nic - a network interface card
nicpkg - a network interface card driver
partition - Windows primary partition
NetBackup Commands
bmrconfig
EXAMPLES
EXAMPLE 1
Example 2 - List the physical volumes in a configuration for client aixp31:
# bmrconfig -operation list -resource physical volume -configuration
current -client aixp31
Example 6 - Initialize the new configuration with the discovered hardware for
client aixp31:
# bmrconfig -operation initialize -resource config -configuration
mynew -client aixp31 -sourceconfiguration discover
37
38
NetBackup Commands
bmrconfig
Example 8 - Add a disk to a volume group for client aixp31 (requires a full list of
physical volumes to be specified):
# bmrconfig -operation modify -configuration my new -client aixp31
-resource volume group -name rootvg -attributes physical
volume=hdisk1 physical volume=hdisk0
Example 9 - Remove a physical volume from a volume group for client aixp31:
# bmrconfig -operation modify -configuration my new -client aixp31
-resource volume group -name rootvg -attributes physical
volume=hdisk0
Example 10 - Map a volume group from the original configuration for client aixp31:
# bmrconfig -operation map -configuration my new -client aixp31
-resource volume group -name rootvg
NOTES
If you use NetBackup Access Management, and the user credentials and computer
credentials expire, renew them before you perform prepare-to-restore operations.
Use the bpnbat -Login command to renew your user credentials. Use the bpnbat
-LoginMachine command to renew the computer credentials.
SEE ALSO
See bmrs on page 45.
NetBackup Commands
bmrepadm
bmrepadm
bmrepadm manage external procedures
SYNOPSIS
bmrepadm [-data] -list [pattern]
bmrepadm [-data] -delete procedureName
bmrepadm [-data] -extract procedureName
bmrepadm [-data] -add fileName
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command 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
aix
hp
linux
Sol
win
39
40
NetBackup Commands
bmrepadm
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
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]
NOTES
bmrepadm does not validate client names. That is, you can add an external procedure
EXAMPLES
Example 1 - Add a data file:
# bmrepadm -data -add nameNotMatchingEPname
NetBackup Commands
bmrepadm
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
41
42
NetBackup Commands
bmrprep
bmrprep
bmrprep prepare a client for restore or discovery
SYNOPSIS
bmrprep -restore -client clientName -config configurationName -srt
srtName [-policy policyName] [-logging] [-runep] [-systemonly]
[-import] [-enddate enddate] [-quickformat]
bmrprep -discover -newconfig configurationName -srt srtName [-client
clientName -config configurationName] -address clientAddress -default
defaultGateway -netmask netmask -mac clientMacAddress -server
nbuServerAddress -console consoleDeviceName -architecture
architectureName [-gateway serverGateway] [-logging] [-runep]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bmrprep command prepares a Bare Metal Restore client for a restore or for
a hardware discovery process. This command only runs on the Bare Metal Restore
master server.
OPTIONS
-address clientAddress
(UNIX and Linux clients only.) IP address of the client, in dotted decimal
notation. Required only for a -discover operation; optional if -client and
-config options are specified.
-architecture architectureName
NetBackup Commands
bmrprep
-console consoleDeviceName
(UNIX and Linux clients only.) Name of the console device to use during
discovery. Required only for a -discover operation; optional if you specify
the -client and -config options or use media boot.
-default defaultGateway
(UNIX and Linux clients only.) Default gateway address, in dotted decimal
notation. Required only for a -discover operation; optional if you specify
the -client and -config options or use media boot.
-discover
(UNIX and Linux clients only.) Perform a hardware discovery. Cannot be used
with -restore.
-enddate enddate
Enable logging.
-mac clientMacAddress
(UNIX and Linux clients only.) MAC address of the client. Required only for
a -discover operation. (Exception: Optional if the IP address is configured
during initial program load (IPL)); optional if you specify the -client and
-config options or use media boot.
43
44
NetBackup Commands
bmrprep
-netmask netmask
(UNIX and Linux clients only.) Netmask of the client, in dotted decimal
notation. Required only for a -discover operation; optional if -client and
-config options are specified.
-newconfig configurationName
(UNIX and Linux clients only.) A NetBackup server address, in dotted decimal
notation. Required only for a -discover operation; optional if -client and
-config options are specified.
-srt srtName
NOTES
If you use NetBackup Access Management and your user credentials and the
machine credentials expire, to 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.
You can specify -? to display a synopsis of command usage when it is the only
option on the command line.
NetBackup Commands
bmrs
bmrs
bmrs manage resources in the Bare Metal Restore database
SYNOPSIS
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
bmrs -operation complete -resource discovertask -client clientName
-status numericStatus -resource restoretask -client clientName -status
numericStatus
bmrs -operation verify -resource srt -name srtName [-client
clientName]
bmrs -operation copy -resource config -name configName -client
clientName -destination newConfigName
bmrs -operation retrieve -resource config -client clientName
-destination newConfigName [-enddate date] [-epochenddate eEnddate]
[-policy policyName]
bmrs -operation import -resource config -path bundlePath [-client
clientName] [-destination newConfigName]
bmrs -operation list -resource resourceName
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command 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
45
46
NetBackup Commands
bmrs
-enddate date
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
Possible operations are complete, copy, delete, import, list, retrieve, and
verify.
-path bundlePath
NetBackup Commands
bmrs
discovertasklog
package
restoretask
restoretasklog
srt
-status numericStatus
EXAMPLES
Example 1 - List the configurations in the BMR database:
bmrs -operation list -resource config
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
See bmrc on page 31.
47
48
NetBackup Commands
bmrsrtadm
bmrsrtadm
bmrsrtadm create and manage SRTs and create bootable CD images
SYNOPSIS
<nbu_dir_path>bmrsrtadm
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
On UNIX and Linux systems, the bmrsrtadm command interactively manages
shared resource trees.
On Windows systems, the bmrsrtadm command launches the Create Shared
Resource Tree wizard.
Use bmrsrtadm on a BMR boot server (UNIX) or the Create Shared Resource Tree
wizard on a BMR boot server (Windows) to do the following:
List available shared resource trees (on UNIX and Linux systems).
Enable and disable a shared resource tree for exclusive use (on UNIX and Linux
systems).
NOTES
On UNIX and Linux systems, if you use NetBackup Access Management and your
user credentials and the machine credentials expire, do the following: 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.
NetBackup Commands
bmrsrtadm
49
50
NetBackup Commands
bp
bp
bp start NetBackup menu interface for users
SYNOPSIS
/usr/openv/netbackup/bin/bp [-a | -ra | -b | -r | -rr | -o | -ro |
-s | -rs | -i | -ri | -k | -rk | -rti | -p | -rp | -2 | -r2]
[-verbose]
/usr/openv/netbackup/bin/bp [ -b |-a | -r | -ra] [-verbose]
DESCRIPTION
This command operates only on UNIX and Linux systems.
The bp command starts a menu interface that lets users archive, back up, and
restore files, directories, or raw partitions from their client workstations. You can
run this interface from any character-based terminal (or terminal emulation
window) where you have a termcap or a terminfo definition.
The bp online Help provides detailed operating instructions.
OPTIONS
The startup menu depends on the options that are used with the bp command. If
you run the bp command without specifying an option, the utility starts at the
main menu. To start the utility at a secondary menu, specify one of the following
options:
-a
-ra
-r
-rr
-ro
NetBackup Commands
bp
-rs
-i
-ri
-rp
-r2
-rk
FILES
/usr/openv/netbackup/help/bp/*
/usr/openv/netbackup/logs/bp/*
/usr/openv/netbackup/bp.conf
SEE ALSO
See bparchive on page 53.
See bpbackup on page 58.
See bprestore on page 319.
51
52
NetBackup Commands
bpadm
bpadm
bpadm start NetBackup menu interface for administrators
SYNOPSIS
/usr/openv/netbackup/bin/bpadm
DESCRIPTION
This command operates only on UNIX and Linux systems.
The bpadm utility has a menu interface that administrators can use to configure
NetBackup and monitor its operations. bpadm requires superuser privileges.
Administrators can use this interface from any character-based terminal (or
terminal emulation window) where the administrator has a termcap or a terminfo
definition.
See the NetBackup Administrators Guide and the bpadm online Help for detailed
operating instructions.
FILES
/usr/openv/netbackup/help/bpadm/*
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/bin/initbprd
/usr/openv/netbackup/bp.conf
SEE ALSO
See bprd on page 314.
NetBackup Commands
bparchive
bparchive
bparchive archive files to the NetBackup server
SYNOPSIS
bparchive [-p policy] [-s schedule][-L progress_log [-en]] [-S
master_server [,master_server,...]] [-t policy_type] [-w [hh:mm:ss]]
[-k "keyword_phrase"] -f listfile | filenames
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
bparchive processes the files that are listed on the command line or in the file
that is specified by the -f listfile option. Any file path that is entered can be
a file name or a directory name. If the list of files includes a directory, it archives
all files and subdirectories of that directory and starts at the directory itself.
By default, you return to the system prompt after bparchive is successfully
submitted. The command works in the background and does not return completion
status directly to you. Use the -w option to change bparchive to work in the
foreground and to return completion status after a specified time period.
bparchive writes informative and error messages to a progress-log file if the file
is created. Create the file before you run the bparchive command and specify it
with the -L progress_log option. If bparchive cannot archive any of the requested
files or directories, use the progress log to determine the reason for the failure.
If you create a directory with write access, bparchive creates a debug log file in
this directory to use for troubleshooting.
On Windows systems, <nbu_dir_path> is
<install_path>\NetBackup\logs\bparchive\
53
54
NetBackup Commands
bparchive
On UNIX and Linux systems: To archive a file with bparchive, you must be
the root or the owner and a member of the primary group (as owner) to delete.
Also, the file must not be read only. Otherwise, NetBackup saves the files but
cannot reset their access time (utime) and does not delete them from the disk.
On UNIX and Linux systems: If you specify a UNIX file that is a link, bparchive
archives only the link itself, not the file to which it links.
bparchive does not archive the "." or ".." directory entries, and does not archive
disk-image backups.
OPTIONS
-p policy
Names the policy to use for the user archive. If it is not specified, the
NetBackup server uses the first policy it finds that includes the client and a
user archive schedule.
-s schedule
Names the schedule to use for the user archive. If it is not specified, the
NetBackup server uses the first user archive schedule it finds in the policy it
currently uses. (See the -p option.)
-S master_server
On UNIX and Linux systems, this option specifies the name of the NetBackup
master server. The default is the first SERVER entry in the
/usr/openv/netbackup/bp.conf file.
On Windows systems, this option specifies the name of the NetBackup master
server. The default is the server designated as current on the Servers tab of
the Specify NetBackup Machines dialog box. To display this dialog box, start
the Backup, Archive, and Restore user interface on the client. Then click
Specify NetBackup Machines on the File menu.
-t policy_type
Specifies one of the following numbers that correspond to the policy type.
The default for Windows clients is 13. For Netware clients the default is 10.
The default for all others is 0:
0 = Standard
NetBackup Commands
bparchive
4 = Oracle
6 = Informix-On-BAR
7 = Sybase
10 = NetWare
13 = MS-Windows
14 = OS/2
15 = MS-SQL-Server
16 = MS-Exchange-Server
19 = NDMP
Causes NetBackup to wait for a completion status from the server before it
returns you to the system prompt.
55
56
NetBackup Commands
bparchive
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II.
You can optionally specify a wait time in hours, minutes, and seconds. The
maximum wait time you can specify is 23:59:59. If the wait time expires before
the archive is complete, the command exits with a timeout status. The archive,
however, still completes on the server.
If you use -w without specifying the wait time or if you specify a value of 0,
NetBackup waits indefinitely for the completion status.
-k keyword_phrase
Specifies a keyword phrase that NetBackup associates with the image created
by this archive operation. You then can restore the image by specifying the
keyword phrase with the -k option on the bprestore command.
The keyword phrase is a textual description of the archive that is a maximum
of 128 characters in length. All printable characters are permitted including
space (" ") and period (".").
Enclose the phrase in double quotes ("...") or single quotes (...).
The default keyword phrase is the null (empty) string.
-f listfile
Specifies a file (listfile) that contains a list of files to be archived and can be
used instead of the filenames option. In listfile, place each file path on a
separate line.
The required file list format depends on whether the files have spaces,
newlines, or returns in the names. To archive the files that do not have spaces
or newlines or returns in the names, use th following format:
filepath
The path to the file you want to archive. Some examples on UNIX and Linux
systems are:/home, /etc, and /var. Some examples on Windows systems
are: c:\Programs and c:\documents\old_memos
To archive the files that have spaces or newlines or returns in the names, use
this format:
NetBackup Commands
bparchive
filepathlen filepath
filepath is the path to the file you want to archive and filepathlen is the number
of characters in the file path.
The path to the file you want to archive. Some examples on UNIX and Linux
systems are:/home, /etc, and /var. Some examples on Windows systems are:
c:\Programs and c:\documents\old_memos
Names one or more files to be archived and can be used instead of the -f
option. Any files that you specify must be listed at the end, after all other
options.
EXAMPLES
Example 1 - Archive a single file:
UNIX and Linux systems: bparchive /usr/user1/file1
Windows systems: bparchive c:\usr\user1\file1
Example 2 - Archive the files that are listed in a file that is named archive_list:
bparchive -f archive_list
57
58
NetBackup Commands
bpbackup
bpbackup
bpbackup back up files to the NetBackup server
SYNOPSIS
bpbackup -f listfile | filenames [-p policy] [-s schedule][-S
master_server...] [-t policy_type] [-L progress_log [-en]] [-w
[hh:mm:ss]] [-k "keyword_phrase"]
bpbackup -i [-p policy] [-h hostname] [-s schedule] [-S
master_server...] [-t policy_type] [-L progress_log [-en]] [-w
[hh:mm:ss]] [-k "keyword_phrase"]
bpbackup -dssu DSSUname [-S master_server] [-w [hh:mm:ss]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bpbackup command can start a process on clients and master servers.
On clients:
The -f option of bpbackup starts a user backup equivalent to what is performed
by using the interface on the client. This type of backup can be started from any
NetBackup client to back up files from that client.
bpbackup processes the files that you list on the command line or in the file that
you specify with the -f listfile option. A file path can be a file name or a
directory name. If the named files include a directory, bpbackup backs up all files
and subdirectories of that directory; it starts at the directory itself.
Note: In addition to listing individual files or directories, bpbackup can also use
directives to indicate the files to be backed up. For example: bpbackup "/Shadow
Copy Components/" or bpbackup "/System State/". Clients can enter the
directive in the listfile using the bpbackup -f <listfile> option.
On master servers:
The -i option of bpbackup starts an immediate manual backup of a client. The
bpbackup option is available only to the administrator on the master server. It is
NetBackup Commands
bpbackup
equivalent to when you start a manual backup from the NetBackup Administration
Console. Use the -h option to specify the host.
Because progress logs are written only on clients and this form of bpbackup is run
from the master server only, the -L option is undefined.
The following restrictions apply to this command:
You must be the owner of the file or an administrator to back up a file with
bpbackup.
You can back up files and the directories that other users own if you have the
necessary permissions.
On UNIX and Linux systems: If you specify a file that is a link, bpbackup backs
up only the link itself, not the file to which it links.
NetBackup sends mail on the backup completion status when the backup process
is complete to mail_address when users specify the following:
59
60
NetBackup Commands
bpbackup
OPTIONS
-p policy
NetBackup immediately runs the schedule that is associated with the disk
staging storage unit. The -i option is the implied behavior and is not
necessary.
-h hostname
Names the client host on which to run the backup. If it is not specified,
NetBackup runs the backup on all clients in the policy.
-s schedule
Names the schedule to use for the backup. If it is not specified, the NetBackup
server uses the first user backup schedule it finds for the client in the policy
currently in use.
See the -p option.
-S master_server [,master_server,...]
On UNIX and Linux systems, -S specifies the name(s) of the NetBackup master
server(s). The default is the first SERVER entry that is found in the
/usr/openv/netbackup/bp.conf file.
Specifies one of the following numbers that correspond to the policy type.
The default for Windows clients is 13, for Netware clients the default is 10,
and the default for all others is 0:
0 = Standard
NetBackup Commands
bpbackup
4 = Oracle
6 = Informix-On-BAR
7 = Sybase
8 = MS-SharePoint
10 = NetWare
13 = MS-Windows
14 = OS/2
15 = MS-SQL-Server
16 = MS-Exchange-Server
19 = NDMP
Note that the following policy types apply only to the NetBackup Enterprise
Server.
11 = DataTools-SQL-BackTrack
17 = SAP
18 = DB2
20 = FlashBackup
21 = Split-Mirror
22 = AFS
39 = Enterprise-Vault
-L progress_log [-en]
61
62
NetBackup Commands
bpbackup
-w [hh:mm:ss]
Causes NetBackup to wait for a completion status from the server before it
returns you to the system prompt.
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.
You can optionally specify a wait time in hours, minutes, and seconds. The
maximum wait time you can specify is 23:59:59. If the wait time expires before
the backup is complete, the command exits with a timeout status. The backup,
however, still completes on the server.
The bpbackup -w option causes the shell to wait for a return code. The
operating system shell can only return one return code. Therefore, if you use
-w without specifying a wait time or you specify a value of 0, NetBackup waits
indefinitely for the completion status.
You can start a manual or an administrative backup using bpbackup -i along
with the -w function. This type of backup has the potential to start multiple
jobs because it is based on policy attributes. If the manual backup starts
multiple jobs, the -w function still only returns one return code to the shell.
If you use -i with -w and more than one job begins, NetBackup waits until all
jobs complete before it returns a completion status. However, because
NetBackup only returns one status code to the shell, the job ID that the status
code belongs to is unknown.
If multiple jobs are due to multiple clients and Allow Multiple Data Streams
is not selected, use -h to restrict the operation to one client. However, if Allow
Multiple Data Streams is selected in the policy and the selected client has
multiple jobs, the returned status code is again unknown.
-k keyword_phrase
Specifies a keyword phrase that NetBackup associates with the image that
this backup operation creates. You then can restore the image by specifying
the keyword phrase with the -k option on the bprestore command.
If you use the -i option with -k, NetBackup establishes an association between
the keyword phrase and the backup policy and image.
NetBackup Commands
bpbackup
Specifies a file (listfile) that contains a list of files to back up. You can use this
option instead of the filenames option, but you cannot use it with the -i
option. List each file on a separate line.
The format that is required for the file list depends on whether the files have
spaces, newlines, or returns in the names.
To back up the files that do not have spaces, newlines, or returns in the names,
use the following format:
filepath
Where filepath is the path to the file you want to back up.
On UNIX and Linux systems, examples are /home, /etc, and /var.
On Windows systems, examples are c:\Programs, c:\winnt, and
c:\documents\old_memos
To back up the files that have spaces, newlines, or returns in the names, use
the following format:
filepathlen filepath
Where filepath is the path to the file you want to back up and filepathlen is
the number of characters in the file path.
Examples on UNIX and Linux systems are the following:
5 /home
4 /etc
4 /var
19 /home/abc/test file
63
64
NetBackup Commands
bpbackup
11 c:\Programs
8 c:\winnt
22 c:\documents\old memos
filenames
Names one or more files to back up. You can use this option instead of the -f
option, but you cannot use it with the -i option. You must list any files that
you specify at the end, following all other options.
EXAMPLES
Example 1 - Perform a user backup of a single file, enter:
On UNIX and Linux systems: bpbackup /usr/user1/file1
On Windows systems: bpbackup c:\users\user1\file1
Example 2 - Start a user backup of the files that are listed in a file that is named
backup_list:
bpbackup -f backup_list
bpbackup -f backup_list
bpbackup -f backup_list
bpbackup -f backup_list
Example 3 - Start an immediate-manual backup (all on one line) of the client host
named diablo, in the policy named cis_co. The policy type is Standard policy and
is in the configuration on the master server named hoss.
UNIX and Linux: bpbackup -p cis_co -i -h diablo -S hoss -t 0
Windows: bpbackup -p cis_co -i -h diablo -S hoss -t 0
Example 4 - On Windows systems: Associate the keyword phrase "Backup My
Home Directory 01/01/01" to the user backup of the directory C:\home\kwc.
(Enter the command on one line.)
bpbackup -k "Backup My Home Directory 01/01/01" -L
c:\home\kwc\bkup.log C:\home\kwc
On UNIX and Linux systems: The following command associates the keyword
phrase "Backup Home Dir 01/01/01" to the user backup of the directory /home/kwc.
(Enter the command on one line or use the backslash continuation character.)
bpbackup -k "Backup Home Dir 01/01/01" -L /home/kwc/bkup.log
/home/kwc
NetBackup Commands
bpbackup
FILES
UNIX and Linux systems: $HOME/bp.conf
/usr/openv/netbackup/logs/bpbackup/log.mmddyy
SEE ALSO
See bp on page 50.
See bparchive on page 53.
See bplist on page 200.
See bprestore on page 319.
65
66
NetBackup Commands
bpbackupdb
bpbackupdb
bpbackupdb initiate a hot catalog backup
SYNOPSIS
bpbackupdb -p policy_name -s sched_label
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpbackupdb initiates a hot catalog backup using the specified policy and schedule.
OPTIONS
-p policy_name -s sched_label
NetBackup Commands
bpcatarc
bpcatarc
bpcatarc back up the NetBackup catalog
SYNOPSIS
bpcatarc [-version] [-remove_dotf]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpcatarc processes the output of bpcatlist to back up the selected catalog image
.f files and update their image files catarc field with this backup job ID.
OPTIONS
-version
Removes the .f files for an archived image immediately so that you do not
need to run bpcatrm.
SEE ALSO
See bpcatlist on page 68.
See bpcatres on page 71.
See bpcatrm on page 72.
67
68
NetBackup Commands
bpcatlist
bpcatlist
bpcatlist list selected parts of NetBackup catalog
SYNOPSIS
bpcatlist [-server server_name] [-client client_name] [-since [ctime
| [-since-days nnn | -since-weeks nnn | -since-months nnn |
-before-days nnn | -before-weeks nnn | -before-months nnn]] [-before
[ctime | [-since-days nnn | -since-weeks nnn | -since-months nnn |
-before-days nnn | -before-weeks nnn | -before-months nnn]] [-date
ctime] [-policy policy_name] [-sched sched_name] [-id backup_id]
[-catarc catarc_id] [-version] [-online | -offline]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpcatlist is the starting point for all catalog archiving operations. Use bpcatlist
to select the specific parts of the NetBackup catalog with which you want to work.
All files-file (image .f files), the largest files in a NetBackup catalog, that are
selected for bpcatarc, bpcatres, or bpcatrm, are first selected with bpcatlist.
The output of bpcatlist is piped to the action you want to perform.
OPTIONS
-server server_name
Indicates the name of the NetBackup server. Default: server_name is the first
server name listed in the bp.conf file.
-client client_name
Lists backup images since the specified time that is expressed in ctime (for
example, Fri Oct 12 00:00:00 2009).
NetBackup Commands
bpcatlist
Lists backup images before the specified time that is expressed in ctime (for
example, Fri Oct 12 00:00:00 2009). If no year is specified, bpcatlist uses
the current year by default.
-date ctime
Lists of backup images for the specified date that is expressed in ctime (for
example, Fri Oct 12 00:00:00 2009). If no date is specified, bpcatlist uses
the current date by default.
Additional examples are found in the Examples section.
-catarc catarc_id
Lists the files-file that were archived with the specified catarc_id. For example:
-catarc 1022754972
-policy policy_name
Lists the backups that the indicated policy_name for the specified client
creates.
-sched sched_name
Lists the backups that are created following schedule_name for the specified
client.
-id backup_id
69
70
NetBackup Commands
bpcatlist
EXAMPLES
Displayed dates must be specified in ctime (for example, Fri Sep 13 00:00:00
2007) date format. Displayed dates may be cut and specified without modification.
To list a backup for a specific date and time, specify:
# bpcatlist -date Mon Sep 17 14:16:28 2010
To list the backups that are two to three months old, specify the following:
# bpcatlist -before-months 2 -since-months 3
-since and -before use the following equivalent values:
-since-days nnn
-since-weeks nnn
-since-months nnn
-before-days nnn
-before-weeks nnn
-before-months nnn
SEE ALSO
See bpcatarc on page 67.
See bpcatres on page 71.
See bpcatrm on page 72.
NetBackup Commands
bpcatres
bpcatres
bpcatres restore NetBackup catalog
SYNOPSIS
bpcatres [-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpcatres processes the output of bpcatlist to restore the selected catalog image
.f files.
OPTIONS
-version
SEE ALSO
See bpcatarc on page 67.
See bpcatlist on page 68.
See bpcatrm on page 72.
71
72
NetBackup Commands
bpcatrm
bpcatrm
bpcatrm delete NetBackup catalog
SYNOPSIS
bpcatrm [-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpcatrm processes the output of bpcatlist or bpcatarc to delete the selected
catalog image .f files that have a valid catarc ID in their image file.
OPTIONS
-version
SEE ALSO
See bpcatarc on page 67.
See bpcatlist on page 68.
See bpcatres on page 71.
NetBackup Commands
bpcd
bpcd
bpcd NetBackup client daemon. Enables the NetBackup clients and servers to
SYNOPSIS
<nbu_dir_path>bpcd [-standalone] [-debug] [-portnum number] [-keyfile]
[-restrict_if host_or_ip]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
On Windows systems, bpcd is a communications daemon that the NetBackup
Client Service bpinetd activates. Typically, on UNIX systems inetd activates
bpcd.
The bpcd daemon accepts requests from NetBackup servers. Requests include the
following:
When you install NetBackup on a client, the installation process typically adds
entries for bpcd to the following:
The inetd.conf entry on UNIX and Linux systems looks like the following:
bpcd stream tcp nowait root /usr/openv/netbackup/bin/bpcd bpcd
73
74
NetBackup Commands
bpcd
OPTIONS
The following options are available only on UNIX and Linux clients and imply
that the -standalone option is active.
-standalone
Prevents bpcd from forking and does not disconnect it from standard input,
output, and error.
-portnum number
Specifies the port number where bpcd listens for requests. The default is the
bpcd entry in: /etc/services.
-restrict_if host_or_ip
Specifies the local network interface that bpcd accepts connections from.
Default is to accept connections from all local network interfaces. You can
specify either a host name or an IP address.
-keyfile
When -keyfile is specified, you are prompted for the NetBackup pass phrase
that lets bpcd access the NetBackup encryption key file.
See the section "Additional key file security (UNIX clients only)" in the
NetBackup Security and Encryption Administrators Guide for more
information.
SEE ALSO
See bpclient on page 79.
See bpkeyfile on page 193.
NetBackup Commands
bpchangeprimary
bpchangeprimary
bpchangeprimary promote a copy of a backup to be the primary copy
SYNOPSIS
bpchangeprimary -copy number | -pool volume_pool | -group volume_group
[-id backup_id] [-M master_server]
bpchangeprimary -copy number | -pool volume_pool | -group volume_group
[-sl schedule_name] [-pn policy_name] [-st schedule_type] [-pt
policy_type] [-cl client_name] [-kw keyword] [-sd date time] [-ed
date time] [-M master_server]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpchangeprimary command lets you change which copy is the primary copy
for a set of backup images. You can choose the copy to be promoted to primary
by specifying a copy number, volume pool, or volume group. You can apply several
optional criteria to identify the backup images to be affected.
The primary copy of a backup is the copy used by a restore process. Ensure that
the primary copy is accessible for restore. For instance, if one copy of a backup
was sent off site, change the primary copy to be the copy that remains on site.
The bpchangeprimary command finds all backups that match the specified criteria
and updates their copy number to primary.
If you use the -copy option, the specified copy number becomes the primary copy.
If you use the -group or -pool option, the process identifies all media IDs that
belong to the specified volume group or volume pool. It then changes all copies
that reside on those media to primary.
OPTIONS
One and only one of the following three options is required:
-copy number
Specifies that the number of the backup copy you want to promote to primary.
75
76
NetBackup Commands
bpchangeprimary
-pool volume_pool
Specifies the start date (-sd) or end date (-ed) of the backup images for which
the primary copy is changed.
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 data
such as the date-time formats for each supported locale. The files contain
instructions on how to add or modify the list of supported locales and formats.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II.
The default start date is January 1, 1970, which effectively causes a search
for all images. If you run bpchangeprimary without using the -sd option, the
following occurs: You are prompted for a confirmation that you want to
change the primary copy for the backups that were created after January 1,
1970. The default end date is the current date. The valid range of dates is
from 01/01/1970 to 01/19/2038.
-id backup_id
Specifies the backup ID of the backup image for which the primary copy is
changed. For that backup image, -id backup_id changes the copy that
corresponds to the specified -pool, -group, or -copy option.
If you specify this option, you can specify an alternate master server (by using
the -M option). You must specify one of -pool, -group, or -copy. No other
options are used with -id.
NetBackup Commands
bpchangeprimary
-kw keyword
Specifies a keyword phrase for NetBackup to use when you identify backup
images for which the primary copy is changed.
-M master_server
Specifies that the backups that belong to master_server are affected. For those
backup images, -M master_server promotes the copy that corresponds to
the specified -pool, -group, or -copy option to primary.
If you use this option, any other options you specify determine which backup
images on the specified master server are affected. The server must allow
access by the system that issues the bpchangeprimary command. The default
is the master server for the system that runs the bpchangeprimary command.
-pn policy_name
Specifies the name of the backup policy of the backups for which the primary
copy is changed. The default is all policies.
-pt policy_type
Specifies the type of the backup policies of the backups for which the primary
copy is changed. The default is all policy types.
The policy_type is one of the following character strings:
Informix-On-BAR
MS-Exchange-Server
MS-SQL-Server
MS-Windows
NetWare
Oracle
OS/2
Standard
Sybase
NDMP
The following policy types apply only to NetBackup Enterprise Server:
AFS
Auspex-FastBackup
DataTools-SQL-BackTrack
DB2
77
78
NetBackup Commands
bpchangeprimary
Enterprise-Vault
FlashBackup
SAP
Split-Mirror
-sl schedule_name
Specifies the schedule name (label) for the selection of the backup images for
which the primary copy is changed. By default, the bpchangeprimary
command uses all schedules.
-st schedule_type
Specifies the schedule type for the selection of the backup images for which
the primary copy is changed. By default, bpchangeprimary uses any schedule
type. Valid values are as follows:
FULL (full backup)
INCR (differential-incremental backup)
CINC (cumulative-incremental backup)
UBAK (user backup)
UARC (user archive)
NOT_ARCHIVE (all backups except user archive)
EXAMPLES
Example 1 - The following command promotes all copies on the media that belongs
to the volume pool SUN created after 08/01/2009 to be the primary copy.
bpchangeprimary -pool SUN -sd 08/01/2009
Example 2 - The following command promotes copy 2 of all backups of client, oak,
created after 01/01/2010 to be the primary copy:
bpchangeprimary -copy 2 -cl oak -sd 01/01/2010
Example 3 - The following command promotes copy 4 of all backups that the
backup policy Offsite created after 08/01/2009 to be the primary copy:
bpchangeprimary -copy 4 -pn Offsite -sd 08/01/2009
NetBackup Commands
bpclient
bpclient
bpclient manage client entries on a master server
SYNOPSIS
bpclient -All [-M master_server] [-l | -L | -H]
bpclient -client client_name [-M master_server] [-l | -L | -H]
bpclient -client client_name [-M master_server] -add | -update
[-dynamic_address 0|1] [-free_browse 0|1|2] [-list_restore 0|1|2|3]
[-max_jobs [1-99] [-current_host host_name] [[-online] | [-offline
[[-ut] -onlineat time]]] [-WOFB_enabled 0|1] [-WOFB_FIM 0|1]
[-WOFB_usage 0|1] [-WOFB_error 0|1] [-connect_options 0|1|2 0|1|2
0|1|2|3] [-granular_proxy granular_proxy_host] [-client_direct 0|1|2]
bpclient -client client_name [-M master_server] -delete
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpclient command describes how a NetBackup server connects to NetBackup
clients.
OPTIONS
-add
Lists all client entries. Only the client entries appear that are added explicitly
by using the bpclient command.
-client client_name
79
80
NetBackup Commands
bpclient
0 = Never use Client Direct. Never use Client Direct as the data transfer method
on the specified host. Always use the normal data transfer method. This
setting is the default condition.
1 = Prefer to use Client Direct. Probes for the Client Direct capabilities on the
storage server that is identified during the backup. If the probe passes,
NetBackup uses the Client Direct data transfer method on the specified client.
If the probe fails, is uses the normal data transfer method.
2 = Always use Client Direct. Tries to use only the Client Direct method with
the specified client. If this method fails for any reason, the job fails. No other
transfer method is tried.
-connect_options 0|1|2 0|1|2 0|1|2|3
NetBackup Commands
bpclient
Note: If the vnetd Daemon Connection Port is used, the BPCD Connect Back
setting is not applicable. If the vnetd Daemon Connection Port is used,
non-reserved ports are always used regardless of the value of the Ports setting.
-current_hostname host_name
The current host name of the client. This option is meaningful only when the
option -dynamic_address 1 is used. Usually, you do not have to enter a
-current_hostname value. The client normally contacts the master server
to set the host name and the IP address.
-delete
0 = The client name is assumed to be a valid host name for the client (default).
1 = The client is assumed to have a dynamic host name (such as DHCP).
-free_browse 0|1|2
A method that allows users to get around the checking that the server does
when it browses images (owner or group). By default, normal users are not
allowed to browse into scheduled backups on Windows.
0 = Allow
1 = Deny
2 = Use
By default, both the client and the server should be set up to 0 (allow). To
browse freely, either the client or the server must be set up to 2 (use). Neither
can be set up for 1 (deny).
-H
-l
81
82
NetBackup Commands
bpclient
-M master_server
Name of the master server that contains the client entries. The first server
name in the local configuration is the default master server.
-list_restore 0|1|2|3
Sets up on the server to disallow list and restore requests from a particular
client. The value in the client database overrides the bp.conf file setting.
0 = Not specified (default)
1 = Allow both list and restore requests
2 = Allow list requests only
3 = Deny both list and restore requests
-max_jobs [1-99]
0 = disables Windows Open File Backup for the client that is specified in
client_name.
1 = enables Windows Open File Backup for the client that is specified in
client_name.
-WOFB_FIM 0|1
0 = Use Volume Snapshot Provider (VSP) as the snapshot provider for the
Windows Open File Backups. VSP is supported only on the clients that use
NetBackup Release 6.x. Clients that use NetBackup Release 7.x only use VSS.
If you run a Release 7.x client and select VSP with this option, NetBackup
automatically runs VSS instead.
1 = Use Microsofts Volume Shadow Service (VSS) as the snapshot provider
for Windows Open File Backups.
-WOFB_usage 0|1
NetBackup Commands
bpclient
EXAMPLES
Example 1 - The following command determines if the client hagar is in the client
database on the master server:
bpclient -client hagar -L
Example 2 - The following command adds casper to the client database on the
master server. It also allows a maximum of five concurrent jobs to be run on
casper.
bpclient -client casper -add -max_jobs 5
Example 3 - The following command lists all client information verbosely for
client ollie.
# bpclient -client ollie -L
Client Name: ollie
Current Host:
Hostname: ollie
IP Address: 0.0.0.0
Dynamic Address:
no
Free Browse:
Allow
List Restore: Not Specified
Max Jobs This Client: Not Specified
WOFB Enabled: yes
WOFB FIM:
VSP
WOFB Usage:
Individual Drive Snapshot
WOFB Error Control:
Abort on Error
Client Direct: Prefer to use client-side deduplication or
Prefer to move data direct to storage
83
84
NetBackup Commands
bpclient
NetBackup Commands
bpclimagelist
bpclimagelist
bpclimagelist produce status report on client NetBackup images or removable
media
SYNOPSIS
bpclimagelist [-U | -Likelydate] [-Listseconds] [-client client_name]
[-server server_name] [-BE] [-t FULL | INCR | CINC | UBAK | UARC |
ANY | NOT_ARCHIVE] [-policy policy_name] [-keyword keyword_phrase]
[-ct client_type] [-s mm/dd/yyyy HH:MM:SS] [-e mm/dd/yyyy HH:MM:SS]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpclimagelist command generates status reports on client NetBackup images
or removable media.
OPTIONS
-BE
Displays only the images that are backed up for a specified client type. The
client_type is specified as an integer. Valid values are the following:
0 - standard (typical for UNIX file system backups)
4 - Oracle DB
6 - Informix DB
7 - Sybase DB
8 - Sharepoint
10 - Netware
13 - Windows (typical for Windows file system backups)
85
86
NetBackup Commands
bpclimagelist
15 - SQL Server
16 - Exchange
17 - SAP
18 - DB2
19 - NDMP
20 - Flash Backup
21 - Split Mirror
30 - Vault
34 - Disk Staging
35 - NetBackup Catalog
39 - Enterprise Vault
-e mm/dd/yyyy HH:MM:SS
Specifies a keyword phrase for NetBackup to use when it searches. The phrase
must match the one that was previously associated with the image.
-Likelydate
Searches for a useful timestamp that marks the start of backup images to use
for a restore. Usually, this timestamp is the time of the last full backup image.
With no other arguments, this option returns the decimal number of seconds
since January 1, 1970. You can get more detailed and friendly information
by also specifying -L.
-Listseconds
Reports on the backup images that use the specified policy. The default is
any policy.
-s mm/dd/yyyy HH:MM:SS, -e mm/dd/yyyy HH:MM:SS
Specifies the start date (-s) and end date (-e) for the listing.
The -s option specifies a start date and time for the listing. The resulting list
shows only files in backups or the archives that occurred at or after the
specified date and time.
The required date and time values format in NetBackup commands varies
according to your locale. The /user/openv/msg/.conf file (UNIX and Linux)
NetBackup Commands
bpclimagelist
Indicates the name of the NetBackup server. The default value is the first
server name listed in the bp.conf file.
-t
Specifies a schedule type for the image selection. The default is any schedule
type. Valid values, in either uppercase or lowercase, are as follows:
ANY
-U
87
88
NetBackup Commands
bpclntcmd
bpclntcmd
bpclntcmd test functionality of a NetBackup system and enable Fibre Transport
SYNOPSIS
<nbu_dir_path>bpclntcmd [-sv] [-pn] [-self] [-hn hostname] [-server
NBU_master] [-ip ip_address] [-gethostname] [-is_local_host hostname]
[-is_server hostname] [-is_media_server hostname] [ -is_master_server
hostname] [-is_emm_server hostname] [-get_local_client_patch_version]
[-get_local_server_patch_version] [-check_vxss] [-check_vxss_with_host
hostname] [-get_pbx_port hostname] [-get_remote_host_version hostname]
[-reverse_name_lookup [allowed | restricted | prohibited] [-sanclient
[0 | 1]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bpclntcmd command tests the functionality of a NetBackup system and
displays information about it. It also enables and disables the Fibre Transport
services on a NetBackup client.
OPTIONS
-check_vxss
NetBackup Commands
bpclntcmd
To ensure that NetBackup is in sync with host name changes, you can do the
following: Stop NetBackup, run bpclntcmd -clear_host_cache, then restart
NetBackup.
-gethostname
Returns the host name that NetBackup uses on the local system.
-get_local_client_patch_version
Displays the number that hostname considers the PBX port number. If
hostname is not specified, the option displays the number that the local host
considers the PBX port number.
-get_remote_host_version hostname
Returns the host name, alias, and IP address information about the host name
that is identified in the hostname variable.
-ip ip_address
Returns the host name, alias, and IP address information about IP address,
ip_address.
-is_emm_server hostname
Returns what the master server considers your host name (or peer name) to
be.
89
90
NetBackup Commands
bpclntcmd
-sanclient [ 0 | 1 ]
0 - Disables the client Fibre Transport (FT) service. The command returns a
NetBackup SAN client to normal client functionality.
1 - Enables the client FT service, which effectively makes a regular NetBackup
client a SAN client.
-reverse_name_lookup [allowed | restricted | prohibited]
Determines if NetBackup can use the reverse name lookup of the host name-IP.
Use of this function can be allowed, prohibited, or restricted.
-self
SEE ALSO
See bpnbat on page 227.
NetBackup Commands
bpclusterutil
bpclusterutil
bpclusterutil Modify and configure NetBackup in a cluster.
SYNOPSIS
<nbu_dir_path>bpclusterutil [-addnode NodeName] [-addSvc ServiceName]
[-c] [-ci] [-delete] [-deleteSvc ServiceName] [-depend ServiceName
DependServiceName] [-disableSvc ServiceName] [-display] [-enableSvc
ServiceName] [-freeze] [-isactive] [-iscluster] [-offline] [-online]
[-np] [-s [NBU | OC]] [-startagent] [-stopagent] [-unfreeze] [-vname]
<nbu_dir_path>bpclusterutil -r CLUSTEREDSERVICES servicename |
CLUSTERGROUPNAME | CLUSTERNAME clustername | CLUSTERTYPE [MSCS|VCS]
| GLOBDBHOST nodename | MONITOREDSERVICES servicename |
NETBACKUPINSTALLPATH path | NETBACKUPSHAREDDRIVE drive: |
NETBACKUPTYPE [MASTER|MEDIA] | NETWORKSELECTION network name |
NODENAMES nodename | VIRTUALIPADDRESS ip address | VIRTUALSERVERNAME
virtual name | VIRTUALSUBNETMASK subnet mask
<nbu_dir_path>bpclusterutil -rm CLUSTEREDSERVICES servicename |
MONITOREDSERVICES servicename
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
This command modifies and configures NetBackup in a cluster. It is available on
NetBackup master and media servers.
On Windows, this command sets up the registry entries that are used for cluster
configuration and then to configure the cluster. This command only modifies
registry entries on the local node.
OPTIONS
-addnode NodeName
Adds a node name to the possible owners list of all the resources in the
NetBackup group. This option is available on Windows systems only.
-addSvc "Service Name"
91
92
NetBackup Commands
bpclusterutil
-c
Deletes the registry entries that are used to configure NetBackup in a cluster.
-depend "ServiceName" DependServiceName
Displays the registry entries that are used for cluster configuration. This
option is available on Windows systems only.
-enableSvc "ServiceName"
Freezes the NetBackup cluster group. This option is available on UNIX and
Linux systems only.
-isactive
Displays the state of the NetBackup cluster group on the node. A return code
of 1 indicates that the node is the active node. A return code of 0 indicates
that the node is an inactive node.
-iscluster
NetBackup Commands
bpclusterutil
-online
If NODENAMES is specified, only one node name can be entered. Run the
command multiple times to add node names.
VIRTUALIPADDRESS ip address, VIRTUALSERVERNAME virtual name,
VIRTUALSUBNETMASK subnet mask, -rm
Selects the clustered server type. The possible values are NBU (NetBackup)
and OC (OpsCenter).
93
94
NetBackup Commands
bpclusterutil
-sharedpath
Unfreezes the NetBackup cluster group. This option is available on UNIX and
Linux systems only.
-vname
Displays the virtual name of the NetBackup cluster group. This option is
available on UNIX and Linux systems only.
NetBackup Commands
bpcompatd
bpcompatd
bpcompatd run NetBackup compatibility service
SYNOPSIS
<nbu_dir_path>bpcompatd [-max_time seconds] [-console] [-debug]
<nbu_dir_path>bpcompatd -alive [-debug]
<nbu_dir_path>bpcompatd -terminate [-debug]
<nbu_dir_path>bpcompatd -bpcd_connect clientname [-debug]
<nbu_dir_path>bpcompatd -bpdbm_connect hostname [-debug]
<nbu_dir_path>bpcompatd -bpjobd_connect hostname [-debug]
<nbu_dir_path>bpcompatd -bprd_connect hostname [-debug]
<nbu_dir_path>bpcompatd -robot_connect hostname robot_type [-debug]
<nbu_dir_path>bpcompatd -vmd_connect hostname [-debug]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
This command is used internally by new NetBackup services to communicate with
legacy NetBackup services.
OPTIONS
-alive
95
96
NetBackup Commands
bpcompatd
-bprd_connect hostname
The maximum time bpcompatd waits for a new connection before it performs
routine tasks. The default is 60 seconds on UNIX and Linux systems. The
default is one second on Windows systems.
-console
If you specify -debug, the information that normally is logged on the debug
log file of bpcompatd is written to standard error. For Windows, this option
implies the -console option. On UNIX and Linux systems, this option prevents
the bpcompatd service from running in the background.
NetBackup Commands
bpconfig
bpconfig
bpconfig modify or display global configuration attributes for NetBackup
SYNOPSIS
bpconfig [-cd seconds] [-ha hours] [-kl days] [-kt days] [-ma
[address]] [-sto seconds] [-mj number] [-period hours] [-prep hours]
[-to seconds] [-max_copies number] [cleanup_int hours] [cleanup_wait
minutes] [-tries times] [-wi minutes] [-pui minutes] [-v] [-M
master_server,...]
bpconfig [-L | -l | -U [-v] [-M master_server,...]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpconfig command modifies or displays the NetBackup global configuration
attributes. These attributes affect operations for all policies and clients. With the
exception of the NetBackup administrators email address, the default values for
these attributes are adequate for most installations.
See the NetBackup Global Attributes section in the NetBackup Administrators
Guide, which describes the implications of setting the attribute values.
The following describes the two forms of bpconfig:
The first form of bpconfig modifies one or more of the NetBackup global
configuration attributes. At least one option that changes a NetBackup global
configuration attribute must be on the command line.
The second form of bpconfig displays the current settings of the NetBackup
global configuration attributes. See DISPLAY FORMATS for more detail.
Errors are sent to stderr. A log of the commands activity is sent to the NetBackup
admin log file for the current day.
OPTIONS
-cd seconds
97
98
NetBackup Commands
bpconfig
of seconds has elapsed since the creation of the image. The range of values
is 86400 to 2147472000. On Windows, NetBackup uses NTFS file compression
only if the database is in an NTFS partition. Otherwise, it is not compressed.
The default is zero (0), which means no compression is done.
The effect of compression is that the image database needs less disk space.
However, you need to decompress the images before you browse the image
database for restoring. If you browse first, the compressed images are not
found. To decompress the images, you must use the bpimage command.
-cleanup_int hours
Specifies the minimum period of time (in hours) that can elapse without a
catalog cleanup. The default value is 12 (hours). Since cleanup cannot run
during a catalog backup, large 24x7 environments that run long catalog
backups may need a shorter cleanup interval (e.g., three hours). Regardless
of the value of this option, the image database is automatically cleaned up at
the end of a session of scheduled backups.
This option appears in the output display as Image DB Cleanup Interval (see
examples).
-cleanup_wait minutes
Specifies the interval (in minutes) between image database catalog cleanup
operations. The default value is 60 (minutes). If multiple backups occur during
this cleanup wait interval, NetBackup only initiates one cleanup operation
in this time period. The range of values is zero (0) to 720.
-ha hours
Specifies the number of hours ago that is the beginning of the time range for
selecting NetBackup report entries. The end of the time range is the current
time. For example, if hours ago is 24 and if you request a Backup Status report
at 10:00 a.m., the report includes the following: All backups that ran from
10:00 a.m. yesterday until 10:00 a.m. today.
This value is used to calculate the time range for general reports and media
reports. General reports include Backup Status, Client Backups, Problems,
and All Log Entries. Media reports include Media List, Media Summary, Media
Contents, Images on Media, and Media Log Entries.
Hours Ago is a positive integer in the range of 1 to 32767. The default value
is 24 (hours).
-kl days
The number of days to keep logs. This number determines how long the
NetBackup master server keeps its Error database and debug logs.
NetBackup derives its Backup Status, Problems, All Log Entries, and Media
Log Entries reports from the Error database.
NetBackup Commands
bpconfig
This value limits the period that these reports can cover. The range of values
is 1 to 32767. The default is 28 days. A value of zero (0) turns logs off.
Note: This attribute has no effect on remote media servers or clients (remote
media servers apply only to NetBackup Enterprise Server).
-kt days
The list type is long. See the section DISPLAY FORMATS for more detail.
-l
The list type is short. This option is the default if the command line has no
list-type option (for instance, if you enter bpconfig and a carriage return).
See the section DISPLAY FORMATS for more detail.
-M master_server,...
The maximum number of copies per backup. The range of values is 2 to 10.
The default value is 2.
-sto seconds
99
100
NetBackup Commands
bpconfig
-mj number
Specifies the maximum jobs per client. This number is the maximum number
of jobs that a client can perform concurrently. It must be a positive integer.
The range values are 1 to 32767. The default value is 1.
-period hours
The time interval that is associated with the configured number of tries for
a backup (see -tries). This interval is the period in hours during which
NetBackup tries a backup job for a client/policy/schedule combination for as
many tries as configured. The hours must be a positive integer. The range
values are 1 to 24. The default value is 12 hours.
Note: This attribute does not apply to user-directed backups and archives.
-prep hours
Specifies the policy update interval, which is how often NetBackup policy
updates are processed. The default value is 10 minutes. The range of values
is 1 to 1440 (minutes).
-to seconds
Specifies the media-mount timeout. This timeout is the time in seconds that
NetBackup waits for the requested media to be mounted, positioned, and
ready on backups and restores. Use -to to eliminate excessive waits when
you need to mount media manually (for example, when robotic media is out
of the robot or off site).
The default is 0, which means no timeout (unlimited wait time). If seconds is
not 0, its value range is 1 to 32,767 seconds.
NetBackup Commands
bpconfig
-tries times
The number of retries for a backup during the configured time period (see
-period). For a given combination of client, policy, and schedule, NetBackup
tries to run a backup job the specified number of times. This option limits
the number of backup tries if repeated failures occur.
Note: This attribute does not apply to user-directed backups and archives.
Values for -tries range from 1 to 32767. The default is two tries. If defaults
are used for both -tries and -period, NetBackup tries the backup two times
in 12 hours.
-U
The list type is user. See DISPLAY FORMATS for more detail.
-v
Selects verbose mode for logging. This option is meaningful only if it runs
with the debug log function on. Therefore, the following directory must be
defined:
On UNIX and Linux systems: /usr/openv/netbackup/logs/admin
On Windows systems: install_path\NetBackup\logs\admin
-wi minutes
Job Retry Delay. Specifies how often NetBackup retries a job. The default
value is 10 minutes. The range of values is 1 to 1440 (minutes).
DISPLAY FORMATS
bpconfig uses the following three different formats to display the current values
101
102
NetBackup Commands
bpconfig
NetBackup Commands
bpconfig
1 minutes
1
2 time(s) in 12 hour(s)
28 days
0
1 days
(not enabled)
0 minutes (unlimited)
24 hours ago
0 hours
10
12 hours
60 minutes
10 minutes
*NULL*
1 minutes
1
2 in 12 hours
28 days
103
104
NetBackup Commands
bpconfig
Max drives/master:
0
Compress DB Files:
(not enabled)
Media Int Timeout:
0 minutes (unlimited)
Display Reports:
24 hours ago
Keep TIR Info:
1 days
Prep Interval:
0 hours
Max Backup Copies:
10
DB Clean Interval:
12 hours
DB Clean Wait Time:
60 minutes
Policy Update Interval:10 minutes
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:
NetBackup Commands
bpconfig
Windows: install_path\NetBackup\logs\admin
UNIX and Linux: /usr/openv/netbackup/logs/admin
EXAMPLES
Example 1 - While the master server kiwi runs, display the global attribute settings
on the master server plim:
bpconfig -U -M plim
Admin Mail Address:
Job Retry Delay:
Max Simultaneous Jobs/Client:
Backup Tries:
Keep Error/Debug Logs:
Max drives this master:
Keep TrueImageRecovery Info:
Compress Image DB Files:
Media Mount Timeout:
Display Reports:
Preprocess Interval:
Maximum Backup Copies:
Image DB Cleanup Interval:
Image DB Cleanup Wait Time:
Policy Update Interval:
[email protected]
10 minutes
1
1 time(s) in 8 hour(s)
6 days
0
1 days
(not enabled)
30 minutes
24 hours ago
0 hours
10
12 hours
60 minutes
10 minutes
*NULL*
10 minutes
1
2 time(s) in 12 hour(s)
28 days
0
105
106
NetBackup Commands
bpconfig
2 days
older than 7 day(s)
0 minutes (unlimited)
24 hours ago
0 hours
10
12 hours
60 minutes
10 minutes
[email protected]
10 minutes
1
1 time(s) in 12 hour(s)
3 days
0
24 days
(not enabled)
30 minutes
24 hours ago
0 hours
10
12 hours
10 minutes
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/config/behavior
Windows systems:
install_path\NetBackup\db\config\behavior
install_path\NetBackup\logs\admin\*
SEE ALSO
See bpimage on page 156.
NetBackup Commands
bpconfig
107
108
NetBackup Commands
bpdbjobs
bpdbjobs
bpdbjobs interact with NetBackup jobs database
SYNOPSIS
bpdbjobs [-report] [-M master_servers] [-ignore_parent_jobs] [ -vault
| -lvault | -all_columns | -most_columns | -gdm ] [-file pathname]
[-append] [-noheader] [-mastertime] [-jobid job1,job2,...jobn]
[verbose]
bpdbjobs -summary [-M master_servers] [-ignore_parent_jobs] [ -U |
-L | -all_columns ] [-file pathname] [-append] [verbose]
bpdbjobs -resume | -suspend | -delete | -cancel | -restart
job1,job2,...jobn | type=jobtype | type=all [-M master_servers]
[-quiet] [-reason "string"]
bpdbjobs -cancel_all [-M master_servers] [-reason "string"]
bpdbjobs -clean [-M master_servers] [ -keep_hours hours | -keep_days
days ] [ -keep_successful_hours hours | -keep_successful_days days
] [verbose]
bpdbjobs -version
bpdbjobs -change_priority_by [-M master_servers] -priority number
-jobid job1,job2,...jobn
bpdbjobs -set_priority [-M master_servers] -priority number -jobid
job1,job2,...jobn
bpdbjobs -fast
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpdbjobs interacts with the jobs database and is useful in scripts or as a
NetBackup Commands
bpdbjobs
Refer to the NetBackup Administrators Guide for UNIX and Linux, Volume II for
more information about the following: the bp.conf file, a complete list of the
definitions, and the BPDBJOBS_COLDEFS entries.
The -cancel, -delete, -jobid, -resume, and -suspend options all use the jobtype
as a suboption. Enter one of the following as jobtype. (Letters following the
capitalized letters are ignored.)
ALL | *
REStore
BACkup
ARChive
VERify
DUPlicate
IMPort
LABel
ERAse
VAUlt
TPReq
CLEan
FORmat
INVentory
QUAlification
DBbackup | CATalogbackup
OPTIONS
-all_columns
Displays all columns of a report or summary. Some of the more useful fields
of this command are:
field2 = jobtype
0=backup, 1=archive, 2=restore, 3=verify, 4=duplicate, 5=import, 6=catalog
backup, 7=vault, 8=label, 9=erase, 10=tape request, 11=tape clean, 12=format
tape, 13=physical inventory, 14=qualification, 15=database recovery,
16=media contents, 17=image delete, 18=LiveUpdate
field3 = state
0=queued, 1=active, 2=wait for retry, 3=done, 4=suspended, 5=incomplete
field5 = policy
The policy that this job is associated with.
field6 = schedule
109
110
NetBackup Commands
bpdbjobs
NetBackup Commands
bpdbjobs
111
jobid,jobtype,state,status,policy,schedule,client,server
,started,elapsed,ended,stunit,try,operation,kbytes,files
,pathlastwritten,percent,jobpid,owner,subtype,classtype,
schedule_type,priority,group,masterserver,retentionunits
,retentionperiod,compression,kbyteslastwritten,fileslast
written,filelistcount,[files],trycount,[trypid,trystunit,
tryserver,trystarted,tryelapsed,tryended,trystatus,trys
tatusdescription,trystatuscount,[trystatuslines],trybyte
swritten,tryfileswritten],parentjob,kbpersec,copy,robot,
vault,profile,session,ejecttapes,srcstunit,srcserver,src
media,dstmedia,stream,suspendable,resumable,restartable,
datamovement,snapshot,backupid,killable,controllinghost
Appends the output to the file that the -file option specifies. If no -file
option is provided, the output goes to stdout.
-cancel job1,job2,...jobn |type=jobtype|type=all
Causes bpdbjobs to cancel active jobs cleanly that appear with a Status 150
in the Activity Monitor. For example:
bpdbjobs -cancel 11328
bpdbjobs -cancel 11328,11329,11330
Causes bpdbjobs to cleanly cancel all incomplete jobs that appear with a
Status 150 in the Activity Monitor. For example:
112
NetBackup Commands
bpdbjobs
bpdbjobs -cancel_all
-change_priority_by [-M master_servers] -priority number -jobid
job1,job2,...jobn
Causes bpdbjobs to delete the completed jobs that are older than a specified
time period. Use with the -keep_hours or -keep_days, or
-keep_successful_hours or -keep_successful_days parameters to specify
a retention period. For example:
bpdbjobs -clean -keep_hours 30
-delete job1,job2,...jobn |type=jobtype|type=all
Deletes the completed jobs that appear in the Activity Monitor. Multiple job
IDs can be deleted in one command. For example:
bpdbjobs -delete 11328,11329,11330
Retrieves the job metadata from bpjobd, but the try file and files file is read
directly from the file system. This option is ignored if bpdbjobs is started
from a remote host (a host that is not the master).
-file pathname
Ignores the parent jobs for the -report and -summary options.
-jobid job1,job2,...jobn |type=jobtype|type=all
NetBackup Commands
bpdbjobs
-keep_days days
Used with the -clean option to specify how many days bpdbjobs keeps
completed jobs. Default is three (3) days.
-keep_hours hours
Used with the -clean option to specify how many hours bpdbjobs keeps
completed jobs. Default is 72 hours.
-keep_successful_days days
Used with the -clean option to specify how many days bpdbjobs keeps
successful completed jobs. Default is three (3) days.
This value must be less than the -keep_days value.
-keep_successful_hours hours
Used with the -clean option to specify how many hours bpdbjobs keeps
successful completed jobs. Default is 72 hours.
This value must be less than the -keep_hours value.
-L
Behaves similarly to -all_columns but does not print the file list or any
information on previous attempts. The -most_columns option is significantly
faster than -all_columns.
-noheader
113
114
NetBackup Commands
bpdbjobs
-quiet
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-report
Cleanly restarts a job that jobtype indicates. This option supports backups
and enables you to restart a job by typing the word BACkup in the Activity
Monitor.
-resume job1,job2,...jobn |type=jobtype|type=all
Resumes the jobs that job1,job2,...jobn specify, all eligible checkpoint backups
or restore the jobs that jobtype indicates, or all eligible jobs if type=all is
specified.
Possible jobtype values are listed in the Description section.
-set_priority [-M master_servers] -priority number -jobid
job1,job2,...jobn
Sets the priority of the specified job or jobs to the specified priority number.
-summary [-U | -L | -all_columns]
Prints a summary line to stdout for all the jobs that are stored in NBU/jobs.
Parameters -U and -L format the output of the command. Use the -file
option to write the output to a given directory or file name. For example:
bpdbjobs -summary -U -file /tmp/summary.out
-suspend job1,job2,...jobn |type=jobtype|type=all
NetBackup Commands
bpdbjobs
-U
Causes bpdbjobs to log additional information in the debug log in the following
directory, if the directory exists:
On UNIX and Linux systems:
/usr/openv/netbackup/logs/bpdbjobs/*
Prints the version string, then halts. Any other switches are ignored.
EXAMPLES
This example shows the following: sample logic to decode -all_columns output
to produce the backup initiation time of a job that succeeded, but not on the first
try.
Field 9 = start time (The time the job was first queued.)
This time is of little value unless you want to know when the job was queued.
Up to Field 32, all fields are fixed. Then Field 32 tells you how many entries are
in the filelist fields.
Field 32 = filelistcount (The number of files that are listed in the filelist.)
Add that value to 33 to determine the field that shows the number of tries:
Field 33 + filelistcount = trycount (The number of tries that occurred.)
If there is only one try, calculate the following to determine its start time:
Field 33 + filelistcount + 4 = [first]trystarted (The start time of the first try.)
If there are two tries, go past the status entries. First, calculate the number of
entries in the status field:
Field 33 + filelistcount + 9 = trystatuscount (The number of status entries in
the first try.)
Then, to get the start time of the second try, calculate the following:
Field 33 + filelistcount + 9 + trystatuscount + 6 = [second] trystarted
115
116
NetBackup Commands
bpdbm
bpdbm
bpdbm run NetBackup database manager daemon
SYNOPSIS
<nbu_dir_path>bpdbm [consistency [-move]] [converti2] [ctime
timestamp] [-terminate] [-alive] [-verbose -logqueries -wakeup
minutes]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
bpdbm responds to the queries that are related to the NetBackup internal databases
(catalogs). bpdbm must be running for NetBackup commands and utilities to work
properly. This daemon runs only on the master server and can be started only by
the administrator. The NetBackup request daemon (bprd) or the following script
starts bpdbm:
On UNIX and Linux: /usr/openv/netbackup/bin/initbpdbm
On Windows: install_path\NetBackup\bin\initbpdbm
When bpdbm starts, the following sequence occurs in the order listed:
It logs a message that indicates that it has started and verifies that no other
instances are running. If another process is found, the program terminates.
bpdbm finds its port number by checking the services file for an entry with a
bpdbm starts to respond to queries from bprd and the NetBackup administrative
OPTIONS
-alive
NetBackup Commands
bpdbm
-consistency [0-2]
Runs the consistency checks on the catalog. The following are the three
consistency levels:
0 - A quick check of the NetBackup image database (the default).
1 - Performs more checks than the default check.
2 - The most in-depth consistency check. In addition to the level 0 and 1
checks, this level checks that the media that is mentioned in the image exists.
(That is, it cross-references the media servers databases.) On a large
NetBackup installation, the process takes much longer to complete than the
other checks.
-converti2
Converts the old catalogs that were created by using the old directory name
scheme without the time-stamp subdirectories for each client to the new
scheme. Use caution on this operation and make sure that a valid catalog
backup is in hand and ready to use to recover the catalog.
-ctime timestamp
Causes bpdbm to log each bpdbm query to the file BPDBMqueries of the tmp
directory. Each query has an entry at the start of the log of the form:
date_stamp process_id
query type
query type
status status
Terminates bpdbm. Any currently running child process continues to run until
its task is complete.
-verbose -logqueries
117
118
NetBackup Commands
bpdbm
-wakeup minutes
Overrides the default timeout interval (in minutes) that bpdbm uses when it
establishes the initial connection on the port. Used on UNIX and Linux systems
only.
FILES
On UNIX or Linux systems:
/usr/openv/netbackup/db/*
/usr/openv/netbackup/bp.conf
/usr/openv/netbackup/logs/bpdbm/*
/usr/openv/netbackup/bin/initbpdbm
On Windows systems:
install_path\NetBackup\db\*
install_path\NetBackup\logs\bpdbm\*
SEE ALSO
See bpadm on page 52.
See bprd on page 314.
NetBackup Commands
bpdgclone
bpdgclone
bpdgclone create or remove clones of Volume Manager (VxVM) volumes
SYNOPSIS
/usr/openv/netbackup/bin/bpdgclone [-h] [-v] [-c] -g disk_group -n
volume [-d
primary_disk,secondary_disk:primary_disk_2,secondary_disk_2:
primary_disk_n,secondary_disk_n] [-f output_location]
DESCRIPTION
This command operates only on UNIX and Linux systems.
bpdgclone creates temporary disk groups or clones of disk(s) that contain the
mirror image of the volume for the backups that use array-specific snapshot
methods. In array-specific snapshot methods (EMC TimeFinder, Hitachi
ShadowImage, HP BusinessCopy) client data is configured over a Volume Manager
volume. To avoid a name conflict in the Volume Manager, bpdgclone names the
temporary disk group as follows: client_name_diskgroup_name_clone. When the
backup completes, NetBackup removes the disk group clone.
During normal operation, NetBackup calls the bpdgclone command as needed:
no administrator use of this command is required. But if a system failure prevents
NetBackup from removing the clone, you must use the bpdgclone command with
the -c option to remove the clone. Then you must synchronize the mirror disk
again with the primary disk.
Note: If the backup completes, but the clone is not removed, subsequent backups
of the clients data fail. To remove a clone, see the examples.
OPTIONS
-g
-n
-d
Lists the primary disks and the secondary disks. The list consists of disk pairs
(primary,secondary), where the primary is separated from the secondary by
a comma. If there is more than one primary disk in the target volume, colons
(:) separate the additional device pairs.
119
120
NetBackup Commands
bpdgclone
-c
Deletes the cloned disk group and volume. Note that the primary disks and
the secondary disks must be resynchronized after the clone is deleted.
-h
-v
-f
Specifies an output file. This file contains a list of pathnames of the primary
disks over which the target volume is configured. Use this option to discover
the primary disks that make up the target volume.
NOTES
The following are considerations to note when you use the bpdgclone command:
Do not remove a clone while the snapshot backup that uses that clone is still
in progress. With no system failures, NetBackup removes the clone when the
backup completes.
If you use the bpdgclone command to remove a left over disk clone, you must
synchronize the mirror disk again with the primary disk.
EXAMPLES
The following example removes a clone.
/usr/openv/netbackup/bin/bpdgclone -g wil_test -n vol01 -c
where wil_test is the name of the disk group after which the clone was named
(in this example, the actual clone would be named clone_wil_test_clone).
For detailed assistance, refer to "Removing a VxVM Volume Clone" in the
Troubleshooting chapter of the NetBackup Snapshot Client Administrators Guide.
NetBackup Commands
bpdown
bpdown
bpdown shut down NetBackup services on Windows systems
SYNOPSIS
<install_path>\NetBackup\bin\bpdown [-S|v] [-f] [-c] [-d] [-m]
[-n][-s] [-r]
DESCRIPTION
This command operates only on Windows systems.
bpdown shuts down the NetBackup services including many components of the
product, such as the NetBackup databases, Media Manager, clients, and some
robotic control daemons. This option does not shut down the processes.
The bpup command starts the NetBackup services.
OPTIONS
-S
-v
-f
-c
-d
-m
-n
-s
-r
121
122
NetBackup Commands
bpduplicate
bpduplicate
bpduplicate create a copy of backups that NetBackup has created
SYNOPSIS
bpduplicate -npc new_primary_copy -backupid backup_id [-local]
[-client name]
bpduplicate [-number_copies number] [-dstunit
destination_storage_unit_label [,copy2,...] [-dp
destination_volume_pool_name [,copy2,...] [-p | -pb | -PD | -PM]
[-Bidfile file_name] [-v] [-local] [-client name] [-st sched_type]
[-sl sched_label] [-L output_file [-en]] [-shost source_host] [-policy
name] [-s date] [-e date] [-pt policy_type] [-hoursago hours] [[-cn
copy_number] | [-primary]] [-M master_server] [-altreadhost hostname]
[-backupid backup_id] [-id media_id] [-rl
retention_level[,rl-copy2,...]] [-fail_on_error 0|1[,...,0|1]] [-mpx]
[-priority number] [-set_primary copy_index] [-bc_only]
[-granular_proxy hostname] [-owner
media_share_group[,share_group_copy2,...]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpduplicate command allows a copy of a backup to be created. The
bpduplicate command can also change the primary copy to enable restoring from
a duplicated backup. The primary copy is used to satisfy restore requests and is
initially the original copy.
Multiplexed duplications can be created by using the -mpx option. Refer to the
discussion of the -mpx option for more information.
The duplicated backup has a separate expiration date from the original. Initially,
the expiration date of the copy is set to the expiration date of the original. You
can change the expiration date of the copy or the original by using the bpexpdate
command.
Use bpduplicate to create up to 10 copies of unexpired backups.
NetBackup Commands
bpduplicate
OPTIONS
-altreadhost hostname
Specify an alternate host from which to read the media. The default condition
is that bpduplicate reads the source media from the host that performed
the backup.
-backupid backup_id
Catalogs the granular information (that is, it builds the catalog only). Running
this option precludes the need to make another copy of the image, which can
improve performance of future browse or restore operations.
-Bidfile file_name
Specifies the name of the client that produced the originals and is used as
search criteria for backups to duplicate. The default is all clients.
When you specify -client with the -npc option to change the primary copy,
NetBackup first searches for the backup ID that belongs to the client. This
search is useful if the client name has changed.
-cn copy_number|-primary
Determines the copy number to duplicate. Valid values are 1 through 10. The
default is 1.
-primary means to search or duplicate the primary copy.
-dp destination_volume_pool_name [,copy2,...]
Specifies the volume pool for the duplicates. NetBackup does not verify that
the media ID that is selected for the duplicate copy is not the same media ID
where the original resides. Therefore, to avoid the possibility of a deadlock,
specify a different volume pool than where the original media ID resides. The
default pool name is NB_duplicates.
123
124
NetBackup Commands
bpduplicate
Specifies the end (-e) or start (-s) of the range of dates and times that include
all backups to duplicate. The default end date is the current date and time.
The default start time is 24 hours before the current date and time.
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.
-fail_on_error 0|1[,0|1,...,0|1]
Specifies whether to fail the other duplications if the copy fails, where:
0 - Do not fail the other copies
1 - Fail the other copies
Specify one for each copy that you specify.
-granular_proxy
Overrides the defined Exchange granular restore proxy host for a duplication
operation. This host catalogs the granular information if duplicated to tape.
By default, the defined Exchange granular restore proxy host is the original
Exchange client for the backup.
-hoursago hours
Specifies the number of hours before the current time to search for backups.
Do not use with the -s option. The default is the previous midnight.
-id media_id
Search the image catalog for backups to duplicate that are on this media ID.
If the original is fragmented between different media IDs, NetBackup
NetBackup Commands
bpduplicate
duplicates only the backups that exist on the specified media ID. Backups
that span media are duplicated, but not any other backups on the spanned
media ID.
-L output_file [-en]
Specifies the name of a file in which to write progress information. The default
is not to use a progress file.
Include the -en option to generate a log in English. The name of the log
contains the string _en. This option is useful to support the personnel that
assist in a distributed environment where different locales may create logs
of various languages.
-local
When bpduplicate runs from a host other than the master server and -local
is not used (default), the following occurs: It starts a remote copy of the
command on the master server. The remote copy allows the command to be
terminated from the Activity Monitor.
Use this option to prevent the creation of a remote copy on the master server.
You can also run bpduplicate only from the host where it was initiated.
If the -local option is used, bpduplicate cannot be canceled from the Activity
Monitor.
-M master_server
Specifies the master server that manages the media catalog that has the
media ID. If this option is not specified, the default is one of the following:
The NetBackup server supports only one server (the master) with no remote
media servers. Therefore, the default in this case is always the NetBackup
server master where you run the command.
On the NetBackup Enterprise Server, if the command is run on a master
server, then that server is the default. If the command is run on a media server
that is not the master, then the master for that media server is the default.
-mpx
Non-multiplexed backups
125
126
NetBackup Commands
bpduplicate
Allows the primary copy to be changed. The value can be 1 through 10. The
-backupid option must be specified with this option.
-number_copies number
Specifies the number of copies to be created. Without the Inline Tape Copy
option or NetBackup Vault extension that is installed, the value can be set to
1 only. The default is 1.
Use with -dstunit, -dp, -fail_on_error, and -r1:
-number_copies 2 -dstunit stunit-copy1,stunit-copy2
-number_copies 2 -dp pool1, pool2
-owner media_share_group [,share_group_copy2,...]
Specifies the share group for the duplicate. Specify a share group for each
copy that you specify.
-p
Previews the duplication but does not perform the duplication. Similar to the
-p option, but does not display information about the backups.
-PD
Same as the -PM option, except that it sorts and displays the backups by date
and time (newest to oldest).
NetBackup Commands
bpduplicate
-PM
Searches for backups to duplicate in the specified policy. The default is all
policies.
-priority number
Sets a backup policy to run at a lesser or a higher priority than disk staging
duplication.
-pt policy_type
Search for the backups that the specified policy type created. The default is
any policy type.
Valid values are:
Informix-On-BAR Oracle
Macintosh
MS-Exchange-Server
MS-Windows
MS-SharePoint
MS-SQL-Server
NDMP
Netware
OS/2
Standard
Sybase
Note: The following policy types apply only to NetBackup Enterprise Server.
AFS
DataTools-SQL-BackTrack
DB2
Enterprise-Vault
FlashBackup
127
128
NetBackup Commands
bpduplicate
SAP
Split-Mirror
-rl retention_level[,rl-copy2,...]
Specifies that only the backups that are created on the specified backup server
are considered for duplication. The default is to consider all backups regardless
of the backup server.
-sl sched_label
Search for backups to duplicate that the specified schedule created. The
default is all schedules.
-st sched_type
Search for backups to duplicate that the specified schedule type created. The
default is any schedule type.
Valid values are:
FULL (full backup)
INCR (differential-incremental backup)
NetBackup Commands
bpduplicate
Selects the verbose mode. When you specify the debug logs or progress logs,
it includes more information.
EXAMPLES
Example 1 - The following command lists backups with a copy number of 1. They
were backed up by the policy that is named stdpol, and created between July 1,
2009, and August 1, 2009.
# bpduplicate -PM -cn 1 -policy stdpol -s 07/01/09 -e 08/01/09
Example 2 - The following command creates a duplicate copy of the backup IDs
in file name plum. It duplicates copy 1 to copy 5 on storage unit Tape_stu of pool
NBU.
# bpduplicate -Bidfile plum dstunit Tape_stu -dp NBU -cn 1 -dcn 5
Example 3 - The following command can be all on one line, or you can use a
backslash continuation character. The command duplicates copy 1 of the backups
that are listed in file bidfile in the tmp directory. The destination storage unit
is unit1 and the destination pool is dup_pool. Progress information is written
to bpdup.ls.
On UNIX and Linux systems: # bpduplicate -dstunit unit1 -Bidfile
/tmp/bidfile -L /tmp/bpdup.ls -dp dup_pool -cn 1
On Windows systems: # bpduplicate -dstunit unit1 -Bidfile
C:\tmp\bidfile -L C:\tmp\bpdup.ls -dp dup_pool -cn 1
Example 4 - The following command can be all on one line, or you can use a
backslash continuation character. It is the same as the previous example, except
multiplexed backups are duplicated when you select multiplexed duplication.
On UNIX and Linux systems: # bpduplicate -dstunit unit1 -Bidfile
/tmp/bidfile -mpx -L /tmp/bpdup.ls -dp dup_pool -cn 1
On Windows systems: # bpduplicate -dstunit unit1 -Bidfile
C:\tmp\bidfile -mpx -L C:\tmp\bpdup.ls -dp dup_pool -cn 1
129
130
NetBackup Commands
bpduplicate
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/images/*
Windows systems:
install_path\NetBackup\db\images\*
install_path\NetBackup\logs\admin\*
NetBackup Commands
bperror
bperror
bperror display NetBackup status and troubleshooting information or entries
SYNOPSIS
bperror {-S | -statuscode status_code} [-r | -recommendation] [[-p
Unx | NTx] | [-platform Unx | NTx]] [-v]
bperror [-all | -problems | -media | tape] {-backstat [-by_statcode]}
[-L | -l | -U] [-columns ncols] [-d date | -hoursago hours] [-e date]
[-client client_name] [-server server_name] [-jobid job_id] [-M
master_server,...] [-v]
bperror [-s {severity[+]}|severity ...] [-t type ...] [-dt disk_type]
[-L | -l | -U] [-columns ncols] [-d date | -hoursago hours] [-e date]
[-client client_name] [-server server_name] [-jobid job_id] [-M
master_server,...] [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bperror displays information from either the same source as the online
A display of the error catalog entries that satisfy the command-line options.
For instance, bperror can display all the problem entries for the previous day.
For information on details of the displays, see DISPLAY FORMATS later in this
command description.
bperror writes its debug log information to the following directory:
131
132
NetBackup Commands
bperror
OPTIONS
-all, -backstat [-by_statcode], -media, -problems
These options specify the type and severity of log messages to display. The
default type is ALL. The default severity is ALL.
-all: The type is ALL, and severity is ALL. Run bperror with this option and
present, the display contains one entry for each unique status code. Line 1
of the entry contains the status code and the corresponding message text.
Line 2 of the entry contains the list of clients for which this status code
occurred. -by_statcode is only valid when the command line contains both
-backstat and -U. Run bperror with this option and with -U to produce a
Backup Status report.
-media: The type is MEDIADEV, and severity is ALL. Run bperror with this
and CRITICAL. Run bperror with this option and with -U to produce a
Problems report.
-client client_name
Specifies the start date and end date range for the listing.
-d specifies a start date and time (optional) for the listing. The resulting list
shows only images in the backups or archives that occurred at or after the
NetBackup Commands
bperror
shows only files from backups or the archives that occurred at or before the
specified date and time. Use the same format for the start date. The default
is the current date and time. The end date must be greater than or equal to
the start date.
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.
The following is a typical format for the -d and -e options:
[-d mm/dd/yyyy hh:mm:ss | -hoursago hours]
[-e mm/dd/yyyy hh:mm:ss]
-dt disk_type
Enables the user to specify a disk type. The following are the valid values for
disk_type:
0 - All
1 - BasicDisk
2 - NearStore
3 - SnapVault
6 - DiskPool
-hoursago hours
Specifies a NetBackup job ID. By default, bperror searches for all job IDs.
133
134
NetBackup Commands
bperror
-L
Reports in short format. This report produces a terse listing. This option is
useful for scripts or the programs that rework the listing contents into a
customized report format. This option is the default list type.
-M master_server,...
Displays the message that applies to the platform (UNIX or Windows) for the
specified status code. The default is to display the message for the platform
on which bperror is running. The -S or -statuscode option must be specified
when you use this option.
-r | -recommendation
Displays the recommended action for the specified status code from the
troubleshooting guide. The default is not to display the recommendation.
The -S or -statuscode option must be specified when you use this option.
-S status_code, -statuscode status_code
Displays the message that corresponds to the status code. This option has no
default condition.
-s severity, -s severity+
Specifies the severity of log messages to display. The defined values are ALL,
DEBUG, INFO, WARNING, ERROR, and CRITICAL.
You can specify severity in two ways. The first way is a list of one or more
severity values. For instance, "-s INFO ERROR" displays the messages with
either severity INFO or severity ERROR. The delimiter must be a blank (" ")
between the elements in the list . The second way is a single severity value
with "+" appended, which is this severity or greater. For instance "-s
WARNING+" displays the messages with severity values WARNING, ERROR, and
CRITICAL.
The default is ALL. The severity value can be in uppercase or lowercase.
NetBackup Commands
bperror
-server server_name
Specifies the type of log messages to display. The defined values are ALL,
BACKSTAT, MEDIADEV, GENERAL, BACKUP, ARCHIVE, RETRIEVE, and SECURITY. The
default is ALL. The type value can be upper or lower case. It is entered as a
list of one or more values. For instance, -t BACKSTAT MEDIADEV displays the
messages with either type BACKSTAT or type MEDIADEV. The delimiter between
the list elements must be a blank (" ").
-U
Verbose mode. This option causes bperror to log additional information for
the debugging purposes that go into the NetBackup-administration daily
debug log. -v is meaningful only when NetBackup has debug logs enabled
(install_path\NetBackup\logs\admin/usr/openv/netbackup/logs/admin
DISPLAY FORMATS
The following are display formats of the bperror command:
135
136
NetBackup Commands
bperror
bperror queries the NetBackup online troubleshooter on the local system for
the message that corresponds to the status code. bperror displays the message
text on one line and an explanation on a second line.
If -r is an option, bperror also queries for the troubleshooting recommendation
that corresponds to the status code. bperror displays the recommendation
following the status message, on one or more lines.
or the master servers in the -M option list. The display consists of the results
that are returned from querying the error catalog on the master server(s). The
results are limited to catalog the entries that satisfy all the bperror options.
For example, the bperror command line may contain options for client, start
time, and end time. If so, then bperror reports only the jobs that are run for
that client between the start time and end time.
The display variant that shows individual message entries from the error
catalog can appear in long (-L), user (-U), or short (-l) format. The display
variant that categorizes by status code can appear in user (-U) format only.
The following is the display content for each of these formats:
Error catalog display, individual message entries, long format (for example,
bperror -media -L). This report produces several lines per log entry, with
the following contents:
Line 1: Date and time
V:NetBackup version
S:Server
C:Client
J:Job ID
(U:Job group ID and an unused field.) If a policy is multistream enabled, the
job group ID is the job ID of the first job that spawned a collection of
multistreaming backups. If multistreaming is disabled for the policy, the job
group ID is always zero.
Line 2: Severity (severity name and severity code in hexadecimal)
Type (type name and type code in hexadecimal)
Who (name of the entity that added the log entry)
Line 3: Text (at the start of the log message text, continued on subsequent
lines if necessary)
Error catalog display, individual message entries, user format (for example,
bperror -media -U). The user format produces a header line that shows
column names, and one or more lines per log entry with these contents:
Line 1: Date and time
Server
NetBackup Commands
bperror
Client
Text (at the start of the log message, continued on subsequent lines if needed)
Error catalog display, individual message entries, short format (for example,
bperror -media -l). The short format produces a single line per log entry,
with the following contents:
Line 1: Time (internal system representation)
NetBackup version
Type code (decimal)
Severity code (decimal)
Server
Job ID
Job Group ID
An unused field
Client
Who
Text (the entire log message text, with no truncation of the line length)
Error catalog display that the status code categorizes. This display reports
only each unique status code, instead of listing every log entry for that status
code (for example, bperror -backstat -by_statcode -U). This option
produces two or more lines per status code, with the following contents:
Line 1: Status code
Text (the beginning of the log message text, continued on subsequent lines if
necessary)
Line 2: The list of clients for which this status occurred.
EXAMPLES
Example 1 - Display the error for a job that failed because the NetBackup
encryption package was not installed. Status code 9 is the NetBackup status code
for this failure. The second run of bperror displays the action that is recommended
for NetBackup status code 9.
# bperror -d 12/23/2010 16:00:00 -e 12/23/2010 17:00:00 -t backstat
-U
STATUS CLIENT
POLICY
SCHED
SERVER
TIME COMPLETED
9
plim
dhcrypt
user
plim
12/23/2010 16:38:09
an extension package is needed, but was not installed
# bperror -S 9 -r
an extension package is needed, but was not installed
A NetBackup extension product is required in order to perform the
137
138
NetBackup Commands
bperror
requested operation.
Install the required extension product.
Example 2 - Report the problems in the User format that have occurred in the
previous 24 hours.
# bperror -U -problems
TIME
SERVER CLIENT - TEXT
11/23/2007 16:07:39 raisins - no storage units configured
11/23/2007 16:07:39 raisins - scheduler exiting - failed reading
storage unit database information (217)
11/23/2007 16:17:38 raisins - no storage units configured
11/23/2007 16:17:38 raisins - scheduler exiting - failed reading
storage unit database information (217)
11/23/2007 18:11:03 raisins nut bpcd on nut exited with status 59:
access to the client was not allowed
11/23/2007? 18:11:20 raisins - WARNING: NetBackup database backup is
currently disabled
Example 3 - The following example displays status for type backstat for the jobs
that are run in the previous 24 hours. The option -by_statcode produces a display
that is organized by status code.
The display shows that one or more jobs for each of the clients chive, gava, and
raisins have completed successfully (the status code is 0). In addition, one or
more jobs for client nut have failed because nut did not allow access by the master
server or media server. (The status code is 59.)
# bperror -U -backstat -by_statcode
0
the requested operation was successfully completed
chive gava raisins
59
access to the client was not allowed
nut
Example 4 - Identify and retrieve the results for a particular user job. It first lists
the log entries with job IDs other than zero. It then runs a User-format report on
the job of interest.
# bperror -hoursago 2007 -L | grep 'S:' | egrep 'J\:[1-9]'
12/21/2007 17:24:14 V1 S:plim C:plim J:1 (U:0,0)
12/23/2007 16:31:04 V1 S:plim C:plim J:1 (U:0,0)
12/23/2007 16:38:04 V1 S:plim C:plim J:3 (U:0,0)
# bperror -d 1/7/2007 -jobid 34 -U
TIME
SERVER CLIENT - TEXT
01/07/2007 13:12:31 plim plim started backup job for client plim,
NetBackup Commands
bperror
Example 5 - Show media entries in the error catalog for the past 2000 hours.
bperror -hoursago 2000 -media -U
TTIME
SERVER CLIENT - TEXT
12/23/2007 16:31:04 plim plim Media Manager terminated during mount
of media id A00000, possible media mount timeout
12/24/2007 04:31:20 plim - media id A00000 removed from Media
Manager database (manual deassign)
Example 6 - Report and add up the total number of bytes backed up in the past 24
hours.
bperror -all -hoursago 24 | grep "successfully wrote backup id | awk
'{bytes= bytes + $20} END {print "backed up",bytes," Kbytes of
data"}'
backed up 64 Kbytes of data
up",bytes," Kbytes of data"}'
139
140
NetBackup Commands
bpexpdate
bpexpdate
bpexpdate change expiration date of backups in image catalog and media in
media catalog
SYNOPSIS
bpexpdate -m media_id -d date | 0 | infinity [-host name] [-force]
[-nodelete] [-notimmediate] [-M master_server,...]
bpexpdate -deassignempty [-m media_id] [-force] [-M master_server,...]
bpexpdate -backupid backup_id -d date | 0 | infinity [-client name]
[-copy number] [-force] [-nodelete] [-notimmediate] [-M
master_server,...]
bpexpdate -recalculate [-backupid backup_id] [-copy number] [-d date
| 0 | infinity] [-client name] [-policy name] [-ret retention_level]
[-sched type] [-M master_server,...]
bpexpdate -stype server_type [-dp disk_pool_name [-dv disk_volume]]
[-nodelete] [-notimmediate] [-M master_server,...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
NetBackup maintains catalogs, which are internal databases with backup image
and media information. The image record in the image catalog contains an
expiration date. The media ID in the media catalog also contains an expiration
date. The expiration date is the date and time when NetBackup removes the record
for a backup or a media ID from the corresponding catalog.
The bpexpdate command allows the expiration date and time of backups to be
changed in the NetBackup image catalog. The command is also used to change
the expiration of removable media in the NetBackup media catalog. If the date is
set to zero, bpexpdate immediately expires backups from the image catalog or
media from the media catalog. When a media ID is removed from the NetBackup
media catalog, it is also removed from the Enterprise Media Manager Database.
It is removed regardless of the medias previous state (FROZEN, SUSPENDED,
and so on).
You can change the expiration on a media ID basis or on an individual backup ID
basis. When you change the expiration date of a media ID, the expiration date of
NetBackup Commands
bpexpdate
all backups on the media are also changed. bpexpdate also provides the following
options:
Remove media from the media catalog if they no longer contain valid backups.
OPTIONS
The different formats of the command are as follows:
-backupid
Changes the expiration of a single backup. If the date is zero, the backup is
removed from the image catalog. If the backup is on removable media and
the -d expiration is greater than the current media ID expiration, the media
catalog expiration also changes. The change affects all copies of a backup,
unless the -copy option is used. The -copy option causes only the specified
copy to be affected.
-deassignempty
Searches the catalog for the removable media that no longer contain valid
backups. It removes the media from the media catalog and removes the media
IDs in the Media Manager catalog. The media is then available to use again.
You can use the NetBackup Images on Media report to determine if the
assigned media no longer contain valid backups.
-m
Changes the expiration date or removes the media ID from the media catalog
and associated backups from the NetBackup catalog. A separate expiration
date is maintained in the image catalog for each copy of a backup. When this
format is used, only the expiration of the copy on the media is affected. If you
remove the media ID from the media catalog by specifying a zero date, you
also remove it in the Enterprise Media Manager Database.
-recalculate
141
142
NetBackup Commands
bpexpdate
A string that identifies the storage server type. Possible values are
AdvancedDisk, OpenStorage (vendorname), and PureDisk.
OPTIONS
-client name
Specifies the client name for the -backupid and -recalculate operations.
For the backupid operation, this option causes NetBackup to first search for
the backup ID for the specified client. This option is useful if the client name
has changed.
For recalculate, this option causes NetBackup to recalculate the expiration
date to be based on the retention level for all the specified client backups.
-copy number
Expires or changes the expiration date of the specified copy number and is
valid only with the -backupid and -recalculate options. Valid values are 1
through 10.
If the primary copy is expired, the other copy becomes the primary copy. If
this option is not specified, the expiration affects both copies of the backup.
-d date
Specifies the expiration date and time. date can be any one of the following:
mm/dd/yy hh:mm:ss
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.
NetBackup Commands
bpexpdate
-deassignempty
Expires the removable media from the media catalog when that media no
longer contain valid backups. It also deassigns the media ID in the Media
Manager catalog.
-dp disk_pool_name -dv disk_volume
Specifies the disk pool and, optionally, the disk volume for the expiration
date operation to be performed.
-force
Before you run the specified operation, bpexpdate queries before it starts the
operation. This option forces the bpexpdate command to carry out the
operation without querying the user.
-host name
Note: For the NetBackup server, this option is not required because only one
server (the master) exists. If you do use the option, specify the host name of
that server.
Specifies the host name of the server to which the media is assigned. This
option should be used only with the -m media_id option, and then only if the
following is true: The master has remote media servers and the volume was
not written on the server where you run bpexpdate.
For example, assume that you have a master server named whale and a media
server named eel. You run the following command on whale to remove media
ID BU0001 manually from the media catalog and all corresponding backups
from the image catalog:
bpexpdate -m BU0001 -d 0 -host eel
You can use the NetBackup Media List report to determine which servers
media catalog has the volume.
-m media_id
Specifies the media ID that the expiration date change affects. The expiration
dates of the backups on the media ID also change. The -d option must be
included with this option.
This option can also be used when the -deassignempty option is specified to
check if valid backups exist on this particular media ID. In this case, do not
include the -d option.
The media ID must be six or fewer characters and must be in the NetBackup
media catalog.
143
144
NetBackup Commands
bpexpdate
-M master_server [,...]
Specifies the master server that manages the media catalog that has the
media ID. If this option is not specified, the default is one of the following:
For NetBackup server :
NetBackup server supports only one server (the master) with no remote media
servers. Therefore, the default in this case is always the master server where
you run the command.
For NetBackup Enterprise Server:
If the command is run on a master server, then that server is the default. If
the command is run on a media server that is not the master, then the master
for that media server is the default.
-nodelete
Deletes the backup from the image catalog but does not delete it from the
disk storage. Use this option when you unimport a disk group from one master
server and import the disk group to a different master server.
-notimmediate
Inhibits the call that bpexpdate makes to the nbdelete command after it
expires an image on disk. If you intend to delete many images at the same
time, use -notimmediate to avoid the overhead of multiple job creation for
nbdelete to process. You can then run the nbdelete command later.
-policy name
Specifies the policy name and is valid with the -recalculate option. When
the policy name is specified, the expiration is recalculated based on the
retention level for all backups that are created in this policy.
-recalculate
Recalculates the expiration of backups that are based on the retention level
or you can specify a new expiration date. You can include other options to
change the expiration for a single backup, or for the following: All backups
for a specific client name, policy name, or schedule type. Either the -d or -ret
option must be specified with this option.
-ret retention_level
Specifies the retention level to use when you recalculate expiration dates and
is valid with the -recalculate option. Levels range from 0 to 24. The new
expiration date is the backups creation date plus this retention level. You
must specify either -backupid or -policy with this option.
-sched type
Specifies the schedule type and is valid with the -recalculate option. When
the type is specified, the expiration is recalculated based on the retention
NetBackup Commands
bpexpdate
level for all backups that are created with this schedule type. Enter a numeric
value for type as follows:
0 = Full
1 = Differential Incremental
2 = User Backup
3 = User Archive
4 = Cumulative Incremental
NOTES
Some options in large environments can take a significant amount of time to
complete. Changes that cause backups or media to expire are irrevocable. You
may be required to import backups or recover previous versions of the catalogs
if you make mistakes by using this command.
EXAMPLES
Example 1 - The following command runs on the master server and removes media
ID BU0002 from the media catalog. It deassigns the media ID in the media manager
catalog. It also expires associated image records in the image catalog.
# bpexpdate -m BU0002 -d 0
Example 3 - Remove the backup from the image catalog. Since the -copy option
is not specified, all copies are removed.
# bpexpdate -backupid eel_0904219764 -d 0
Example 4 - Check for media in the media catalog of host cat that is still assigned,
but no longer contain valid backups. The command removes any such media from
the catalog and deassigns them in the media manager catalog.
# bpexpdate -deassignempty -host cat
145
146
NetBackup Commands
bpexpdate
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/media/*
/usr/openv/netbackup/db/images/*
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\media\*
nstall_path\NetBackup\db\images\*
NetBackup Commands
bpfis
bpfis
bpfis create or delete a snapshot, or return information about existing snapshots
SYNOPSIS
bpfis create [-rhost host] [-id id] [-v] [-V] [-owner owner] -fim
fim_name[:option=value,option=value,...] [-pt policy_type] file1
[file2...]
bpfis delete [-force] -id id
bpfis deletedb -id id
bpfis query [-id id]
bpfis verify [create_options]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bpfis command can create, delete, or query snapshots of a client system (file
system or volume).
Note: To store the image on tape or other media requires that you run a separate
backup job.
For more detailed examples and procedures for using bpfis, refer to the NetBackup
Snapshot Client Administrators Guide.
You must have administrator privileges to run this command.
OPTIONS
The bpfis command allows the following operations:
create
Deletes from the snapshot database the snapshot entry that -id identifies.
147
148
NetBackup Commands
bpfis
query
The remote host or alternate client on which the snapshot is made accessible.
The default is the local host.
On UNIX and Linux systems, the -rhost option can be used with the
FlashSnap, VVR, TimeFinder, BusinessCopy, and ShadowImage methods only.
On Windows systems, the -rhost option can be used with the FlashSnap
method only.
-id
Indicates the verbosity levels in the log files. -V is a higher level of verbosity
than -v. Default is non-verbose.
-owner owner
Specifies the snapshot method to use to create the image. Select the method
by using the type of data and hardware that the client uses.
For details on snapshot methods, refer to the NetBackup Snapshot Client
Administrators Guide.
The available options depend on the snapshot method. For a list of snapshot
methods and their options, refer to the <opt_params> area of each snapshot
method (FIM) listed in the vfm.conf file.
For example, under the BusinessCopy snapshot method, the first optional
parameter is listed as follows:
keep_fi=%b[0]#Keep frozen image after backup
NetBackup Commands
bpfis
Where keep_fi= is the option, and the value is Boolean (0 for no, 1 for yes).
For an example of the bpfis command that uses the value option, refer to
bpfis in the NetBackup Snapshot Client Administrators Guide.
-pt policy_type
Specifies the NetBackup policy type that the snapshot method must support.
file1 file2
Specifies the path of the file system or volume from which the snapshot is to
be made.
-force
EXAMPLES
Example 1 - Create a snapshot of /mnt/ufscon on hostB by using the FlashSnap
method on a UNIX or Linux client.
/usr/openv/netbackup/bin/bpfis create -rhost hostB -fim FlashSnap
/mnt/ufscon
Sample output:
INF - BACKUP START 26808
INF - FIS_ID=1034037338
INF - REMAP FILE BACKUP /mnt/ufscon USING
/tmp/_vrts_frzn_img_26808/mnt/ufscon
OPTIONS:ALT_PATH_PREFIX=/tmp/_vrts_frzn_img_26808,FITYPE
=MIRROR,MNTPOINT=/mnt/ufscon,FSTYPE=ufs
=MIRROR,MNTPOINT=E:\,FSTYPE=NTFS
INF - EXIT STATUS 0: the requested operation was successfully
completed
Sample output:
INF - BACKUP START 26808
INF - FIS_ID=1034037338
INF - REMAP FILE BACKUP E: USING <GUID>
OPTIONS:ALT_PATH_PREFIX=/tmp/_vrts_frzn_img_26808,FITYPE
149
150
NetBackup Commands
bpfis
Sample output:
INF
INF
INF
INF
INF - REMAP FILE BACKUP /mnt/ufscon USING (UNIX and Linux systems)
INF - REMAP FILE BACKUP E: USING <GUID> (Windows systems)
/tmp/_vrts_frzn_img_26808/mnt/ufscon (UNIX and Linux systems)
OPTIONS:ALT_PATH_PREFIX=/tmp/_vrts_frzn_img_26808,FITYPE=MIRROR,
MNTPOINT=/mnt/ufscon,FSTYPE=ufs (UNIX and Linux systems)
MNTPOINT=E:\,FSTYPE=NTFS (Windows systems)
INF - EXIT STATUS 0: the requested operation was successfully
completed
Sample output:
INF - BACKUP START 26839
INF - EXIT STATUS 0: the requested operation was successfully
completed
NetBackup Commands
bpgetconfig
bpgetconfig
bpgetconfig helper program to obtain configuration information
SYNOPSIS
bpgetconfig -M master [-x | -X] [config_item ...]
bpgetconfig [-u | -h] [-x | -X] [config_item ...]
bpgetconfig -H config_item
bpgetconfig -g server [-L | -U | -l] [-c] [-A]
bpgetconfig -s server [-L | -U | -l] [-c] [-A]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpgetconfig can be used as a stand-alone program or as a helper program for the
backuptrace and the restoretrace commands to obtain configuration
OPTIONS
-A
Displays all available system information. The -A option can be used only
with the -g or -s option.
-c
Displays the ciphers, one per line, that are appended to the -g or -s option
output. The -c option can be used only with the -g or -s option.
-e
151
152
NetBackup Commands
bpgetconfig
-g server
Selects the host server (server) for which the following general Backup Exec
and NetBackup information appears:
Master or Client
-H config_item
Displays a long, user-readable list. The -L option can be used only with the
-g or -s option.
-l
Selects the host server (server) for which the following general system
information that is NetBackup specific appears:
Master or Client
NetBackup Commands
bpgetconfig
Version Name
Version number
-t
Displays the tier information, one item per line, that is appended to the -s
option output. The -t option can be used only with the -g or -s option.
-U
Displays a brief, user-readable list (default). The -U option can be used only
with the -g or -s option.
-u
EXAMPLES
Example 1 - Retrieve the VERSIONINFO option setting from the bp.conf file.
# bpgetconfig VERSIONINFO
VERSIONINFO = "SunOS" "5.9" "Unknown" "NetBackup" "7.0" 700000
153
154
NetBackup Commands
bpgetconfig
Cipher =
Patch Level = 7.0
NetBackup Commands
bpgetdebuglog
bpgetdebuglog
bpgetdebuglog Run helper program for backuptrace and restoretrace. Prints
SYNOPSIS
bpgetdebuglog remote_machine [remote_program mmddyy]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
If all three arguments are specified, bpgetdebuglog prints the contents of the
specified debug log file to standard output. If only remote_machine is specified,
bpgetdebuglog prints to standard output the number of seconds of clock drift
between the local computer and the remote machine. A positive number means
that the local computer is ahead of the remote machine. A negative number means
that the remote machine is ahead of the local computer.
The bpgetdebuglog command must be in the specified directory (see SYNOPSIS)
for backuptrace and restoretrace to use it.
You must have administrator privileges to run this command.
OPTIONS
remote_machine
The day stamp that is used to identify the log file (log.mmddyy for UNIX and
Linux, mmddyy.log for Windows) to be read.
EXAMPLE
# bpgetdebuglog peony bpcd 071207
# bpgetdebuglog peony
155
156
NetBackup Commands
bpimage
bpimage
bpimage perform functions on stored images in a database
SYNOPSIS
bpimage -[de]compress [-allclients | -client name]
bpimage [-M master_server,...,master_server]
bpimage -npc copy # -backupid backupid [-client name]
bpimage -newserver newserver_name [-oldserver oldserver_name] [-id
id]
bpimage -deletecopy # -backupid backupid
bpimage -testlock # -backupid backupid
bpimage -prunetir [-allclients | -client name] -cleanup
bpimage -create_image_list -client name
bpimage -index index_number -client name
bpimage -wff path_bytes -backupid backupid [-client name]
bpimage -update [-secinfo 0|1 | -rfile 0|1 | -filesysonly 0|1 |
-numfiles number | -keyword keyword_phrase | -objdesc string] [-client
name -policy name -t type -d mm/dd/yyyy HH:MM:SS] [-id id]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
This command can be used to perform many different functions to images that
are stored in a database. Some of the functions are as follows:
Index a client.
NetBackup Commands
bpimage
OPTIONS
The following options represent the criteria that determine which images or media
are selected for the report. Where images are discussed in these options, media
can be substituted if the context refers to a media report.
-allclients
Selects all NetBackup clients that are already backed up on the system.
-backupid backup_id
Specifies a client name to use for finding backups or archives to list. This
name must be as it appears in the NetBackup catalog.
-cleanup
Creates an image_list file and an image_info file that can be used quickly
to qualify an image.
-d date
Specifies the start date and end date range for the listing.
-d specifies a start date and time for the listing. The list shows only images
in backups or the archives that occurred at or after the specified date and
time.
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
The default is the previous midnight.
157
158
NetBackup Commands
bpimage
-[de]compress
Removes the images that the copy number (#) and the backup_id specify.
-filesysonly 0|1
Specifies the media ID when used with the -newserver command or specifies
the backup ID when used with the -update command.
-index n
Indexes the database. The n variable is the index level and has a range from
1 to 9. A value of 9 provides the most optimum index. This option applies
only to ASCII.
-keyword "keyword_phrase"
Specifies a keyword phrase for NetBackup to use when it searches. The phrase
must match the phrase that was previously associated with the image.
-objdesc string
Specifies the object description string of the Informix client type when used
with the -update command.
-newserver name | -oldserver name
Sets the specified image as the primary image, which is based on the copy
number of the image.
-numfiles number
Specifies the number of files when used with the -update command.
-M master_server,...
NetBackup Commands
bpimage
-policy name
Searches for backups to import in the specified policy. The default is all
policies.
-prunetir
Prunes the true image restore (TIR) information from the specified clients.
The default is all clients.
-rfile 0|1
Use the Restore file when used with the -update command.
-secinfo 0|1
Specifies a policy type. By default, bpimage searches for all policy types. type
is one of the following character strings:
Informix-On-BAR
MS-Exchange-Server
MS-SQL-Server
MS-Windows
NetWare
Oracle
OS/2
Standard
Sybase
NDMP
Writes the files file (image .f file) for the backup that is specified with
-backupID.
159
160
NetBackup Commands
bpimagelist
bpimagelist
bpimagelist produce status report on NetBackup images or removable media
SYNOPSIS
bpimagelist [-media] [-l | -L | -U | -idonly] [-tape] [-d date] [-e
date] [-hoursago hours] [-keyword "keyword phrase"] [-client
client_name] [-server server_name] [-backupid backup_id] [-option
INCLUDE_PRE_IMPORT | INCLUDE_TIR | LIST_COMPLETE_COPIES |
LIST_OLD_TO_NEW | ONLY_PRE_IMPORT | ONLY_TIR] [-policy policy_name]
[-pt policy_type] [-rl retention_level] [-sl sched_label] [-st
sched_type] [-class_id class_guid] [-stl_complete] [-stl_incomplete]
[-stl_name storage_service_name] [-M master_server,...] [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd
DESCRIPTION
bpimagelist uses a specified format to report on catalog images or the removable
media that matches the attributes that are sent from the command options.
bpimagelist reports on the removable media if the -media option is on the
command line. If not, it reports on the catalog images.
It writes its debug log information to the following directory:
On UNIX and Linux systems: /usr/openv/netbackup/logs/admin
On Windows systems: install_path\NetBackup\logs\admin
OPTIONS
The following is the bpimagelist report-type option:
NetBackup Commands
bpimagelist
-media
Specifies that the listing reports on the removable media that are based on
a set of criteria. If -media is not in the command line, the report is on images,
not media.
The following are the bpimagelist report-format options:
-U
Generates the report in Long mode. For instance, for the Media List report,
the report lists the information for each media ID as a series of attribute =
value pairs. The density value is provided as both a descriptive term and a
number.
-l
Reports in Short mode, which produces a terse listing. This option is useful
for the scripts or programs that rework the listing contents into a customized
report format.
-idonly
Produces an abbreviated list. For an image list, the list contains the creation
time, backup ID, and schedule type of each image. For instance, if the list
criterion is a window of time, the image list contains the following: For each
image that is created in this window, only the creation time, backup ID, and
schedule type of the image.
For a media list, the list contains only the applicable media IDs. For instance,
if the list criterion is a window of time, the list contains only the media IDs
that are written in this window.
The following options represent the criteria that determine which images or
media are selected for the report. Where images are discussed in these options,
media can be substituted if the report is a media report.
-hoursago hours
Includes the images that were written up to this many hours ago. This option
is equivalent to a specification of a start time (-d) of the current time minus
hours. hours must be 1 or greater.
-option option_name,...
Specifies one or more criteria for finding images to list. option_name is one
of the following character strings, in uppercase or lowercase:
161
162
NetBackup Commands
bpimagelist
import.
Refer to the bpimport command description or the NetBackup
Administrators Guide for more information.
created.
Refer to the bpcpinfo command description or the NetBackup
Administrators Guide for more information on this topic.
is still in process.
import.
created.
The default is no restrictions on the selected images.
-backupid backup_id
Specifies a backup ID to use for finding applicable images (applies only to the
image list).
-class_id class_guid
Specifies a client name to use for finding backups or archives to list. This
name must be as it appears in the NetBackup catalog. By default, bpimagelist
searches for all clients.
-server server_name
NetBackup Commands
bpimagelist
The default is to report all media in the image catalog on the local master
server, which is equivalent to the specification of -server ALL.
-stl_complete
Reports only the images that the storage lifecycle completely processed. This
option cannot be used with the stl_incomplete option.
-stl_incomplete
Reports only the images that the storage lifecycle has not completely
processed. This option cannot be used with the stl_complete option.
-stl_name storage_lifecycle_name
Specifies a storage lifecycle name to be used when you select images. Only
images with the specified storage lifecycle name are selected.
-M master_server,...
Specifies a policy type. By default, bpimagelist searches for all policy types.
policy_type is one of the following character strings:
Informix-On-BAR
MS-Exchange-Server
MS-SQL-Server
MS-SharePoint
MS-Windows-NT
NetWare
Oracle
OS/2
Standard
Sybase
NDMP
163
164
NetBackup Commands
bpimagelist
Note that the following policy types apply only to the NetBackup Enterprise
Server:
AFS
DataTools-SQL-BackTrack
DB2
Enterprise-Vault
FlashBackup
SAP
Split-Mirror
-rl retention_level
Specifies the start date and end date range for the listing. The default values
for these options are as follows:
-d specifies a start date and time for the listing. The output list shows only
images in backups or the archives that occurred at or after the specified date
and time.
-e specifies an end date and time for the listing. The output list shows only
files from backups or the archives that occurred at or before the specified
date and time. Use the same format as for the start date.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II.
The following is part of the -help USAGE statement for -bpimagelist that
shows the -d and -e options:
[-d mm/dd/yy hh:mm:ss] [-e mm/dd/yy hh:mm:ss]
NetBackup Commands
bpimagelist
-keyword "keyword_phrase"
Specifies a keyword phrase for NetBackup to use when it searches. The phrase
must match the one that was previously associated with the image. For
instance, the -k option of the bpbackup or the bparchive command associates
a keyword with the image when the image is created.
-sl sched_label
Specifies a schedule label for the image selection. The default is all schedules.
-st sched_type
Specifies a schedule type for the image selection. The default is any schedule
type. Valid values are as follows:
-policy name
Searches for backups to import in the specified policy. The default is all
policies.
The following are other bpimagelist options:
-tape
Displays in the list only the images that have at least one fragment that resides
on removable or tape-based media. Any disk-based fragments in these images
are ignored. If an image has fragments on both tape and disk, this option
displays only the tape-based fragments.
-v
Selects the verbose mode. This option causes bpimagelist to log additional
information for debugging purposes. The information goes into the NetBackup
administration daily debug log. This option is meaningful only when the
debug log function is enabled; that is, when the following directory is defined:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLES
Example 1 - Show the last time each media ID available to a server had a backup
image that was written today:
165
166
NetBackup Commands
bpimagelist
# bpimagelist -media -U
Media ID
Last Written
----------------------IBM000
01/06/2010 01:06
AEK800
01/06/2010 03:01
C0015
01/06/2010 02:01
Server
---------hatt
hatt
hatt
EXAMPLE 2
Example 2 - Show the last time the media IDs available to the server had a backup
image that was written during the specified time:
# bpimagelist -media -d 01/05/2010 18:00:46 -e 01/06/2010 23:59:59
-U
Media ID
Last Written
Server
-------------------------------IBM000
01/06/2010 01:06
hatt
AEK800
01/06/2010 03:01
hatt
C0015
01/06/2010 02:01
hatt
143191
01/05/2010 23:00
hatt
Expires
Files
KB
-------- -------- -----02/03/2010 1122 202624
02/03/2010 1122 202624
02/03/2010
531 1055104
02/03/2010
961
31776
02/03/2010 2063 603328
02/03/2010 2063 603328
C
N
N
N
N
N
N
Sched Type
-----------Full Backup
Full Backup
Full Backup
Full Backup
Full Backup
Full Backup
FILES
UNIX and Linux systems:
Policy
---------3590Grau
IBM35pol
DELLpol
QUALpol
IBM35pol
3590Grau
NetBackup Commands
bpimagelist
/usr/openv/netbackup/logs/admin/log.mmddyy
/usr/openv/netbackup/db/images
Windows systems:
install_path\NetBackup\logs\admin\log.mmddyy
install_path\NetBackup\db\images
SEE ALSO
See bp on page 50.
See bparchive on page 53.
See bpbackup on page 58.
See bprestore on page 319.
167
168
NetBackup Commands
bpimmedia
bpimmedia
bpimmedia display information about NetBackup images on media
SYNOPSIS
bpimmedia [-disk_stu storage_unit_label | [-dt disk_type | -stype
server_type [-dp disk_pool_name [-dv disk_volume]] [-legacy]]] [-l
| -L] [-disk | -tape] [-policy policy_name] [-client client_name]
[-d date time] [-e date time] [-mediaid media_id | path_name] [-mtype
image_type] [-option option_name] [-rl retlevel] [-sl sched_label]
[-t sched_type] [-M master_server...] [-verbose]
bpimmedia -spanpools [-cn copy_number] [-mediaid media_id] [-U]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpimmedia queries the NetBackup image catalog and produces the following two
An Images-on-Media report
A Spanpools report
The first form of bpimmedia in the SYNOPSIS displays a set of NetBackup images
in the Images-on-Media report. This report lists the contents of media as recorded
in the NetBackup image catalog.
You can generate this report for any medium including disk. Filter the report
contents according to client, media ID, path, and so on.
Refer to the section on NetBackup Reports in the NetBackup Administrators Guide
for more information, including details about the fields in the Images-on-Media
report.
The report does not show information for the media that is used in backups of
the NetBackup catalogs.
Several options (-dt, -dp, -dv, -stype) report images present on SAN disk storage
only, not on any other disk-resident images. Other options and output format
continue to function as before.
NetBackup Commands
bpimmedia
The second SYNOPSIS form of bpimmedia uses -spanpools to list the disk ID pools
that are related because images span from one volume to another. The output
lists, for each media server in the cluster, the media IDs that have spanned images.
The -spanpools form of bpimmedia must be run on the NetBackup master server
that administers the volumes.
For more information on spanned images, see the Spanning Media topic in the
NetBackup Administrators Guide.
Only removable media types are processed.
bpimmedia sends its error messages to stderr. bpimmedia sends a log of its activity
OPTIONS
client client_name
Copy number (1 or 2) of a backup ID. The default is copy 1. This option is used
only in combination with -spanpools.
-d date time, -e date time
Specifies the start date and end date range for the listing.
-d specifies a start date and time for the listing. The output list shows only
images in backups or the archives that occurred at or after the specified date
and time.
-e specifies an end date and time for the listing. The output list shows only
files from backups or the archives that occurred at or before the specified
date and time. Use the same format as for the start date. The default is the
current date and time.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
The default is the previous midnight.
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
169
170
NetBackup Commands
bpimmedia
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.
The following is part of the -help USAGE statement for -bpimagelist that
shows the -d and -e options:
[-d mm/dd/yy hh:mm:ss] [-e mm/dd/yy hh:mm:ss]
-dp disk_pool_name
Specifies the type of disk storage. The following are valid options:
1 - BasicDisk
2 - NearStore
3 - SnapVault
This option does not apply to the OpenStorage disk type.
-dv disk_volume
Displays the images that reside on the specified disk volume only. The input
value is the volume path for NearStore, the path for BasicDisk, and the volume
name for SharedDisk (NetBackup 6.5 media servers only).
-L
The list type is short. This setting is the default if the command line has no
list-type option (for example, if you enter bpimmedia and a carriage return).
See the DISPLAY FORMATS section that follows.
-legacy
NetBackup Commands
bpimmedia
stops at that point in the list. The default is the master server for the system
where the command is entered.
-mediaid media_id | pathname
Image type. The defined values and their interpretations are as follows:
2 = Imported backup
-option option_name
import.
The default is INCLUDE_PRE_IMPORT.
-policy policy_name
Searches for images with the specified policy name. By default, bpimmedia
searches for images for all policies.
-rl retlevel
Searches for images with the specified schedule label. By default, bpimmedia
searches for images for all schedule labels.
171
172
NetBackup Commands
bpimmedia
-spanpools
Specifies a string that identifies the storage server type. Possible values are
AdvancedDisk, OpenStorage (vendorname), PureDisk, and SharedDisk
(NetBackup 6.5 media servers only).
-t sched_type
Specifies a schedule type for the image selection. The default is any schedule
type. Valid values, in either uppercase or lowercase, are as follows:
-tape
Displays in the Images-on-Media report only the images that have at least
one fragment that resides on removable or tape-based media. Disk-based
fragments in these images are ignored. If an image has fragments on both
tape and disk, this option displays only the tape-based fragments.
-U
The list type is user. This option is used only in combination with -spanpools.
See the DISPLAY FORMATS section that follows.
-verbose
Select verbose mode for logging. This option is only meaningful when it runs
with debug logging on; that is, when the following directory is defined:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
DISPLAY FORMATS
IMAGES-ON-MEDIA REPORT
The Images-on-Media report consists of two formats, short (-l or default) and
long (-L).
NetBackup Commands
bpimmedia
To process and use the output of bpimmedia, use the -l option. The output of
bpimmedia that uses the -L or -U options may be truncated for the Backup-ID,
Policy, and Host columns. The -L or -U options are useful when you want to obtain
a quick, more readable view of the NetBackup images on media.
The following shows the long display format (-L) and the short display format (-l)
of the Images-on-Media report:
173
174
NetBackup Commands
bpimmedia
NetBackup Commands
bpimmedia
SPANPOOLS REPORT
The Spanpools report has two formats: user (-U option) and short (the default).
Both formats list the server name and the pool data for each server. It lists the
media IDs for each pool of media that share spanned backup images. When
175
176
NetBackup Commands
bpimmedia
-mediaid appears on the command line, only the server pool and the disk pool
EXAMPLES
Example 1 - List the images for policy c_NDMP. This request runs on a NetBackup
media server. The report is based on the image catalog on the media servers
master server, almond.
# bpimmedia -L -policy c_NDMP
Backup-ID
Policy Type RL Files
C E T PC Expires
Copy Frag
KB Type Density FNum
Off
Host
DWO MPX Expires MediaID
-------------------------------------------------------------------------------------t_0929653085
c_NDMP FULL 3
1 IDX
844 RMed dlt
2
1
1
9136 RMed dlt
1
CB7514
5909
N
0
0
R 1
15:58 07/18/2007
almond
3
CB7514
almond
3
N
15:58 07/18/2007
Example 2 - Display the tapes that are required to restore a particular file. If the
bpimmedia command line provides the criteria to identify an individual backup,
the output shows the media that was used for the backup.
NetBackup Commands
bpimmedia
In this case, the command line provides the client, the date of the backup and the
schedule type. The output shows that tape A00002 on the server plim contains
the backup.
# bpimmedia -L -client gava -d 2/7/2007 -t UBAK
Backup-ID
Policy
Type RL Files
C E T PC Expires
Copy Frag
KB Type Density FNum
Off
Host
DWO MPX Expires
MediaID
-------------------------------------------------------------------------------------------gava_0949949686
regr1_guav UBAK
1
1
10256 RMed dlt
11
A00002
25
0
N N
plim
1
0
12:54 03/09/2007
Y
12:54 03/09/2007
Example 3 - List in long format all the backups in the image catalog on master
server gava.
# bpimmedia -L -M gava
Backup-ID
Policy
Type RL Files
C E T PC Expires
Copy Frag
KB Type Density FNum
Off
Host
DWO MPX Expires
MediaID
-------------------------------------------------------------------------------------gava_0949599942
test-policy FULL 1
15
N N R 1
11:45 02/17/2007
1
1
224 Disk gava
N
11:45 02/17/20
/var/qatest/storage_unit//gava_0949599942_C1_F1
3
0
0
5909
N N
almond
almond
1
3
3
15:58 07/18/2007
CB7514
N
15:58 07/18/2007
177
178
NetBackup Commands
bpimmedia
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:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/images
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\images
SEE ALSO
See bpbackupdb on page 66.
See bpduplicate on page 122.
See bpimport on page 179.
NetBackup Commands
bpimport
bpimport
bpimport import NetBackup and Backup Exec backups that are expired or are
SYNOPSIS
bpimport -create_db_info -id media_id or path | -stype server_type
[-dp disk_pool_name [-dv disk_volume]] [-server name] [-L output_file
[-en]] [-passwd] [-local] [-nh ndmp_host [-mst media_subtype]]
bpimport -drfile -id media_id or path | -stype server_type [-dp
disk_pool_name [-dv disk_volume]] -drfile_dest dir_name_on_master
[-client name] [-server name] [-L output_file [-en]] [-passwd]
[-priority number]
bpimport [-l] [-p] [-pb] [-PD] [-PM] [-v] [-local] [-client name]
[-M master_server] [-Bidfile file_name] [-st sched_type] [-sl
sched_label] [-L output_file [-en]] [-policy name] [-s startdate]
[-e enddate] [-pt policy_type] [-hoursago hours] [-cn copy_number]
[-backupid backup_id] [[-id media_id | path] | -stype server_type]]
[-dp disk_pool_name [-dv disk_volume]] [-priority number]
[-from_replica]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpimport command allows backups to be imported. This command is useful
for importing expired backups or the backups from another NetBackup server.
The import operation consists of the following two phases:
Phase 1 is performed with the first form of the command that appears in the
Synopsis (-create_db_info option). This step recreates catalog entries for
the backups that are on the specified media.
Phase 2 is performed with the second form of the command that appears in
the Synopsis. This step imports the backups from the media.
The expiration date for imported backups is the current date plus the retention
period. For example, if a backup is imported on 14 November 2010 and its retention
level is one week, its new expiration date is 21 November 2010.
179
180
NetBackup Commands
bpimport
OPTIONS
-backupid backup_id
file_name specifies a file that contains a list of backup IDs to import. List one
backup ID per line in the file. If this option is included, other selection criteria
are ignored.
In addition, NetBackup removes the file that is specified with the -Bidfile
parameter during the activation of that command line interface (CLI). It is
removed because the NetBackup GUIs commonly use this parameter. The
GUIs expect the command-line interface to remove the temporary file that
was used for the -Bidfile option upon completion. Direct command-line
interface users can also use the option, however it removes the file.
-client name
The host name of the client for which the backups were performed. The
default is all clients.
-cn copy_number
Specifies the source copy number of the backups to import. Valid values are
1 through 10. The default is all copies.
-create_db_info
This option recreates catalog entries for the backups that are on the specified
media. It skips the backups that are already in the catalog. This option only
creates information about the backups that are candidates for import, and
does not perform the import operation. The bpimport command must be run
with this option before you import any backups.
-dp disk_pool_name [-dv disk_volume]
Imports images on the specified disk pool only. Optionally, the import can
be restricted to the images that reside on the specified disk volume only. The
disk_volume argument is the volume path for NearStore, the path for
BasicDisk, and the volume name for SharedDisk (NetBackup 6.5 media servers
only).
Option -stype is required with this option.
NetBackup Commands
bpimport
-e enddate, -s startdate
Specifies the start date and end date range for all backups to import.
-s specifies a start date and time for the listing. The output list shows only
images in backups or the archives that occurred at or after the specified date
and time. The default for the start date is 24 hours before the current date
and time.
-e specifies an end date and time for the listing. The output list shows only
files from backups or the archives that occurred at or before the specified
date and time. Use the same format as for the start date. The default is the
current date and time.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
The default is the previous midnight.
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.
The following is part of the -help USAGE statement for -bpimagelist that
shows the -s and -e options:
-s mm/dd/yy [hh[:mm[:ss]]] -e mm/dd/yy [hh[:mm[:ss]]]
-from_replica
Scans for images only that are capable of automatic import and places them
in the Storage Lifecycle Policy automatic import worklist. This option is part
of Phase 1 of the import.
-hoursago hours
Specifies the number of hours to search before the current time for backups.
Do not use with the -s option. The default is the previous midnight.
-id media_id | path
Disk media:
Specifies the path to the storage directory that contains the backup to be
imported.
Tape media:
181
182
NetBackup Commands
bpimport
For step 1 (-create_db_info), this option specifies the media ID that has the
backups you plan to import. This option is required with -create_db_info.
For step 2, this option designates a specific media ID from which to import
backups. The default is all media IDs that were processed in step 1 of the
import operation.
A backup ID that begins on a media ID that step 1 does not process, does not
import (the backup is incomplete).
-L output_file [-en]
Specifies the name of a file in which to write progress information. The default
is not to use a progress file.
Include the -en option to generate a log that is in English. The name of the
log contains the string _en. This option is useful to support the personnel
that assist in a distributed environment where different locales may create
logs of various languages.
-l
Produces the output in the progress log that lists each imported file.
-local
When a host other than master server initiates bpimport and -local is not
used (default), the following occurs: bpimport starts a remote copy of the
command on the master server.
The remote copy allows the command to be terminated from the Activity
Monitor.
Use -local to prevent the creation of a remote copy on the master server.
You also can use it to run the bpimport only from the host where it was
initiated.
If the -local option is used, bpimport cannot be canceled from the Activity
Monitor.
-M master_server
Note: This option is not required for NetBackup server because it has only
one server, the master. If you do use this option in this case, specify the
NetBackup master where you run the command.
Specifies the master server that manages the media catalog that has the
media ID. If this option is not specified, the default is one of the following:
If the command is run on a master server, then that server is the default.
NetBackup Commands
bpimport
If the command is run on a media server that is not the master, then the
master for that media server is the default.
-p
Previews backups to import according to the option settings, but does not
perform the import. Displays the media IDs, server name, and information
about the backups to import.
-passwd
Catalogs the password-protected Backup Exec media when used with the
Backup Exec tape reader option. bpimport prompts the user for the password
and compares it with the password on the media. If the passwords match, the
job proceeds. If the passwords do not match, the job fails.
Use -passwd only when Backup Exec media are imported and password
protected. This media can be imported only on a Windows media server.
-pb
Previews the backups to import but does not perform the import. Similar to
the -p option, but does not display the backups.
-PD
Same as the -PM option, except the backups sort by date and time (newest to
oldest).
-PM
Searches for backups to import in the specified policy. The default is all
policies.
-priority number
Specifies a new priority for the import job that overrides the default job
priority.
-pt policy_type
Searches for the backups that the specified policy type created. The default
is any policy type.
Valid values are:
Informix-On-BAR
MS-Exchange-Server
MS-SharePoint
MS-SQL-Server
183
184
NetBackup Commands
bpimport
MS-Windows-NT
NDMP
NetWare
Oracle
OS/2
Standard
Sybase
Specifies the name of the media server. The volume database for this server
must have a record of the media ID that contains the backups to import. The
default is the media server where the command is run.
Note: The NetBackup server has only one server (the master). When you use
NetBackup server, specify the name of that server.
-sl sched_label
Search for backups to import that the specified schedule created. The default
is all schedules.
-st sched_type
Search for backups to import that the specified schedule type created. The
default is any schedule type.
Valid values are as follows:
FULL (full backup)
INCR (differential-incremental backup)
CINC (cumulative-incremental backup)
UBAK (user backup)
UARC (user archive)
NOT_ARCHIVE (all backups except user archive)
NetBackup Commands
bpimport
-stype server_type
A string that identifies the storage server type. Possible values are
AdvancedDisk, OpenStorage (vendorname), PureDisk, and SharedDisk
(NetBackup 6.5 media servers only).
-v
EXAMPLES
Example 1 - Create all on one line catalog information for backups on media ID
A0000. The media host hostname is cat. The progress file is bpimport.ls, which
is located in the tmp directory.
UNIX and Linux systems: # bpimport -create_db_info -id A0000 -server
cat -L /tmp/bpimport.ls
Example 2 - Display all on one line information about the backups that are
candidates for import. The backups that appear were created between 11/01/2010
and 11/10/2010. The bpimport command with the -create_db_info option must
be run before this command.
# bpimport -PM -s 11/01/2010 -e 11/10/2010
Example 3 - Import the backups that were specified in the images file. The progress
is entered in the bpimport.ls file.
UNIX and Linux systems: # bpimport -Bidfile /tmp/import/image -L
/tmp/bpimport.ls
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/images/*
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\images\*
185
186
NetBackup Commands
bpinst
bpinst
bpinst configure legacy NetBackup Encryption
SYNOPSIS
bpinst -LEGACY_CRYPT [-crypt_option option] [-crypt_strength strength]
[-passphrase_prompt |-passphrase_stdin] [-verbose] [ [-policy_encrypt
0 | 1] -policy_names] name1 [name2 ... nameN]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
NetBackup Encryption provides file-level encryption of backups and archives.
-LEGACY_CRYPT is the Legacy Encryption method. It provides the user with the
encryption strength choices previously available (40-bit DES and 56-bit DES).
The bpinst command that is used with the -LEGACY_CRYPT option configures the
legacy NetBackup Encryption product on the NetBackup clients that can support
encryption. You can also configure encryption for a client that is installed on the
master server host.
Activate bpinst -LEGACY_CRYPT on the master server to configure NetBackup
Encryption on the clients. A single activation makes the necessary configuration
changes on both the clients and the master server.
Note: Ensure that the DISALLOW_SERVER_FILE_WRITES NetBackup configuration
option is not set on the client. If this option is set, the server cannot configure the
software on the client.
OPTIONS
-LEGACY_CRYPT
Required if you use 40-bit DES or 56-bit DES encryption. To configure DES
encryption, specify this option first to use the bpinst command. The order
is important; do not omit this option.
NetBackup Commands
bpinst
-crypt_option option
Specifies that the client does not permit encrypted backups. If the server
requests an encrypted backup, it is considered an error. This option is the
default for a client that has not been configured for encryption.
ALLOWED | allowed | 0
Specifies that the client requires encrypted backups. If the server requests
an unencrypted backup, it is considered an error.
-crypt_strength strength
Specifies the 40-bit DES encryption. This value is the default value for a client
that has not been configured for encryption.
DES_56 | des_56 | 56
Note: Do not forget the pass phrase. If the key file is damaged or lost, you
may need the pass phrase to regenerate the key file. Without the proper key
file, you cannot restore encrypted backups.
NetBackup uses a pass phrase to create the data that it places in a key file on
each client. NetBackup then uses the data in the key file to create the
187
188
NetBackup Commands
bpinst
encryption keys that are required to encrypt and decrypt the backup data.
This option applies to the -LEGACY_CRYPT option only.
The -passphrase_prompt option prompts you to enter a pass phrase. The
actual pass phrase is hidden while you type.
The -passphrase_stdin option reads the pass phrase through standard input.
You must enter the pass phrase twice. This option is less secure than the
-passphrase_prompt option because the pass phrase is not hidden. However,
it may be more convenient if you use bpinst -LEGACY_CRYPT in a shell script.
NetBackup uses the pass phrase for all the clients that you specify on the
bpinst -LEGACY_CRYPT command. If you want separate pass phrases for each
client, enter a separate bpinst -LEGACY_CRYPT command for each client.
When you specify a pass phrase, bpinst -LEGACY_CRYPT creates or updates
the key files on the clients. The encryption keys (generated from the pass
phrase) are used for subsequent backups. Old encryption keys are retained
in the key file to allow restores of previous backups.
If you do not specify either the -passphrase_prompt or -passphrase_stdin
option, the key files on the clients remain unchanged.
-verbose
Prints the current encryption configuration of each client and what gets
installed and reconfigured on each client.
-policy_encrypt 0 | 1
Sets the Encryption policy attribute for the NetBackup policies. You can
include -policy_encrypt only with the -policy_names option. The possible
values are:
0 - clears the Encryption attribute (or leaves it clear) so the server does not
request encryption for clients in this policy. This setting is the default for
the policies that are not configured for encryption.
1 - sets the Encryption attribute so the server requests encryption for clients
in this policy.
If you do not specify this option, the Encryption attributes for the policies
remain unchanged.
-policy_names
Specifies that the names you specify (with the names option) are NetBackup
policy names.
If you include the -policy_names option, bpinst -LEGACY_CRYPT configures
all the clients in each specified policy. If you omit the -policy_names option,
the names are assumed to be NetBackup client names.
NetBackup Commands
bpinst
NOTES
The following notes apply to the -LEGACY_CRYPT option:
If you push the configuration to clients that are located in a cluster, do the
following: Specify the hostnames of the individual nodes (not virtual names)
in the clients list.
When you finish the restore of encrypted files from a client, rename or delete
the key file created. Move or rename your own key file to its original location
or name. If you do not re-establish your key file to its original location or name,
you may not be able to restore your own encrypted backups.
Existing 40-bit encryption license keys or 56-bit encryption license keys are
valid for upgrades.
A privately defined NetBackup 40-bit DES key encrypts the pass phrase that
bpinst -LEGACY_CRYPT sends over the network.
The key file on each NetBackup client is encrypted with a privately defined
NetBackup DES key. The key can be 40 bits or 56 bits depending on how the
client is configured. Restrict access to the key file to the administrator of the
client computer. On a UNIX client, the owner of the key file should be root and
the mode bits should be 600. The key file should not be exportable through
NFS.
189
190
NetBackup Commands
bpinst
To provide disaster recovery when you use encryption (client named orbit)
Activate bpinst -LEGACY_CRYPT for each subsequent pass phrase that is used
on orbit by entering the following:
# bpinst -LEGACY_CRYPT -passphrase_prompt orbit
Enter new NetBackup pass phrase: *********************
Re-enter new NetBackup pass phrase: *********************
EXAMPLES
Example 1 - Configure all on one line 40-bit DES encryption on UNIX clients in a
policy named policy40:
# bpinst -LEGACY_CRYPT -crypt_option allowed -crypt_strength des_40
-policy_encrypt 1 -policy_names policy40
Use the -policy_encrypt option to set the Encryption attribute for the policy.
You can also use the NetBackup administrator utility to set the Encryption
attribute.
Example 2 - Use the -passphrase_prompt option to create a passphrase on all
clients in a policy named policy40:
# bpinst -LEGACY_CRYPT -passphrase_prompt -policy_names policy40
Enter new NetBackup pass phrase: *********************
Re-enter new NetBackup pass phrase: *********************
NetBackup Commands
bpinst
Example 3 - Specify all on one line the NetBackup client named strong must use
56-bit DES encryption:
# bpinst -LEGACY_CRYPT -crypt_option required -crypt_strength des_56
strong
Example 4 - Display a verbose listing of the configuration for the client named
strong:
# bpinst -LEGACY_CRYPT -verbose strong
BPCD protocol version 7.0.0 on client strong
40-bit library version is 3.1.0.40 on client strong
56-bit library version is 3.1.0.56 on client strong
BPCD platform is redhat for client strong
Current configuration entries are:
CRYPT_KEYFILE = /usr/openv/netbackup/keyfile
CRYPT_LIBPATH = /usr/openv/lib
CRYPT_OPTION = required
CRYPT_STRENGTH = des-56
V_PATH_SHARE = /usr/openv/share
No update of NetBackup configuration required for client strong
No update of NetBackup pass phrase required for client strong
FILES
The following are the files that are used on UNIX and Linux systems:
UNIX client encryption libraries for 40-bit DES and 56-bit DES
/usr/openv/lib/libvdes*.*
UNIX client encryption key file for 40-bit DES and 56-bit DES
/usr/openv/netbackup/keyfile
UNIX client encryption key file utility for 40-bit DES and 56-bit DES
/usr/openv/netbackup/bin/bpkeyfile
UNIX client encryption key file utility for 128-bit OpenSSL cipher and 256-bit
OpenSSL cipher
191
192
NetBackup Commands
bpinst
/usr/openv/netbackup/bin/bpkeyutil
/usr/openv/share/ciphers.txt
The following are the files that are used on Windows systems:
NetBackup Commands
bpkeyfile
bpkeyfile
bpkeyfile run the legacy key file utility that is used for NetBackup standard
encryption
SYNOPSIS
bpkeyfile [-stdin] [-change_key_file_pass_phrase]
[-change_netbackup_pass_phrase] [-display] key_file_path
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpkeyfile creates or updates a file that contains the information that is used to
OPTIONS
-stdin
Reads pass phrases from standard input. By default, bpkeyfile reads the
pass phrases that you are prompted to input from your terminal window.
-change_key_file_pass_phrase (or -ckfpp)
Changes the pass phrase that is used to encrypt the key file.
193
194
NetBackup Commands
bpkeyfile
Changes the pass phrase that is used to encrypt NetBackup backups and
archives on this client.
-display
NOTES
The pass phrases that NetBackup uses can be from 0 to 63 characters long. To
avoid compatibility problems between systems, restrict the characters in a pass
phrase to printable ASCII characters: from the Space character (code 32) to the
tilde character (code 126).
The bpkeyfile command is used for legacy encryption.
FILES
Client encryption key file:
UNIX and Linux systems: /usr/openv/netbackup/keyfile
Windows systems: install_path\NetBackup\bin\keyfile.dat
NetBackup Commands
bpkeyutil
bpkeyutil
bpkeyutil run the key file utility that is used for NetBackup standard encryption
SYNOPSIS
bpkeyutil [-stdin | -insert | -delete] [-display] [-client
client_name1[,client_name2,...]] [-M server]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpkeyutil command updates a key file that contains the keys that are used
for encryption and decryption. The keys are generated based on the private
NetBackup pass phrases that you supply. The key file is encrypted by using a key.
The NetBackup client software uses an encryption key from the key file to encrypt
files during a backup or decrypt files during a restore.
OPTIONS
-stdin
Reads pass phrases from standard input. By default, bpkeyutil reads the
pass phrases that you are prompted to input from your terminal window.
-insert
Inserts a new NetBackup pass phrase to the key file to encrypt NetBackup
backups and archives on this client.
-delete
Name of the client where the key file resides. The default is the local client.
You may specify multiple client names that are separated by commas. You
can only use this argument if you are a NetBackup administrator.
195
196
NetBackup Commands
bpkeyutil
-M server
Name of the master server of the client. The default is the master server
defined in the local client's configuration. You can only use this argument if
you are a NetBackup administrator on the specified master server.
NOTES
Note the following items when you use the bpkeyutil command:
FILES
Client encryption key file:
UNIX and Linux systems: /usr/openv/var/keyfile.dat
Windows systems: install_path\NetBackup\var\keyfile.dat
NetBackup Commands
bplabel
bplabel
bplabel write NetBackup label on tape media
SYNOPSIS
bplabel -m media_id -d density [-o] [-p volume_pool_name] [-n
drive_name | -u device_number] [-host media_server] [-erase [-l]]
[-priority number]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bplabel command writes a NetBackup label on the specified media. Labels
are required only for the media that were last used for NetBackup catalog backups
or by a non-NetBackup application. You can use this command to erase and label
the media that is unassigned in a volume database. In addition, you can use this
command to assign specific media IDs. The NetBackup Device Manager daemon
or service (ltid) must be active for bplabel to succeed. You also must manually
assign the drive by using the NetBackup Device Monitor unless you include the
-u option on the bplabel command.
Caution: Ensure that the media does not contain required backups. After the media
is relabeled, any backups that were on it cannot be restored.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
The following are some items about how to use this command:
The -p option is required if the media ID is not in the NetBackup volume pool.
If the data on the media is in a recognized format and the -o option is not
specified, bplabel prompts you to confirm the overwrite. Data format
recognition works only if the first block on a variable length media is less than
or equal to 32 kilobytes.
197
198
NetBackup Commands
bplabel
OPTIONS
-d density
A required option that specifies the density of the tape drive on which the
media is mounted. The tape mount request must be performed on a drive
type that satisfies the -d option.
Note: Do not use capital letters when you enter the density. Incorrect density
syntax causes the command to fail and an "Invalid Density Drive Type"
message to appear.
The valid densities are as follows:
4mm (4-mm Cartridge)
8mm (8-mm Cartridge)
dlt (DLT Cartridge)
hcart (1/2 Inch Cartridge)
qscsi (1/4 Inch Cartridge)
-erase [-l]
This option is used to erase the media. Short erase is the default erase. If -l
option is specified, the media is long erased. A long erase operation can take
a long time depending on the type of drive.
-host media_server
The media_server variable is the host where the drive is attached. This drive
is the drive that is used to mount the media. By default, if this option is not
used, the command runs on the local system.
-m media_ID
A required option that specifies the external media ID that is written to the
tape label as a media ID. You can enter the media ID in either uppercase or
lowercase. Internally, it always converts to uppercase. The media ID must be
six or fewer alphanumeric characters.
-n drive_name
NetBackup Commands
bplabel
-o
Specifies a new priority (number) for the label job that overrides the default
job priority.
-u device_number
NOTES
tpconfig -d, tpconfig -l, and vmoprcmd may truncate long drive names. Use
tpconfig -dl to obtain the full drive name.
SEE ALSO
See ltid on page 423.
See vmadm on page 661.
199
200
NetBackup Commands
bplist
bplist
bplist list the backed up and archived files on the NetBackup server
SYNOPSIS
bplist [-A | -B] [-C client] [-S master_server] [-k policy] [-t
policy_type] [-F] [-R [n]] [-b | -c | -u] [-l] [-r] [-flops options]
[-Listseconds] [-T] [-unix_files] [-nt_files] [-s date] [-e date]
[-I] [-PI] [-keyword keyword_phrase] [filename] [-Listpolicy]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bplist command shows a list of previously archived or backed up files
according to the options that you specify. You can choose the file or directory and
the time period that you want the listing to cover. Directories can be recursively
displayed to a specified depth. bplist shows only the files that you have read
access to. It lists the files only if an administrator account performs the user
backup.
You also must own or have read access to all directories in the file paths. You can
list the files that were backed up or archived by another client only if the
NetBackup administrator has validated you to do so.
If you create the following directory with public-write access, bplist creates a
debug log file in this directory that you can use for troubleshooting:
UNIX and Linux systems: usr/openv/netbackup/logs/bplist/
Windows systems: install_path\NetBackup\logs\bplist\
OPTIONS
-A | -B
Specifies whether to produce the listing from archives (-A) or backups (-B).
The default is -B.
NetBackup Commands
bplist
-C client
Specifies a client name to use for finding backups or archives to list. This
name must be as it appears in the NetBackup configuration. The default is
the current client name.
-S master_server
UNIX and Linux systems: -s specifies the name of the NetBackup server. The
default is the first SERVER entry that is found in the
/usr/openv/netbackup/bp.conf file.
Windows systems: -s specifies the name of the NetBackup server. The default
is the server designated as current on the Servers tab of the Specify NetBackup
Machines dialog box. To display this dialog box, start the Backup, Archive,
and Restore user interface on the client. Then click Specify NetBackup
Machines on the File menu.
-t policy_type
Specifies one of the following numbers that correspond to the policy type.
The default is 0 for all clients except Windows, where the default is 13.
0 = Standard
4 = Oracle
6 = Informix-On-BAR
7 = Sybase
8 = MS-SharePoint
10 = NetWare
13 = MS-Windows
14 = OS/2
15 = MS-SQL-Server
16 = MS-Exchange-Server
19 = NDMP
35 = NBU-Catalog
201
202
NetBackup Commands
bplist
21 = Split-Mirror
22 = AFS
25 = Lotus Notes
39 = Enterprise-Vault
-k policy
Names the policy to search to produce the list. If not specified, all policies
are searched.
-F
Specifies that in the list output, symbolic links (which apply only to UNIX
clients) end with a trailing @ and executable files with a trailing *.
-R [n]
The default is to display the time of the last modification of each file.
-l
The next nine characters show the three sets of permissions. The first set
shows the owners permissions, the next set shows the user-group
NetBackup Commands
bplist
permissions, and the last set shows permissions for all other users. Each set
of three specifies the read, write, and execute permissions as follows:
r = the file is readable
w = the file is writable
x = the file is executable
- = the indicated permission is not granted
-Listseconds
Specifies that seconds granularity be used for the timestamp when the -l
option is used.
-r
On Windows systems, -r lists the disk images that were backed up. The default
is to list file systems.
On UNIX and Linux systems, -r lists the raw partitions that were backed up.
The default is to list file systems.
-flops options
Lists Backup Exec files or both Backup Exec and NetBackup files. The default
(-flops not specified) is to list only NetBackup files.
To list only Backup Exec files specify:
-flops 524288
Lists the files and directories in UNIX format. This option applies only to
UNIX and Linux. For example: /C/users/test
-nt_files
Lists the files and directories in Windows format. This option applies only to
Windows. For example: C:\users\test
203
204
NetBackup Commands
bplist
-s date, -e date
Specifies the start date (-s) and end date (-e) for the listing.
-s specifies a start date and time for the listing. The resulting list shows only
files in backups or the archives that occurred at or after the specified date
and time.
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.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
The default is the current date minus six months.
-e specifies an end date and time for the listing. The resulting list shows only
files from the backups or the archives that occurred at or before the specified
date and time. Use the same format for start date and time. The default is the
current date and time.
-I
Windows systems:
\tmp\junk\test
\abc\123\xxx\test
\abc\123\xxx\yyy\zzz\test
NetBackup Commands
bplist
-keyword keyword_phrase
Specifies a keyword phrase for NetBackup to use when it searches for backups
or archives from which to restore files. The phrase must match the one that
was previously associated with the backup or archive by the -k option of
bpbackup or bparchive.
You can use this option in place of or in combination with the other restore
options to make it easier to restore backups and archives. Use the following
meta-characters to help match keywords or parts of keywords in the phrase:
* matches any string of characters.
? matches any single character.
Names the file or directory to list. Any files or directories that you specify
must be listed at the end, following all other options. If you do not specify a
path, the default is the current working directory.
For Windows systems, use uppercase for the drive letter. For example:
C:\NetBackup\log1
For directories, if you do not use the -R option, include the trailing path
separator as in the following:
UNIX and Linux systems: bplist -l "/home/user1/*"
Windows systems: bplist -l "D:\WS_FTP.LOG\*"
If you use the asterisk meta-character (*), use quotation marks around the
file name for the command to work properly.
-Listpolicy
Includes the schedule type and policy name in the command output.
205
206
NetBackup Commands
bplist
EXAMPLES
Example 1 - List recursively in long format, the files that were backed up in
/home/usr1 (UNIX and Linux) or D:\WS_RTP.LOG (Windows).
On UNIX and Linux systems:
# bplist -l -R /home/usr1
lrwxrwxrwx usr1;usr@ eng;None 0
Apr
drwxr-xr-x usr1;usr@ eng;None 0
Apr
drwxr-x--- usr1;usr@ eng;None 0
Apr
-rwxr----- usr1;usr@ eng;None 1002 Apr
lrwxrwxrwx usr1;usr@ eng;None 0
Apr
28
04
04
02
04
12:25
07:48
07:49
09:59
07:49
/home/usr1/dirlink
/home/usr1/testdir
/home/usr1/dir
/home/usr1/dir/file
/home/usr1/dir/link
On Windows systems:
# bplist -l -R D:\WS_FTP.LOG
-rwx------ bjm;usr@
bjm;None
-rwx------ bjm;usr@
bjm;None
-rwx------ bjm;usr@
bjm;None
64
64
64
Oct 10
Oct 10
Oct 10
2009 D:\WS_FTP.LOG
2009 D:\WS_FTP.LOG
2009 D:\WS_FTP.LOG
Example 2 - List the files that were backed up and associated with all or part of
the keyword phrase "MyHomeDirectory".
UNIX and Linux: # bplist -keyword "*MyHomeDirectory*" -l /home/kwc/
Windows: # bplist -keyword "*MyHomeDirectory*" -l C:\home\kwc\
Example 3 - List the files that were archived and associated with all or part of the
keyword phrase "MyHomeDirectory"
UNIX and Linux: # bplist -A -keyword "*MyHomeDirectory*" -l /home/kwc/
Windows: # bplist -A -keyword "*MyHomeDirectory*" -l C:\home\kwc\
Example 4 - Lists recursively and with details the output from bplist on a
Windows master server from a Windows client. Enter the following command to
list the files that were backed up on drive D of Windows client slater and associated
with all or part of the keyword phrase "Win NT":
# bplist -keyword "*Win NT*" -C slater -R -l C:\client_data_2
drwx------rwx-----drwx------rwx------
root;usr@
root;usr@
root;usr@
root;usr@
root;None 0 Aug 28
root;None 40 Aug 05
root;None 0 Aug 28
root;None 40 Aug 05
17
24
17
24
C:\client_data_2\
C:\client_data_2\ewr.txt
C:\client_data_2\
C:\client_data_2\ewr.txt
NetBackup Commands
bplist
The user column (root;usr@) for the Windows images displays the user that
backed up the file and the owner@domain separated by a semicolon. The group
column (root;None) for the Windows images is the group that backed up the file
and the group@domain separated by a semicolon.
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/bplist/log.mmddyy
Windows systems: install_path\NetBackup\logs\bplist\*.log
SEE ALSO
See bp on page 50.
See bparchive on page 53.
See bpbackup on page 58.
See bprestore on page 319.
207
208
NetBackup Commands
bpmedia
bpmedia
bpmedia freeze, unfreeze, suspend, or unsuspend NetBackup media
SYNOPSIS
bpmedia -freeze | -unfreeze | -suspend | -unsuspend -m media_id [-h
host] [-v]
bpmedia -movedb -m media_id -newserver newservername [-newsvr_group
groupname] [-oldserver oldservername] [-v]
bpmedia -movedb -allvolumes -newserver newservername -oldserver
oldservername [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpmedia command enables you to do the following:
Move a media catalog entry from one server to another in a master and a media
server cluster.
Move ownership of tape media to a different media server. It changes all media
database and image records that reference one server name (oldservername)
to reference another server name (newservername). This function applies to
moving to or from the media servers that are version 6.0 or later.
NetBackup Commands
bpmedia
OPTIONS
-freeze
Freezes the specified media ID. When an active NetBackup media ID is frozen,
NetBackup does not direct backups and archives to the media. All unexpired
images on the media continue to be available for restores. NetBackup never
deletes a frozen media ID from the NetBackup media catalog, nor is it
unassigned in the NetBackup volume pool when it expires.
-unfreeze
Unfreezes the specified media ID. This option reverses the action of freeze
and allows the media to be used for backups or archives again if it has not
expired. If a media is expired when it is unfrozen, it is immediately unassigned
in the NetBackup volume pool.
-suspend
Suspends the specified media ID. The action is the same as freeze except
when the media ID expires, it is immediately unassigned in the NetBackup
volume pool.
-unsuspend
Unsuspends the specified media ID. This option reverses the action of suspend
and allows the media to be used for backups or archives again.
-movedb -newserver newservername [-newsvr_group groupname] [-oldserver
oldservername]
Note: You cannot use the -movedb option with NetBackup server.
Moves a media catalog entry from one server to another in a master and a
media server cluster. This command moves the media catalog entry for the
specified media ID from oldservername to newservername. It updates the
NetBackup image catalog to reflect that the media ID was moved. You can
assume that after the move, newservername has access to the media.
-newserver newservername specifies the name of the host to which the entry
is moved.
-newsrv_group groupname specifies the name of the new server group that
209
210
NetBackup Commands
bpmedia
Moves all media that are assigned to one media server (oldservername) to
another media server (newservername). This operation occurs on the EMM
database, changing the lastwritehost of the media to newservername. For
NetBackup 6.5 or later, the following is true for the media that belongs to a
share group: If the lastwritehost was set to the oldservername, then the
newservername must belong to the share group, and lastwritehost is
changed to newservername.
If the first step succeeds, then the option changes the media server name for
all fragments in the image database from oldservername to newservername.
This action may take a long time, because the command must traverse the
entire image database.
Note: You cannot use the -movedb option with the NetBackup server.
-m media_id
Specifies the media ID that requires action. The media ID must be six or fewer
characters and must be in the NetBackup media catalog.
-h host
Specifies the host name of the server where the media catalog resides. This
option is required only if the volume was not written on the server where you
run the bpmedia command. In this case, the media ID is in the NetBackup
media catalog on the other server. You must specify the name of that server
on the bpmedia command.
For example, assume that you have a master server named whale and a media
server named eel. You run the following bpmedia command on whale to
suspend media ID BU0001 that is in the media catalog on eel:
bpmedia -suspend -m BU0001 -h eel
Use the NetBackup Media List report to determine the host that has the
volume in its media catalog.
NetBackup Commands
bpmedia
-v
Selects verbose mode. This option is only meaningful when NetBackup runs
with debug log function on (that is, when the following directory exists):
UNIX and Linux: /usr/openv/netbackup/logs/admin
Windows: install_path\NetBackup\logs\admin
EXAMPLE
Assume that the master server is HOSTM, with HOSTS1 and HOSTS2 being media
servers. It moves the media catalog entry for media ID DLT001 from HOSTS1 to
HOSTS2 and updates the NetBackup image catalog. The following command is
run on master server HOSTM:
# bpmedia -movedb -m DLT001 -newserver HOSTS2 -oldserver HOSTS1
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/media/*
Windows systems:
install_path\NetBackup\logs\admin\*.log
install_path\NetBackup\db\media\*.log
211
212
NetBackup Commands
bpmedialist
bpmedialist
bpmedialist display NetBackup tape media status
SYNOPSIS
bpmedialist [-mlist] [-U | -l | -L] [-m media_id] [-rl ret_level]
[-d density] [-p pool_name] [-h host_name | -M master_server,...]
[-owner host_name | group_name] [-v]
bpmedialist -summary [-U | -L] [-brief] [-p pool_name] [-h host_name
| -M master_server,...] [-owner host_name | group_name] [-v]
bpmedialist -mcontents -m media_id [-U | -l | -L] [-d density] [-h
host_name | -M master_server,...] [-owner host_name | group_name]
[-v] [-priority number]
bpmedialist -count -rt robot_type -rn robot_number [-d density] [-U
| -l] [-h host_name | -M master_server] [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpmedialist queries one or more NetBackup media catalogs and produces a report
on the status of the NetBackup media. Authorized users can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
bpmedialist produces one of four reports: Media List Report, Media Summary
NetBackup Commands
bpmedialist
media id
partner id
version
density
time allocated
time of expiration
Kbytes
nimages
213
214
NetBackup Commands
bpmedialist
retention level
volume pool
number of restores
hsize
ssize
l_offset
reserved
psize
reserved
NetBackup Commands
bpmedialist
Backup ID
Creation time
Expiration time
Retention level
Fragment number
File number
Status
media_id
Size
Reserved
data_start
Reserved
client_type *
copy_num *
sched_type *
Flags *
opt_extra
mpx_headers
res1
Policy name *
Schedule label *
215
216
NetBackup Commands
bpmedialist
OPTIONS
Report-type Options
bpmedialist produces one of four types of reports. An option on the command
line determines the type of report that is produced. The report-type options are
as follows:
-mlist
Produces a Media Count report. This report also displays the following media
attribute: ALLOW_MULT_RET_PER_MEDIA and its value, 0 (do not allow) or 1
(allow).
The bpmedialist report can appear in one of several formats. The report-format
options are as follows:
-brief
Produces a brief report. This option is available for the Media Summary report
only. The default is a full report, which includes a breakdown of active and
non-active media that report on each media ID status within these categories.
-U
Reports in user mode (the default report mode). The report includes a banner
that lists the column titles. The report style is descriptive, rather than terse.
-L
Reports in long mode. This format produces the report with the most complete
information. For instance, for the Media List report, the report lists each
media ID attribute as a series of keyword = value pairs, one attribute per
line. A value can be expressed as both a numeric value and a descriptive value.
-l
Reports in short mode. This format produces a terse report. This option is
useful for scripts or the programs that rework the listing contents into a
customized report format.
The following are the remaining options used by bpmedialist:
NetBackup Commands
bpmedialist
-d density
Reports on media of this density type. If the robot type is specified on the
command line, the value for density should be consistent with the robot type.
Available density types are:
4mm - 4mm Cartridge
8mm - 8mm Cartridge
dlt - DLT Cartridge
qscsi - 1/4 Inch Cartridge
The name of a host that contains the media to be reported. Use -h instead of
-M to collect the contents list of expired media.
To extract records for media from NDMP hosts, use the NDMP hostname, not
the NetBackup for NDMP server hostname. The NCMP hostname is defined
in the NDMP storage unit or EMM as an NDMP server type (or an associated
EMM alias name) that is associated with that master server domain.
-m media_id
Reports on this media ID only. This option is required for the Media Contents
report.
For the Media List report, this option is optional, The default condition is
that all media IDs are included in that report. The media ID can be provided
in either uppercase or lowercase. The media ID must be six or fewer characters
and must be in the NetBackup media catalog (that is, assigned from the
NetBackup volume pool).
217
218
NetBackup Commands
bpmedialist
Specifies the owner of the media list. The owner can be a host or a server
group.
Note: NetBackup server has only one server (the master), so use the name of
that server for host_name.
host_name is either the name of a host, or the character string ALL. If
host_name is the name of a host, the query goes to the media catalog that
resides on the system host_name. For the -mcontents and -count options,
this option can appear once. For the -mlist and -summary options, this option
can appear more than once. The default is all servers in the set of storage
units for removable media.
The system host_name must allow access by the system running bpmedialist.
host_name can be a media server for a master server other than the local
master server. The default is the master server of the local cluster.
For a media server for a master server other than the local master, if a
bpmedialist query is made by using -h the_media_server. An equivalent
bpmedialist query uses -M the_media_servers_master, the bpmedialist
using -h may complete faster. This difference in response time can be
significant in the following situation: The master server that -M addresses is
located remotely and the media server that -h addresses is local.
If host_name is ALL, the query goes to the local master server and its media
servers.
group_name specifies the name of a server group or the character string ALL.
If group_name is the name of a server group, the query returns the media
that the server group owns. If group_name is ALL, the query returns the media
that all the server groups own.
-M master_server,...
NetBackup Commands
bpmedialist
For -mcontents (Media Contents report) only, the master server returns media
information from the media catalogs. This media information is for both the
master and its media servers (except for NetBackup server , which does not
support remote media servers). For example, if a media ID exists on a media
server of one of the master servers in the -M list, the following occurs: The
master retrieves the media information from the media server and returns
it to the system running bpmedialist. In this case, both the master server
and the media server must allow access by the system that issues the
bpmedialist command.
The default is the master server for the server running bpmedialist.
Note: NetBackup server supports only one server, the master; the default in
this case is always the NetBackup server master where you run bpmedialist.
-p pool_name
Reports on the media IDs that belong to this volume pool. The default is all
pools.
-priority number
Specifies a new priority (number) for the media contents job (for a Media
Contents report) that overrides the default job priority.
-rl retention_level
Reports on the media that use this retention level. The retention level
determines how long to retain backups and archives. The retention_level is
an integer between 0 and 24 (default level is 1).
Following are the retention levels with the installation values for the
corresponding retention periods. Your site may have reconfigured the
retention periods that correspond to the retention levels.
0
one week
2 weeks
3 weeks
1 month
2 months
3 months
6 months
219
220
NetBackup Commands
bpmedialist
9 months
1 year
9 - 24
infinite
-rn robot_number
Reports on the robot by using this robot number. This option is required when
the -count option is used. The robot number can be obtained from the Media
and Device Management.
For rules about the use of this number, see the NetBackup Administrators
Guide.
-rt robot_type
Reports on a robot of this type. This option is required when the -count option
is used. For non-robotic (stand-alone) devices select NONE. Valid robot types
include the following
TL4 - Tape Library 4MM
TL8 - Tape Library 8MM
TLD - Tape Library DLT
NONE - Not robotic
Note that the following robot types apply only to NetBackup Enterprise Server:
ACS - Automated Cartridge System
TLH - Tape Library Half-Inch
TLM - Tape Library Multimedia
-v
EXAMPLES
Example 1 - Produce a media report for all media IDs that are defined for the
master server and media servers of the local system.
NetBackup Commands
bpmedialist
Note: For NetBackup server , the report includes only media IDs for the master
server because remote media servers are not supported.
# bpmedialist
Server Host = hatt
id
rl
images
allocated
last updated
density
kbytes restores
vimages
expiration
last read
<------- STATUS ------->
--------------------------------------------------------------------------143191 0
28
12/03/2010 23:02 12/22/2010 23:00
dlt
736288
1
7
12/29/2010 23:00 12/09/2010 10:59
144280
9
0
11/25/2010 11:06
12/08/2007 23:03
12/01/2010 23:03
dlt
N/A
EXPIRED
AEK800
22
7
12/06/2010 03:05
12/30/2010 03:01
12/23/2010 03:01
12/09/2010 10:48
dlt
23213184
C0015
28
7
11/26/2010 02:09
12/30/2010 02:01
12/23/2010 02:01
N/A
dlt
896448
IBM001
16
14
12/16/2010 01:01
12/30/2010 01:07
12/23/2010 01:07
N/A
dlt
6447360
L00103
20
12/07/2010 08:33
12/23/2010 01:07
dlt
7657728
12/30/2010 01:07
9
5
12/11/2010 01:09
12/28/2010 01:04
dlt
5429504
L00104
290304
FROZEN
N/A
12/21/2010 01:04
N/A
Example 2 - Produce a media count report for robot type TLD and robot number
0:
# bpmedialist -count -rt TLD -rn 0
ALLOW_MULT_RET_PER_MEDIA 0
Number of UP devices for TLD(0) = 2
Example 3 - Produce a media contents report for media ID AEK802. The report is
partially listed as follows.
# bpmedialist -mcontents -m AEK802
media id = AEK802, allocated 01/08/2007 03:10, retention level = 0
221
222
NetBackup Commands
bpmedialist
File number 1
Backup id = hat_0915786605
Creation date = 01/08/2007 03:10
Expiration date = 01/15/2007 03:10
Retention level = 0
Copy number = 1
Fragment number = 2
Block size (in bytes) = 65536
File number 2
Backup id = hat_0915809009
Creation date = 01/08/2007 09:23
Expiration date = 01/15/2007 09:23
Retention level = 0
Copy number = 1
Fragment number = 1
Block size (in bytes) = 65536
Example 4 - Produce a Media List report for master servers hatt and
duo.bpmedialist runs on the master server buff. bpmedialist
# bpmedialist -M hatt,duo
Server Host = hatt
id
rl
images
allocated
last updated
density kbytes
restores
vimages
expiration
last read
<------- STATUS ------->
--------------------------------------------------------------------------143191
0
51
12/03/2008 23:02 01/11/2009 23:04
dlt
1436686
2
9
01/18/2009 23:04 01/08/2009 10:26
144280
9
0
11/25/2008 11:06
12/08/2008 23:03
12/01/2008 23:03
01/12/2009 16:10
dlt
EXPIRED
290304
FROZEN
AEK800
38
3
12/06/2008 03:05
01/15/2009 03:10
01/08/2009 03:10
12/09/2008 10:48
dlt
FULL
AEK802
6
6
01/08/2009 03:10
01/19/2009 03:05
01/12/2009 03:05
01/12/2009 16:12
dlt
6140544
C0015
48
7
11/26/2008 02:09
01/19/2009 02:11
01/12/2009 02:11
N/A
dlt
1531968
3922200024
NetBackup Commands
bpmedialist
IBM000
19
13
01/01/2009 01:09
01/19/2009 02:05
01/12/2009 02:05
01/09/2009 05:41
dlt
8284224
rl
images
allocated
last updated
density
kbytes restores
vimages
expiration
last read
<------- STATUS ------->
--------------------------------------------------------------------------A00004
0
0
11/16/2009 05:31
N/A
4mm
0
0
0
N/A
N/A
FROZEN
DLT210
5
2
12/09/2008 06:10
01/22/2009 06:04
01/08/2009 06:04
N/A
dlt
2560
DLT215
124
28
12/08/2008 14:57
01/19/2009 08:07
01/12/2009 08:07
12/31/2008 15:42
dlt
9788072
Example 5 - Report on which of two hosts has a given media ID configured. The
host hatt does not have A00004 configured in its media catalog. Therefore, it
reports that the requested media ID was not found in the NetBackup media catalog
or Enterprise Media Manager Database.
The host duo does have A00004 configured, so it produces a Media List report for
A00004 (the command is all on one line).
# bpmedialist -mlist -h hatt -h duo -m A00004
requested media id was not found in NB media database and/or MM volume database
Server Host = duo
id
rl
images
allocated
last updated
density
kbytes restores
vimages
expiration
last read
<------- STATUS ------->
--------------------------------------------------------------------------A00004
0
0
11/16/2009 05:31
N/A
4mm
0
0
0
N/A
N/A
FROZEN
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/admin/*
Windows systems: install_path\NetBackup\logs\admin\*
223
224
NetBackup Commands
bpminlicense
bpminlicense
bpminlicense manage NetBackup license file
SYNOPSIS
bpminlicense [-path license_key_file | -M server] [-debug] [-verbose]
[-list_keys] [-nb_features | -sm_features]
bpminlicense [-path license_key_file | -M server] [-debug] [-verbose]
-find_keys | -delete_keys | -add_keys keystring1 .. keystringn
bpminlicense -nb_ufid fid [-debug] [-verbose]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpminlicense utility manages a NetBackup license file. The preferred method
to manage NetBackup licenses is to use the Help > License Keys panel in the
NetBackup Administration Console. For UNIX servers, you may use the
get_license_key utility to manage the NetBackup licenses. This action is preferred
to this command.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-add_keys | -delete_keys | -find_keys keystring1 .. keystringn
Respectively, these options find and list, add, or delete one or more specified
keystrings in the NetBackup license file.
-debug
Use the standard NetBackup license file from the specified NetBackup server.
NetBackup Commands
bpminlicense
-nb_features
Lists only active NetBackup feature IDs (and active keys when specified with
the -verbose option).
-nb_ufid fid
Lists only active Storage Migrator feature IDs (and active keys when specified
with the -verbose option).
-path license_key_file
Uses the specified license_key_file on the local system. The default is the
standard NetBackup license file.
-verbose
EXAMPLES
EXAMPLE 1
Example 1 - Display license information on feature 78, an OpenStorage Disk
Option:
# bpminlicense -nb_ufid 78
0x05000000;PRID=6 (NetBackup Enterprise Server);FID=78 (OpenStorage
Disk Option);SERIAL=0;VALUE=10; DEXPIRE=2007/07/31 01:00:00 0 (Not
expired); UXDEXPIRE=1185861600 0 (Not expired);
UKEY=OENP-24NJ-PTJT-PPPP-PC6N-PPPP-PNPP-PPPP-POC6
225
226
NetBackup Commands
bpminlicense
count
server platform
client platform
server tier
client tier
license type
OEM ID
Expiration
Time Left
Firm Expiration
Feature ID
Feature ID
Feature ID
Feature ID
Feature ID
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
0
0 Any platform
0 Any platform
10 NetBackup Enterprise Server
0 No tier
4 Not for resale
16 Unknown OEM: 16
Not expired Tue Jul 31 01:00:00 2007
84 Days
Not expired Tue Jul 31 01:00:00 2007
87 PureDisk Storage Upgrade +
86 PureDisk Remote Office +
85 PureDisk Option +
84 SAN Client +
83 PureDisk MS Exchange Agent +
NetBackup Commands
bpnbat
bpnbat
bpnbat perform Authentication tasks from within NetBackup
SYNOPSIS
bpnbat [-AddDomain | -RemoveDomain] Private_Domain
bpnbat [-AddMachine]
bpnbat [-AddUser | -RemoveUser] Name Private_Domain
bpnbat -Execute [-cf credential_file] command
bpnbat -GetBrokerCert Broker_Name Broker_Port
bpnbat -Login [-Info answer_file] [-cf credential_file]
bpnbat -LoginMachine
bpnbat -Logout [-cf credential_file]
bpnbat -RemoveBrokerCert server.name.com
bpnbat -ShowBrokerCerts
bpnbat -ShowMachines
bpnbat -Version
bpnbat -WhoAmI [-cf credential_file] [-Verify]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The bpnbat command is a tool that enables a user to use the Symantec Product
Authentication and Authorization Service.
This service contains the following two distinct parts:
227
228
NetBackup Commands
bpnbat
OPTIONS
[-AddDomain | -RemoveDomain] Private_Domain
Executes the specified command with credential file -cf read from disk.
-GetBrokerCert
Identifies yourself to the system. When you run this command with no options,
you are prompted to enter a name, password, domain, authentication type,
and a server to authenticate. The combination of a name, password, domain,
and domain type creates a unique identity within an Enterprise-wide network.
The first time a broker is contacted, you are asked if you want to trust that
broker and authenticate them. You cannot use an untrusted broker.
The -Info option lets you take the name, password, and domain information
from an answer_file, and place the certificate in credential_file (if specified)
or the default location. You can create an answer text file, so that you don't
have to manually type the user name and password for logon.
NetBackup Commands
bpnbat
Warning: Storing the user name and password in a plain text file is a potential
security issue. Unauthorized users with read access to the text file can obtain
the user name and password for the Symantec Product Authentication and
Authorization Service to manually authenticate with the bpnbat command.
Ensure that no unauthorized users can access the answer text file.
The answer file must contain the following four lines:
<domain type>
<domain>
<username>
<password>
Invalidates the current user credentials that require the user to log on again
to continue. Without the -cf option, the credential that is stored at the default
location is expired. The -cf option points to the actual credential file, which
allows a user to explicitly specify the credential to be expired.
-RemoveBrokerCert server.name.com
Removes a trust of a specified authentication broker for all users except the
root user (administrator). You can use this command to remove a broker when
you no longer trust it. For example, an authentication broker is moved to a
different corporate division.
229
230
NetBackup Commands
bpnbat
-ShowBrokerCerts
Lists all of the brokers that the user currently trusts. NetBackup trusts any
broker that is listed to handle the authentication requests that are sent to it.
-ShowMachines
Lists all computers that have been added to the computers domain of a private
Veritas Security Subsystem database by using the -AddMachines option. It
also shows if DNS fully resolved the computer name. Run this option on your
authentication broker (root +ab).
-Version
Your name
Domain
The domain type that was used when the credential was created
EXAMPLES
Example 1 - The user uses -Login and the default port number to connect to the
authentication broker that is called test.domain.veritas.com. (It is the server that
handles the Authentication process.) An NIS account is used. Therefore, a domain
name that is associated with the NIS account is provided in addition to a user and
password.
# bpnbat -Login
Authentication Broker: test.domain.veritas.com
Authentication port[ Enter = default]:
Authentication type (NIS, NISPLUS, WINDOWS, vx, unixpwd): NIS
Domain: domain.veritas.com
Name: username
Password:
You do not currently trust the server: test.domain.veritas.com, do
you wish to trust it? (y/n): y
Operation completed successfully.
NetBackup Commands
bpnbat
Example 2 - The -WhoAmI option verifies the identity that you currently use within
the Symantec Product Authentication and Authorization Service.
# bpnbat -WhoAmI
Name: user name
Domain: domain.veritas.com
Issued by: /CN=broker/[email protected]/O=vx
Expiry Date: Oct 27 20:57:43 2009 GMT
Authentication method: NIS
Operation completed successfully.
Finally, you log into a computer to a specified authentication broker and a problem
occurs:
If the user has a multi-NIC configuration or types the broker name incorrectly, a
second prompt appears. It gives the user a second chance to enter the proper
broker name. The following example assumes sleemanNB is a private NIC name.
The public NIC name that Symantec Product Authentication and Authorization
Service uses to build the authentication domain is sleeman.min.veritas.com. If
a failure occurs using -loginmachine, the user has a second chance to enter an
explicit primary hostname for the authentication broker. (Failures include a bad
231
232
NetBackup Commands
bpnbat
computer name, wrong password, or incorrect broker name.) Refer to the following
example:
# bpnbat -LoginMachine
Does this machine use Dynamic Host Configuration Protocol (DHCP)?
(y/n) n
Authentication Broker: sleemanNB
Authentication port[ Enter = default]:
Machine Name: challenger
Password:
Primary host name of broker: sleeman.min.veritas.com
Operation completed successfully.
Example 5 - Lists all the brokers that the user currently trusts
# bpnbat -ShowBrokerCerts
Name: root
Domain: [email protected]
Issued by: /CN=root/[email protected]/O=vx
Expiry Date: Jun 12 20:45:19 2006 GMT
Authentication method: Symantec Private Security
Name: root
Domain: [email protected]
Issued by: /CN=root/[email protected]/O=vx
Expiry Date: Feb 17 19:05:39 2006 GMT
Authentication method: Symantec Private Security
Operation completed successfully.
The user can now use the -ShowBrokerCerts option to display current certificates.
The previously removed certificate is no longer displayed.
NetBackup Commands
bpnbat
Example 7 -Show how to use an answer file to supply logon information for
automated commands (cron, etc.).
For UNIX and Linux: The UNIX NIS domain name is location.example.com, the
user name in this domain is bgrable, and the password is hello456. The
corresponding answer file for bpnbat -login must contain the following four
lines:
NIS
location.example.com
bgrable
hello456
If the answer file is located in /docs and is called login.txt, the bpnbat command
executes as follows:
# bpnbat -login -info /docs/vslogin.txt
After the bpnbat -login command is run, commands like bpbackup can be run
without authentication errors.
For Windows: The windows domain name is corporate, the user name in this
domain is jsmith, and the user password is hello123. The corresponding answer
file for bpnbat -login has to contain the following four lines:
NT
corporate
jsmith
hello123
If the answer file is located in /docs and is called login.txt, the bpnbat command
executes as follows:
# bpnbat -login -info c:\docs\vslogin.txt
After the bpnbat -login command is run, commands like bpbackup can be run
without authentication errors.
SEE ALSO
See bpnbaz on page 234.
233
234
NetBackup Commands
bpnbaz
bpnbaz
bpnbaz perform Authorization administration tasks from within NetBackup
SYNOPSIS
bpnbaz -[AddGroup | DelGroup] Group_Name [-M server] [-Server
server1.domain.com] [-CredFile Credential]
bpnbaz -[AddPerms | DelPerms] Permission_1[,Permission_2,...] -Group
Group_Name -Object Object [-M server] [-Server server1.domain.com]
[-CredFileCredential]
bpnbaz -[AddPolicy | DelPolicy] Policy_Name [-M server] [-Server
server1.domain.com] [-CredFile Credential]
bpnbaz -[AddUser | DelUser] Group_Name
Domain_Type:Domain_Name:User_Name [-OSGroup] [-M server] [-Server
server1.domain.com] [-CredFile Credential]
bpnbaz -[AllowAuthorization | DisallowAuthorization] Machine_Name
[-M server] [-Server server1.domain.com]
bpnbaz -CheckUpgrade [-Server server1.domain.com]
bpnbaz -GetConfiguredHosts [target.server.com [-out file] | -all
[-out file] | [-file progress_file]
bpnbaz -GetDomainInfosFromAuthBroker [target.server.com [-out file]
| [-file progress_file]
bpnbaz -ListGroupMembers Group_Name [-M server] [-Server
server1.domain.com][-CredFile Credential]
bpnbaz -[ListPerms | ListMainObjects | ListGroups | ListPolicyObjects
| ShowAuthorizers] [-M server] [-Server server1.domain.com] [-CredFile
Credential]
bpnbaz -SetupAuthBroker [target.server.com [-out file] | -file
progress_file]
bpnbaz -SetupClient [client.server.com] [-out file] | -all [-images]
[-out file] | [-file progress_file] [-dryrun] [-disable]
bpnbaz -SetupMaster
bpnbaz -SetupMedia [media.server.com [-out file] | -all [-out file]
| -file progress_file] [-dryrun] [-disable]
bpnbaz -SetupSecurity NBU.Master.Server.com [-M server] [-Server
server1.domain.com]
bpnbaz -UnconfigureAuthBroker [target.server.com [-out file] | -file
progress_file]
NetBackup Commands
bpnbaz
DESCRIPTION
NetBackup uses the bpnbaz command to access the authorization portion of
NetBackup Product Authentication and Authorization Service. Authorization
checks the rights on an object. This command enables you to do the following:
-AddPerms and -DelPerms adds and deletes the specified permissions for the
given role on individual policies from the main NetBackup resource objects.
More information is available on permissions.
Refer to the NetBackup Administrators Guide, Volume I..
-AddPolicy and -DelPolicy adds and deletes policies from the main NetBackup
resource objects.
is needed for the specified server. If so, this option returns 61. Only NetBackup
installers use this option.
235
236
NetBackup Commands
bpnbaz
-GetConfiguredHosts
-GetDomainInfosFromAuthBroker
-ListMainObjects lists the current permissions for each group on each of the
main NetBackup objects. This list is an informative view that you can use to
verify changes to permissions on an object. This option shows the permissions
each group has within the authorization system.
The first line indicates that client1.server.com has not yet been contacted
at all.
The third line indicates that client3.server.com has been contacted but an
error has occurred. Errors are printed out on the command line with a
recommendation of what to do. The error number that is indicated in the
logs may indicate the problem.
-SetupMaster sets up the master server to use NBAC. The bpnbaz -SetupMaster
command contains no user arguments. You are prompted for the password
for your current operating system user identity. The authorization server and
authentication broker must be installed and running on the master server.
NetBackup Commands
bpnbaz
-UnconfigureAuthBroker
-UnhookSharedSecSvcsWithPBX
See the NetBackup Security and Encryption Guide for more information on NBAC
and the use of the bpnbaz command.
To use this command and its associated options, you must be a member of the
NetBackup Security Administrators group (NBU_Security Administration). The
only exception is with the SetupSecurity command.
You must have local administrator privileges on the authorization server to run
this command.
When you use bpnbaz, assume that the master server and the Az server are the
same computer.
Note: The use of NetBackup Access Control requires the users home directories
to work correctly.
OPTIONS
-all
Scans all the storage units or policies and collects all the associated unique
host names. You can scan in a sorted order. The results are written to the
progress file.
237
238
NetBackup Commands
bpnbaz
client.server.com
Specifies the name of a single target host. Use this option to add a single
additional host for use with NBAC.
-CredFile Credential
The Domain_Type variable is the domain to which the user or group belongs,
and the User_Name variable defines the applicable user or group name
designating the NetBackup administrator.
-dryrun
Generates the list of media server names and writes them to the log. This
option can work with client.server.com or media.server.com but it is intended
to be used with the -all option.
If you have a large number of clients (greater than 250), do a dry run with
the -SetupClient operation to see all of the clients that are visible to the
master server.
-file
progress_file
Specify a different file name for the progress log. If -file is used, the input
and output files are the same, which allows multiple rounds to execute without
changing the command. Use the progress file iteratively by feeding the file
back in multiple times until all clients are available online.
-fsa
Adds the users by creating a unique enterprise account name, following this
format: <Authentication type>:<Domain_Type>:<User_Name>
The supported Authentication types for this variable are the following:
NetBackup Commands
bpnbaz
-images
-images searches all images for unique host names. Do not use this option
with large catalogs unless you include the -dryrun option. This option
discovers all unique clients that are contained in the image catalog. Older
catalogs may contain a large number of decommissioned hosts, renamed
hosts, and hosts relocated to new masters. Runtime can increase significantly
as this command tries to contact unreachable hosts.
-M server
Specifies the name of the master server as defined in the variable server. This
server name may be different from the local host name.
Machine_Name
Specifies the name of a single target host. Use this option to add a single
additional host for use with NBAC.
-Object Object
specifies a custom output file name. By default, the output is written to the
SetupClient.nbac file. Use this option with the -all option.
Permission_1[,Permission_2,...]
Specifies the name of the policy from the main NetBackup resource objects.
239
240
NetBackup Commands
bpnbaz
-Server server1.domain.com
This option specifies the Az server being used. Currently we expect the Az
server and the NetBackup master server to exist on the same system.
Determines if an upgrade of existing authorization information is needed for
the specified server. If so, this option returns "61". Only NetBackup installers
use this option.
-Silent
Specifies the name of a single target host. Use this option to find the NBAC
status on a single host. It captures the status of the host in the
ConfiguredHosts.nbac file.
EXAMPLES
Example 1 - Create and list an Az group.
An Az group is a collection within the Authorization engine where other OS groups
and OS users are placed. This collection is the building block against which
permissions are applied on the objects within the database. If you add a user to
an Az group, you grant them all the rights and privileges that are associated with
that group. When a user is placed in more than one group, that users effective
permissions are as follows: the logical "or" of the applicable permissions of each
group to which the user belongs. The following example demonstrates how to
create and list an existing Az group:
# bpnbaz -AddGroup "New Group 1" -server test.domain.veritas.com
Operation completed successfully.
# bpnbaz -ListGroups -server test.domain.veritas.com
Administrators
Operators
Security Administrators
Resource Management Applications
Applications
New Group 1
NBU_Unknown
NBU_User
NBU_Operator
NBU_Media Device Operator
NBU_Admin
NetBackup Commands
bpnbaz
NBU_Executive
NBU_Security Admin
NBU_Database Agent Operator
NBU_Database Agent Administrator
Operation completed successfully.
Example 3 - Add and remove users from Az groups (and List group members)
Add users by creating a unique enterprise name of the following format:
<Authentication type>:<Domain to which user or group belongs>:<user or group
name>
The following are the Supported Authentication types:
241
242
NetBackup Commands
bpnbaz
NetBackup Commands
bpnbaz
. . .
Restart
Synchronize
Object Type: PolicyGroup
Browse
Read
New
Delete
Activate
Deactivate
Backup
Operation completed successfully.
243
244
NetBackup Commands
bpnbaz
Read
Delete
Deactivate
Role: NBU_Security Admin
Unknown
Role: NBU_Database Agent Administrator
Unknown
Role: Administrators
Unknown
Role: Operators
Unknown
Role: Applications
Unknown
Role: NBU_Security Admin
Unknown
. . .
NBU_RES_Job:
Role: NBU_Media Device Operator
Browse
Suspend
Cancel
Read
Resume
Delete
Role: NBU_Executive
Browse
Read
Role: NBU_Database Agent Operator
Unknown
Role: NBU_User
Unknown
Role: NBU_Unknown
Unknown
Role: NBU_Operator
Browse
Suspend
Cancel
Read
Resume
Delete
Role: NBU_Admin
Browse
Delete
NetBackup Commands
bpnbaz
Resume
Read
Suspend
Cancel
Role: NBU_Security Admin
Unknown
Role: NBU_Database Agent Administrator
Unknown
Role: Administrators
Unknown
Role: Operators
Unknown
Role: Applications
Unknown
Role: NBU_Security Admin
Unknown
. . .
Operation completed successfully.
245
246
NetBackup Commands
bpnbaz
NetBackup Commands
bpnbaz
247
248
NetBackup Commands
bpnbaz
SEE ALSO
See bpnbat on page 227.
NetBackup Commands
bppficorr
bppficorr
bppficorr list the persistent snapshot information in the NetBackup catalog
for a specified client and delete catalog entries for the snapshots that no longer
exist
SYNOPSIS
bppficorr [-media] [-hoursago hours] [-rotation] [-policy policy_name]
-client client_name
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
For the specified client, bppficorr lists the persistent snapshots currently found
in the NetBackup catalog. Without the -media option, bppficorr compares the
catalog information to the actual information on the client. It removes any entries
in the catalog that do not have corresponding snapshots on the client. This option
is useful if a snapshot on the client is renamed or removed.
Note: NetBackup manages persistent snapshots. Do not rename or remove a
persistent snapshot; otherwise, the data cannot be restored.
The output of bppficorr goes to standard output.
You must have administrator privileges to initiate this command.
OPTIONS
-media
Lists all persistent snapshot entries in the NetBackup catalog for the client
that is specified on the -client option. The list includes the backup IDs and
the media descriptions for each backup ID. See the NetBackup Administrators
Guide for details on the media description.
-hoursago hours
Includes the images that were written up to n hours ago (1 or greater). The
default is all images.
249
250
NetBackup Commands
bppficorr
-policy policy_name
NOTES
bppficorr writes activity log information to the
/usr/openv/netbackup/logs/admin directory (UNIX and Linux systems) or the
<install_path>\NetBackup\logs\admin directory (Windows systems). You can
EXAMPLES
Example 1 - Resynchronize the NetBackup catalog with a clients actual snapshots:
# bppficorr -client lupine
Example 2 - Display the snapshots that are currently in the catalog for client
lupine:
# bppficorr -media -client lupine
Sample output:
Listing frozen image info from NBU catalog
-----------------------------------------backup_id
created
name
-----------------1 lupine_1034167036
Wed Oct 9 07:37:16 2002
1 vxvm:32:vxfs:/V1fs:/dev/vx/dsk/oradg/PFI-V1_1034167036
2 lupine_1033995680
Mon Oct 7 08:01:20 2002
1vxfs_pfi:34:vxfs:/ora8:VX+NBU+PFI+ORA+2002.10.07.08h01m20s
3 lupine_1033880459
Sun Oct 6 00:00:59 2002
1 vxfs_pfi:34:vxfs:/V1fs:VX+NBU+PFI+FS+2002.10.06.00h00m59s
NetBackup Commands
bpplclients
bpplclients
bpplclients administer clients within NetBackup policies
SYNOPSIS
bpplclients
bpplclients policy_name | -allunique [-pt policy_type] [-L | -l | -U
| -noheader] [-M master_server,...] [-v]
bpplclients policy_name -add host_name hardware_os [-priority
priority] [-M master_server,...] [-v] [-generation generation]
[-reason "string"]
bpplclients policy_name -delete host_name ... [-M master_server,...]
[-v] [-generation generation] [-reason "string"]
bpplclients policy_name -modify host_name [-hardware hardware] [-os
os] [-priority priority] [-M master_server,...] [-v] [-generation
generation] [-reason "string"]
bpplclients policy_name -rename old_client_name new_client_name [-os
os] [-hardware hardware] [-generation generation] [-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpplclients does one of the following:
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.
251
252
NetBackup Commands
bpplclients
OPTIONS
bpplclients consists of two forms. The bpplclients form that you use determines
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.
-generation generation
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
NetBackup Commands
bpplclients
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,...
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 clients 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.
253
254
NetBackup Commands
bpplclients
-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]
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
NetBackup Commands
bpplclients
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.
-reason "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-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):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
This option must precede the -add, -delete, or -modify option on the
command line.
255
256
NetBackup Commands
bpplclients
EXAMPLES
Example 1 - While the master server runs, list the clients that are known to the
master server.
# bpplclients
Hardware
--------------Novell
Windows-x64
HP9000-800
Windows-x64
OS
--------------Novell 6.5
Windows2008
HP-UX 11.23
Windows2008
Client
-------------marge
marmot
squash
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
--------------- --------------Solaris
Solaris10
RS6000
AIX5
HP9000-800
HP-UX 11.23
HP9000-800
HP-UX 11.31
Client
-------------jeckle
streaky
chilly
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.
NetBackup Commands
bpplclients
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:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
It has the following form:
bpplclients: EXIT status = exit status
FILES
UNIX and Linux systems:
/usr/openv/NetBackup/logs/admin/*
/usr/openv/NetBackup/db/policy/policy_name/clients
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\policy\policy_name\clients
SEE ALSO
See bpadm on page 52.
See bpplinfo on page 266.
257
258
NetBackup Commands
bppldelete
bppldelete
bppldelete delete policies from the NetBackup database
SYNOPSIS
bppldelete policyname [-verbose] [-M master_server,...] [-generation
generation] [-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bppldelete deletes policies from the NetBackup database.
OPTIONS
-generation generation
Deletes the policy information for a specific master server(s). For example,
to delete policy MWF_PM from master server Saturn, enter the following:
bppldelete MWF_PM -M Saturn
policyname
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
NetBackup Commands
bppldelete
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-verbose
259
260
NetBackup Commands
bpplinclude
bpplinclude
bpplinclude maintain list of files automatically backed up by NetBackup policy
SYNOPSIS
bpplinclude policy_name [-v] [-M master_server,...] -L | -l
[-generation generation]
bpplinclude policy_name [-v] [-M master_server,...] [-generation
generation] -add pathname ... | -add -f filename | -delete pathname
... | -delete -f filename | -modify old_pathname new_pathname ...
[-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpplinclude maintains the policy file list for a NetBackup policy. The policy file
list is the list of files that are backed up when NetBackup runs an automatic backup
for the policy. The policy file list does not apply to user backups or archives since
users select the files when they start those operations.
bpplinclude performs one of the following operations:
The -add, -delete, and -modify options include a list of pathnames. The list of
pathnames must be the final part of the bpplinclude command line. The pathname
must be the entire path from the root of the file system to the desired location.
For the absolute pathname syntax for your client type, refer to the pathname
rules topics in the NetBackup Administrators Guide.
The last part of the path can be a file name, a directory name, or a wildcard
specification. You can enclose pathnames in quotes. Use enclosing quotes if the
pathname contains special characters or a wildcard specification.
NetBackup Commands
bpplinclude
Filepath rules do not verify the existence of the input directories or files.
NetBackup backs up only the files it finds and does not require that all entries in
the list be present on every client.
See the NetBackup Administrators Guide for additional information on policy
file lists.
For database extensions, the input entries are scripts. NetBackup runs these during
the backup. See the NetBackup guide that comes with the extension product for
additional information.
The added entries to the policy file list can be directives, rather than pathnames
for the following: certain policy attributes (such as Allow multiple data streams)
and extension products (such as NetBackup for NDMP).
Refer to the NetBackup Administrators Guide or the NetBackup guide for the
extension product.
The options -l and -L produce nearly identical displays of the policy file list.
bpplinclude sends its error messages to stderr. bpplinclude sends a log of its
activities to the NetBackup admin log file for the current day.
Authorized users can initiate this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-add pathname ...
Adds the specified pathname to the policy file list. The pathname can be a
directory, a file name, a script, or a directive.
A pathname must be enclosed in quotes (") if it contains special characters,
such as blank(" "), or a wildcard specification. Use a blank to separate two
pathnames, not a comma. bpplinclude interprets a comma as part of the
pathname; it concatenates two or more comma-delimited pathnames into a
single pathname with embedded commas. The command does not verify the
syntax or the existence of the pathnames.
-add -f filename
Adds all files that are listed in filename to the policy file list.
-delete pathname
Deletes the specified pathnames from the policy file list. Refer to -add for
the pathname-list syntax. If you delete a pathname from the policy file list,
you still can recover any backups or archives for that pathname. This option
must be the final entry on the command line.
261
262
NetBackup Commands
bpplinclude
-delete -f filename
Deletes all the listed file in filename from the policy file list.
-generation generation
Modifies an entry in the policy file list. The values are a list of pathname pairs
{old_path_name new_path_name}. For each pathname pair, new_name_path
replaces old_name_path in the policy file list. If no list entry matches
old_path_name, then new_path_name is not entered into the policy file list.
Refer to the -add option for the pathname syntax. Delimit the list entries
with spaces, both within a pathname pair and between pathname pairs. This
option must be the final entry on the command line.
-M master_server,...
Specifies the policy for which the policy file list is to be set.
-reason "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
NetBackup Commands
bpplinclude
-v
Selects verbose mode for logging. This option is meaningful only when you
run with the debug log function on ( that is, when the following directory is
defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLES
Example 1 - While the backup runs on another master server kiwi, display the
policy file list for policy oprdoc_policy on the master server plim:
# bpplinclude oprdoc_policy -L -M plim
Include:
/oprdoc
Include:
Example 2 - Add and delete the pathnames that include one wildcard entry to
illustrate bpplinclude's interpretation of wildcards:
UNIX and Linux systems:
# bpplinclude mkbpolicy
# bpplinclude mkbpolicy
Include: yap
Include: /y*
# bpplinclude mkbpolicy
# bpplinclude mkbpolicy
Include: /yap
Windows systems:
# bpplinclude mkbpolicy
# bpplinclude mkbpolicy
Include: C:\yap
Include: C:\y*/y*
# bpplinclude mkbpolicy
# bpplinclude mkbpolicy
Include: C:\yap
-delete /y*
-L
-delete C:\y*
-L
263
264
NetBackup Commands
bpplinclude
Note: bpplinclude does not interpret the wildcard entry y* for -delete as meaning
that both yap and y* should be deleted. Only y* is deleted from the include list
for mkbpolicy. The interpretation of the wildcard occurs when NetBackup selects
files to back up, during the actual backup.
Example 3 - Add two entries to the policy file list for a policy, and then modify
them:
UNIX and Linux systems:
# bpplinclude mkbpolicy -add "/ima file" "/ura file"
# bpplinclude mkbpolicy -L
Include: /ima file
Include: /ura file
bpplinclude mkbpolicy -modify "/ima file" "/ima file 2" "/ura file"
"/ura file 2"
bpplinclude mkbpolicy -L
Include: /ima file 2
Include: /ura file 2
Windows systems:
# bpplinclude mkbpolicy -add "C:\ima file" "C:\ura file"
# bpplinclude mkbpolicy -L
Include: C:\ima file
Include: C:\ura file
# bpplinclude mkbpolicy -modify "C:\ima file" "C:\ima file 2"
"C:\ura file" "C:\ura file 2"
# bpplinclude mkbpolicy -L
Include: C:\ima file 2
Include: C:\ura file 2
Example 4 - Add a raw partition to the policy file list for the policy rc (UNIX clients).
The full path name for the device is used (the command is all on one line):
bpplinclude rc -add /devices/sbus@2,0/dma@2,81000/esp@2,80000/
sd@6,0:h,raw
See the Adding UNIX Raw Partitions to the File List section of the NetBackup
Administrators Guide.
Example 5 - Display the policy file list for the policy mkb_policy:
# bpplinclude mkb_policy -l
UNIX and Linux systems:
INCLUDE /etc/services
NetBackup Commands
bpplinclude
INCLUDE /etc/aliases
INCLUDE /usr/bin
Windows systems:
INCLUDE C:\services
INCLUDE C:\aliases
INCLUDE C:\Programs
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/policy/policy_name/includes
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\dv\policy\policy_name\includes
SEE ALSO
See bpplclients on page 251.
See bpplinfo on page 266.
See bpschedule on page 333.
See bppldelete on page 258.
See bppllist on page 278.
265
266
NetBackup Commands
bpplinfo
bpplinfo
bpplinfo manage or display policy attributes for NetBackup
SYNOPSIS
bpplinfo policy_name -L | -l | -U [-v] [-M master_server,...]
bpplinfo policy_name -set | -modify [-v] [-active | -inactive]
[-blkincr flag] [-chkpt flag] [-chkpt_intrvl interval]
[-collect_bmr_info flag] [-collect_tir_info value] [-compress flag]
[-crossmp flag] [-disaster flag] [-ef effective_time] [-encrypt flag]
[-follownfs flag] [-granular_restore_info 0 | 1] [-job_subtype
sub_type [-keyword "keyword phrase"] [-M master_server,...]
[-multiple_streams flag] [-policyjobs max_jobs] [-pool label]
[-priority number] [-pt policy_type] [-residence label] [-rfile flag]
[-data_class class | *NULL*] [-sg server_group | *ANY* | *NONE*]
[-ut] [-generation generation] [-res_is_stl 0 | 1] [-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpplinfo initializes, modifies, or displays the attribute values for a NetBackup
for those attributes that are specified on the current command line.
-modify modifies the policy attributes specified on the current command line.
The rest of the policy attributes not on the current command line remain
unchanged.
NetBackup Commands
bpplinfo
Warning: To modify policy attributes, use the -modify option. This option affects
only the attributes that you specify on the command line. Be careful how you use
the -set option, which resets all attributes to their default values, except those
that are specified on the command line. If you use -set to change one or two
attributes, you may inadvertently return all the unspecified attributes to their
default values.
OPTIONS
policy_name -L | -l | -U
per line, in the format policy_attribute: value. The value can be expressed
both in numeric and name form. Fields in the list include:
Policy Type
Policy Generation (version)
Active
Follow NFS Mounts (applies only to NetBackup Enterprise Server)
Cross Mount Points
Client Compress
Collect TIR Info
Policy Priority
Ext Security Info
File Restore Raw
Client Encrypt
Max Jobs/Policy
Mult. Data Stream
Snapshot Method
Snapshot Method Arguments
Perform Offhost Backup
Backup Copy
Use Data Mover
Data Mover Type
267
268
NetBackup Commands
bpplinfo
for scripts or the programs that rework the listing contents into a customized
report format. A short listing contains the following information for the
specified policy:
Line 1: "INFO", client_type, follow_nfs_mounts, client_compress, priority,
proxy_client, client_encrypt, disaster recovery, max_jobs_per_policy,
cross_mount_points, max_frag_size, active, collect_tir_info, block_incr,
ext_sec_info, i_f_r_f_r, streaming, frozen_image, backup_copy, effective_date,
policy ID, number_of_copies, checkpoint, chkpt_interval, policy_info_unused1,
pfi_enabled, offhost_backup, use_alt_client, use_data_mover,
data_mover_type, collect_bmr_info, res_is_ss, granular_restore_info,
job_subtype
Line 2: "KEY",keyword
Line 3: "BCMD",backup_command
Line 4: "RCMD",restore_command
Line 5: "RES", residence
Line 6: "POOL", pool
NetBackup Commands
bpplinfo
per line, in the format policy_attribute: value. This listing is similar to the -L
listing, but contains fewer fields.
-v
Selects the verbose mode. This option causes bpplinfo to log additional
information for debugging purposes. The information goes into the NetBackup
administration daily debug log. This option is meaningful only when
NetBackup enables the debug log function (that is, when the following
directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
-M master_server,...
Set the policy to active or inactive. If the policy is active, NetBackup runs all
its automatic schedules and permits user-directed backups and archives to
be used. A policy must be active for an automatic backup to occur (the default).
269
270
NetBackup Commands
bpplinfo
If the policy is inactive, NetBackup does not run any automatic schedules or
permit user-directed schedules to be used. This option is useful to inactivate
a policy temporarily to prevent schedules from being used.
-blkincr flag
Note: This option applies only if you are running NetBackup Enterprise Server
and also have Veritas Oracle Edition, which supports block-level
incrementally.
0 (disabled) or 1 (enabled). Perform block-level-incremental backups for clients
in this policy.
If 1, do perform block-level-incremental backups.
If 0, do not perform block-level-incremental backups.
-chkpt [1|0]
Enables and disables the checkpoint restart for the policy. If 1, the command
enables the checkpoint restart. If 0, the command disables the checkpoint
restart. The default is 0.
-chkpt_intrvl interval
Enables and disables the checkpoint interval for the policy. The variable
interval is the checkpoint interval in minutes. The default interval is 15
minutes. The range for this interval is between 5 minutes and 180 minutes.
If the checkpoint restart is not enabled, then this parameter has no effect.
-collect_tir_info value
NetBackup Commands
bpplinfo
the client software compresses the selected files onto the media. Compression
may increase total backup time. If 0, the files are not compressed onto the
media (the default).
This option has no effect on the hardware compression that may be available
on the storage unit.
-crossmp flag
0 (disabled) or 1 (enabled). Specifies whether to cross mount points during
backups or not.
If 1, NetBackup backs up or archives all files and directories in the selected
path, regardless of the file system on which they reside.
If 0, NetBackup backs up or archives only those files and directories on the
same file system as the selected file path (the default).
This attribute can affect the Follow NFS policy attribute, which applies only
to NetBackup Enterprise Server.
Refer to the NetBackup Administrators Guide for more details.
-data_class class
271
272
NetBackup Commands
bpplinfo
-follownfs flag
not. For policy types MS-Windows and OS/2, setting this flag affects the policy
attribute Backup network drives instead of the Follow NFS attribute.
If 1, NetBackup backs up or archives any NFS-mounted files encountered.
If 0, NetBackup does not back up or archive any NFS-mounted files
encountered (the default).
The behavior of this attribute varies depending on the setting of the Cross
Mount Points attribute.
Refer to the NetBackup Administrators Guide for more details.
-granular_restore_info flag
0 (disabled) or 1 (enabled).
Allows the generic policies for the Duplicate feature or the LiveUpdate feature
to be displayed. By default, the policies for these two features are not
displayed.
-keyword "keyword phrase"
The value is associated with all backups created by using this policy. The
keyword phrase can be used to link related policies. It can also be used during
restores to search only for the backups that have the keyword phrase
association.
-M master_server,...
NetBackup Commands
bpplinfo
-set initializes (or reinitializes) attributes for the policy to their default
values, except for those attributes that the options on the current
command-line set.
-modify modifies attributes for the policy. Attributes not explicitly set by
Specifies the volume pool for the policy. The default is NetBackup. The volume
pool should be one of the volume pools for the policy storage unit. This
attribute is not relevant if a disk storage unit is the residence for the policy.
If the policy storage unit is Any_available (Residence: - appears on the
bpplinfo display), the volume pool for any storage unit can be selected. If
"*NULL*" is specified, the volume pool is set to NetBackup. To display the
configured volume pools, run the following command:
UNIX and Linux systems: /usr/openv/volmgr/bin/vmpool -listall
Windows systems: install_path\Volmgr\bin\vmpool -listall
-policyjobs max_jobs
The maximum number of concurrent jobs that NetBackup allows for this
policy (corresponds to the Limit Jobs per Policy setting in the administration
interface). max_jobs is always greater than or equal to 0.
For the default or when -policyjobs is 0, bpplinfo sets max_jobs to a value
that corresponds to unlimited. In this example, the maximum number of jobs
is 8 for NetBackup and 2003 for NetBackup Enterprise Server.
-priority number
The priority of this policy in relation to other policies. Priority is greater than
or equal to 0. This value determines the order in which policies are run. The
higher the value, the earlier the policy is run. The default is 0, which is the
lowest priority.
-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
NDMP
273
274
NetBackup Commands
bpplinfo
NetWare
Oracle
OS/2
Standard
Sybase
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-res_is_stl 0 | 1
Specify this flag only when the name of the storage unit and the name of the
storage lifecycle policy are the same. In all other cases this flag is ignored.
The possible values are as follows:
0 - the residence is a non-storage life cycle policy
1 - the residence is a storage life cycle policy
-residence label
Specifies the label of the storage unit for storing the backups that were created
according to this schedule. The default is Any_available, which allows the
policy to use any storage unit whose On demand only attribute is set to No.
If the policy needs to use a specific storage unit or the desired storage unit
has its On demand only attribute set to Yes, then specify the storage unit. If
"*NULL*" is specified, the residence for the schedule is set (or reset) to
Any_available. The policy residence determines the residence for the policy
schedules, unless the Override Policy Storage Unit setting on an individual
schedule specifies a residence. Run bpstulist to display the set of defined
storage units.
NetBackup Commands
bpplinfo
-rfile flag
0 (disabled) or 1 (enabled).
Specifies the server group(s) for the schedule. Do not use this option if the
schedule resides on a disk storage unit. If *NONE* is specified, the writing
media server owns the media that this policy writes. If *ANY* is specified,
EMM chooses the media owner. *ANY* is the default value. Otherwise, the
named share group owns the media. Specify a share group for each copy to
display the configured share groups. Enter the following command:
UNIX and Linux systems:
/usr/openv/netbackup/bin/admincmd/nbsvrgrp -list -summary
Windows systems:
install_path\NetBackup\bin\admincmd\nbsvrgrp -list -summary
-ut
If any of the date or the time arguments follow -ut, they are accepted as UNIX
time, instead of the standard time format. The -ut option is used primarily
for Java.
The third bpplinfo form (not in the synopsis) shows usage information and
has only one option, as follows:
EXAMPLES
Note: References to NFS Mounts in the following examples apply only to NetBackup
Enterprise Server.
Example 1 - Set the storage unit of the policy tstpolicy to tstunit and view the
results, perform the following:
275
276
NetBackup Commands
bpplinfo
Example 2 - Activate the policy named test1 without modifying any other policy
attributes, enter the following:
# bpplinfo test1 -modify -active
NetBackup Commands
bpplinfo
277
no
0
no
no
no
0
0
8
0
no
0 MB (1048576 MB)
NetBackup
Example 4 - Display a short listing for the policy that is named mkbpolicy:
# bpplinfo mkbpolicy -l
INFO 0 0 0 0 *NULL* 0 0 99 0 0 0 0 0 0 0 0 *NULL* 1
KEY my temp directory
BCMD *NULL*
RCMD *NULL*
RES mkbunit *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL*
POOL NetBackup *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL*
FOE 0 0 0 0 0 0 0 0 0 0
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/policy/policy_name/info
Windows systems:
install_path\NetBackup\logs\admin/*
install_path\NetBackup\db\policy\policy_name\info
278
NetBackup Commands
bppllist
bppllist
bppllist list policy information
SYNOPSIS
bppllist [policyname] [-L | -l | -U] [-allpolicies] [-inventory] [-M
master_server,...] [-hwos] [-byclient client] [-keyword "keyword
phrase"] [-verbose] [generation -generation]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bppllist lists policies within the NetBackup database.
OPTIONS
-allpolicies
Displays information in user list mode. This listing is similar to the long-type
list, but it has fewer entries.
-byclient client
Lists the policy information for all policies that contain the client indicated.
NetBackup Commands
bppllist
-inventory
The value is associated with all backups created by using this policy. The
keyword phrase can be used to link related policies. It can also be used during
restores to search only for the backups that have the keyword phrase
association.
policyname
279
280
NetBackup Commands
bpplsched
bpplsched
bpplsched add, delete, or list NetBackup schedules
SYNOPSIS
bpplsched policy_name [-v] [-M master_server,...] [-L | -l | -U]
[-label sched_label] [-generation generation] [-reason "string"]
bpplsched policy_name [-v] [-M master_server,...] -delete
sched_label,... [-generation generation] [-reason "string"]
bpplsched policy_name [-v] [-M master_server,...] -deleteall
[-generation generation] [-reason "string"]
bpplsched policy_name [-v] [-M master_server,...] -add sched_label
[-st sched_type] [-freq frequency] [-mpxmax mpx_factor]
[-number_copies number] [-synthetic 0|1] [-pfi_fast_recovery 0|1]
[-rl retention_level [,rl_copy,...]] [-residence storage_unit_label
[,stunit_copy,...]] [-pool volume_pool_label [,pool_copy,...]
[-res_is_stl 0|1] [-fail_on_error 0|1[,0|1,...,0|1]] [-sg share_group
[,share_copy,...] [-window start_duration] [-cal 0|1|2] [-ut] [-incl
mm/dd/yyyy] [-excl mm/dd/yyyy] [-weekday day_name week] [-dayomonth
value | l] [-generation generation] [-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpplsched does one of the following:
For the -add and -delete options, bpplsched returns to the system prompt
immediately after it submits the schedule change request to NetBackup. To
determine whether the change was successful, run bpplsched again to list the
updated schedule information.
NetBackup Commands
bpplsched
When the listing option is used, a single entry for each schedule appears even if
the -M option is used. The -l form lists the information for each schedule on
several lines. -l does not identify the attributes by name; these are as follows
(where the names are not described; they are reserved for internal NetBackup
use):
Line 1: SCHED, schedule name, type, max_mpx, frequency, retention level,
u_wind/o/d, two internal attributes, maximum fragment size, calendar, number
of copies, and fail on error. Note that u_wind/o/d is a field reserved for future use.
The u_wind entry in the -L display is also reserved for future use.
Line 2: SCHEDWIN, seven pairs of the form start,duration, which expresses the
start and duration of the window for each day of the week. It starts with Sunday.
Line 3: SCHEDRES, residence (a value for each copy).
Line 4: SCHEDPOOL, pool (a value for each copy).
Line 5: SCHEDRL, retention level (a value for each copy).
Line 6: SCHEDFOE, fail on error (a value for each copy).
If the -M option is used, bpplsched performs the operation on each of the master
servers that are listed. For instance, if bpplsched adds a schedule, bpplsched adds
the schedule to the policy on each of the master servers that is listed for -M. If -M
is used on a listing request, the listing is composed of returned information from
all of the master servers in the -M list. If the command fails for any of the master
servers, activity stops at that point.
To modify an existing NetBackup schedule, use the NetBackup command
bpplschedrep.
Authorized users can initiate this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
These options are common to all forms of bpplsched:
policy_name
The name of the policy that contains the schedules. The policy must exist
before you run this command. This option is required, and must be the first
one on the command line.
-M master_server,...
281
282
NetBackup Commands
bpplsched
bpplsched command. Each master server in the list must allow access by the
Selects the verbose mode. This option causes bpplsched to log additional
information for debugging purposes. The information goes into the NetBackup
administration debug log. This option is meaningful only when NetBackup
enables the debug log function (that is, when the following directory is
defined):
Windows systems: install_path\NetBackup\logs\admin
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
The remaining options depend on the form of bpplsched. The first form of
bpplsched adds a schedule to the named policy. The following options apply to
this form of bpplsched:
-add sched_label [suboptions]
NetBackup Commands
bpplsched
-dayomonth value | l
Specifies the day of every month to run the schedule. Enter l (lowercase L) to
run the last day of every month, whether the month contains 28, 29, 30, or
31 days.
For example, to run the schedule the 15th day of every month, enter:
-dayomonth 15
Specifies whether to fail all other copies if one copy fails. If no parameter is
specified, 0 is default for all copies. Specify a value for each copy.
0 = Do not fail the other copies
1 = Fail other copies
-freq frequency
The maximum number of jobs for this schedule that NetBackup multiplexes
on any one drive. mpx_factor is an integer that can range from 1 through 8
for NetBackup Server and 1 through 32 for NetBackup Enterprise Server. A
value of one (1) means that backups for this schedule are not multiplexed.
The default is no multiplexing.
283
284
NetBackup Commands
bpplsched
-number_copies number
Enables the user to turn on the feature to retain snapshots for instant
recovery. The default value is 0, which means this feature is disabled. A value
of 1, enables this feature.
-pool volume_pool_label[,pool-copy,...]
The name of the volume pool. This choice overrides the policy-level volume
pool. If you enter "*NULL*", NetBackup uses the volume pool that is specified
at the policy level. The default is to use the volume pool that is specified at
the policy level. The volume pool label cannot be None. If you do not specify
a volume pool at either the schedule level or the policy level, NetBackup uses
a default value of NetBackup.
When you specify -number_copies greater than 1, specify a pool for each
copy. If the storage unit is a disk enter "*NULL" for that copy.
-reason "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-res_is_stl
The name of the storage unit, which specifies the location of the backup
images. The value "*NULL*" causes NetBackup to use the storage unit that is
specified at the policy level. The default is for NetBackup to use the storage
unit that is specified at the policy level. If you do not specify a storage unit
at either the schedule level or the policy level, NetBackup uses the next storage
unit available.
When you specify -number_copies greater than 1, specify a residence for
each copy.
-rl retention_level[,rl-copy,...]
The retention level determines how long to retain backups and archives. The
retention_level is an integer between 0 and 24. The default retention level is
NetBackup Commands
bpplsched
1. Valid retention levels and their corresponding default retention times are
listed later in this description.
When you specify -number_copies greater than 1, specify a retention level
for each copy.
Caution: You can change the retention period that is associated with each
level by using the NetBackup administration interface. Therefore, your
configuration may have different values for each level than those shown here.
Use the NetBackup administration interface to determine the actual retention
periods before you make any changes with this command.
Otherwise, backups can expire sooner than you expect, which results in loss
of data.
0
1 week
2 weeks
3 weeks
1 month
2 months
3 months
6 months
9 months
1 year
9 - 24
infinite
Specifies the share group(s) for the schedule. Do not use this option if the
schedule resides on a disk storage unit. If *NONE* is specified, the writing
media server owns the media that this policy writes. If *ANY* is specified,
EMM chooses the media owner. *ANY* is the default value. Otherwise, the
named share group owns the media. Specify a share group for each copy to
display the configured share groups. Enter the following:
UNIX and Linux systems:
/usr/openv/netbackup/bin/admincmd/nbsvrgrp -list -summary
285
286
NetBackup Commands
bpplsched
The type of the schedule. The default schedule type is FULL. The following
list contains the possible values for this attribute with their meanings:
FULL - full
INCR - differential incremental
CINC - cumulative incremental
UBAK - user backup
UARC - user archive
-synthetic 0|1
Enables the user to determine which schedule occurs. A value of zero (0)means
the schedule is a real (non-synthetic) backup schedule. (0 is the default.) A
value of one (1) means the schedule is a synthetic backup schedule.
-ut
If any of the date or the time arguments follow -ut, they are accepted as UNIX
time, instead of the standard time format. The -ut option is used primarily
for Java.
-weekday day_name week
Specifies a day of the week, and the week of the month, as a run day in the
schedule.
The day_name is: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
or Saturday.
The week is the number of the week in the month.
For example, to instruct the policy to run the second Monday of the month,
enter:
-weekday Monday 2
-window start duration
Specifies when NetBackup can run the backups for this schedule. Every day
of the week has the same window.
start is the time at which the backup window opens for this schedule. This
time is the number of seconds since midnight. This number is an integer
between 0 and 86399 (86400 seconds in a day).
NetBackup Commands
bpplsched
duration is the length of time that the window remains open. The time unit
is seconds. This unit is a non-negative integer.
The second form of bpplsched deletes one or more schedules from the named
policy. The following option applies to this form of bpplsched:
-delete sched_label
Delete the listed schedules from the named policy Separate the elements of
the sched_label list with spaces. There can be up to 25 labels in the list.
The third form of bpplsched deletes all schedule from the named policy. The
following option applies to this form of bpplsched:
-deleteall
The list type is short (the default list type). This option produces a terse listing
that includes all attributes for the schedule. Each schedule occupies one line
of the listing. Most attribute values are expressed numerically. This option
is useful for scripts or the programs that rework the listing contents into a
customized report format.
-L
The list type is long. This listing includes all attributes for the schedule. Some
attribute values are descriptive terms, rather than numbers.
-label sched_label
List the attributes for this schedule in the named policy. The default is to list
information for all schedules for the named policy.
-U
The list type is user. This listing is similar to the long-type list, but it has
fewer entries. Most attribute values are descriptive terms, rather than
numbers.
EXAMPLES
Example 1 - List the information for schedule user within policy tstpolicy in two
different ways. The first display is in long mode. The second is in User mode,
which shows fewer entries than the Long mode display.
# bpplsched tstpolicy -L -label user
Schedule:
user
287
288
NetBackup Commands
bpplsched
Type:
UBAK (2)
Frequency:
1 day(s) (86400 seconds)
Retention Level: 0 (1 week)
u-wind/o/d:
0 0
Incr Type:
DELTA (0))
Incr Depends: (none defined)
Max Frag Size:0 MB (1048576 MB)
Maximum MPX: 1
Number copies:1
Fail on Error:0
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
Day
Open
Close
W-Open
W-Close
Sunday
000:00:00 024:00:00
000:00:00 024:00:00
Monday
000:00:00 024:00:00
024:00:00 048:00:00
Tuesday
000:00:00 024:00:00
048:00:00 072:00:00
Wednesday
000:00:00 024:00:00
072:00:00 096:00:00
Thursday
000:00:00 024:00:00
096:00:00 120:00:00
Friday
000:00:00 024:00:00
120:00:00 144:00:00
Saturday
000:00:00 024:00:00
144:00:00 168:00:00
# bpplsched tstpolicy -U -label user
Schedule:
user
Type:
User Backup
Retention Level: 0 (1 week)
Maximum MPX:
1
Number copies:1
Fail on Error:0
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
Sunday
00:00:00 --> Sunday
24:00:00
Monday
00:00:00 --> Monday
24:00:00
Tuesday
00:00:00 --> Tuesday
24:00:00
Wednesday 00:00:00 --> Wednesday 24:00:00
Thursday
00:00:00 --> Thursday
24:00:00
Friday
00:00:00 --> Friday
24:00:00
Saturday
00:00:00 --> Saturday
24:00:00
Example 2 - While in operation on the system hatt, list information for the
schedule named full in policy tstpolicy, as defined on the master server beaver:
NetBackup Commands
bpplsched
Example 3 - Add a new schedule, full_2, to the policy tstpolicy on beaver, and
then lists the new schedule in Long mode. These commands run on the system
hatt.
# bpplsched tstpolicy -M beaver -add full_2
# bpplsched tstpolicy -M beaver -label full_2 -L
Schedule:
full_2
Type:
FULL (0)
Frequency:
7 day(s) (604800 seconds)
Retention Level: 1 (2 weeks)
u-wind/o/d:
0 0
Incr Type:
DELTA (0)
Incr Depends:
(none defined)
Max Frag Size:
0 MB (1048576 MB)
Maximum MPX:
1
Number copies:1
Fail on Error:0
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
289
290
NetBackup Commands
bpplsched
Day
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Open
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
Close
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
W-Open
W-Close
Example 4 - Delete the schedules, full_3, user, user_2, and user_3 from policy
tstpolicy:
# bpplsched tstpolicy -delete full_3 user user_2 user_3
Schedule:
Type:
Frequency:
user
UBAK (2)
1 day(s) (86400 seconds)
NetBackup Commands
bpplsched
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
000:00:00
024:00:00
024:00:00
024:00:00
024:00:00
024:00:00
024:00:00
024:00:00
000:00:00
024:00:00
048:00:00
072:00:00
096:00:00
120:00:00
144:00:00
024:00:00
048:00:00
072:00:00
096:00:00
120:00:00
144:00:00
168:00:00
Example 6 - Add a new schedule, full, with a window from 11 p.m. to midnight.
The second bpplsched lists the information for schedule full:
bpplsched elevenpm -add full -window 82800 3600
bpplsched elevenpm -U -label full
Schedule:
FULL (0)
Type:
Full Backup
Frequency:
every 7 days (604800 seconds)
Retention Level: 1 (2 weeks)
Maximum MPX:
1
Number copies:1
Fail on Error:0
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
Sunday
23:00:00 --> Sunday
24:00:00
Monday
23:00:00 --> Monday
24:00:00
Tuesday
23:00:00 --> Tuesday
24:00:00
Wednesday 23:00:00 --> Wednesday 24:00:00
Thursday
23:00:00 --> Thursday
24:00:00
Friday
23:00:00 --> Friday
24:00:00
Saturday
23:00:00 --> Saturday
24:00:00
291
292
NetBackup Commands
bpplsched
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/policy/policy_name/schedule
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\policy\policy_name\schedule
SEE ALSO
See bpplschedrep on page 293.
NetBackup Commands
bpplschedrep
bpplschedrep
bpplschedrep modify NetBackup schedule attributes
SYNOPSIS
bpplschedrep policy_name sched_label [ -M master_server,...] [-v]
[-generation generation] [-st sched_type] [-freq backup_frequency]
[-mpxmax mpx_factor] [-cal 0|1|2] [-incl mm/dd/yyyy] [-excl
mm/dd/yyyy] [-delincl mm/dd/yyyy] [-delexcl mm/dd/yyyy] [-weekday
day_name week] [-dayomonth 1-31|l] [-delweekday day_name week]
[-deldayomonth 1-31|l] [-ci] [-ce] [-cw] [-cd] [-number_copies
number][-rl retention_level[,rl-copy2,...]] [-fail_on_error
0|1[,0|1,...,0|1]] [-residence storage_unit_label [,stunit_copy2,...]]
[-pool volume_pool_label [,pool_copy2,...]] [-sg share_group
[,share_copy2,...]] [-(0..6) start duration] [-res_is_stl 0 | 1]
[-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpplschedrep changes the attributes of a NetBackup schedule. The schedule and
policy that bpplschedrep names should already exist when this command is run.
If the -M option is used, bpplschedrep changes the schedule on each of the listed
master servers.
Any authorized user can initiate this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-(0..6) start duration
Specifies the window during which NetBackup can run the backups for this
schedule. This window applies to a specific day of the week. 0 corresponds to
Sunday, 1 to Monday, and so on.
293
294
NetBackup Commands
bpplschedrep
start is the time at which the backup window opens for this schedule. This
time is the number of seconds since midnight. It is an integer between 0 and
86400 (the number of seconds in a day).
duration is the length of time that the window remains open. The time unit
is seconds. This unit is a non-negative integer.
-cal 0|1|2
Specifies the day of every month to run the schedule. Enter l (lowercase L) to
run the last day of every month, whether the month contains 28, 29, 30, or
31 days.
For example, to run the schedule the 15th day of every month, enter:
-dayomonth 15
Specifies a day of the week and the week of the month to exclude as a run day
from the schedule. This command can only remove the dates that were added
by using the -weekday command.
The day_name is: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
or Saturday.
The week is the number of the week in the month.
For example, to exclude the second Monday of the month, enter:
NetBackup Commands
bpplschedrep
-delweekday Monday 2
-excl mm/dd/yyyy
Indicates to delete this single date. This command can only remove the dates
that were added by using the -incl command.
-delexcl mm/dd/yyyy
Specifies whether to fail all other copies if one copy fails. If no parameter is
specified, 0 is default for all copies. Specify a value for each copy.
0 = Do not fail the other copies
1 = Fail other copies
-freq backup_frequency
The backup frequency controls how much time can elapse between successful
automatic backups for clients on this schedule. Frequency does not apply to
user schedules because the user can perform a backup or archive any time
the backup window is open. This value is a positive integer that represents
the number of seconds between successful automatic backups for this
schedule.
-help
295
296
NetBackup Commands
bpplschedrep
The name of the policy that contains the schedule. This policy has been
previously created.
-pool volume_pool_label[,pool-copy2,...]
Specifies the volume pool(s) for the schedule. Do not use this option if a disk
storage unit is the residence for the schedule. If "*NULL*" is specified, the
volume pool for the schedule is the volume pool of the policy that contains
this schedule.
Specify a pool for each copy.
To display the configured volume pools, run the following command:
UNIX and Linux systems: /usr/openv/volmgr/bin/vmpool -listall
NetBackup Commands
bpplschedrep
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-res_is_stl 0 | 1
Specify this flag only when the name of the storage unit and the name of the
storage lifecycle policy are the same. In all other cases this flag is ignored.
The possible values are as follows:
0 - the residence is a non-storage life cycle policy
1 - the residence is a storage life cycle policy
-residence storage_unit_label[,stunit-copy2,...]
Specifies the label(s) of the storage unit to be used for storing the backups
that were created according to this schedule. If "*NULL*" is specified, the
residence for the schedule defaults to the residence of the policy that contains
this schedule. If the residence value is a storage unit label, the residence for
the schedule becomes that storage unit and overrides the residence for the
policy.
Specify a storage unit for each copy.
Run bpstulist to display the set of defined storage units.
-rl retention_level[,rl-copy2,...]
Specifies how long NetBackup retains the backups that it creates by using
this schedule. Valid retention levels and their corresponding default retention
times are listed later in this description.
Specify a retention level for each copy.
Caution: You can change the retention period that is associated with each
level by using the NetBackup administration interface. Therefore, your
configuration may have different values for each level than those shown here.
Use the NetBackup administration interface to determine the actual retention
periods before you make any changes with this command.
Otherwise, backups can expire sooner than you expect, which results in loss
of data.
297
298
NetBackup Commands
bpplschedrep
1 week
2 weeks
3 weeks
1 month
2 months
3 months
6 months
9 months
1 year
9 - 24
infinite
NetBackup keeps the information about the backups for the specified time.
Then it deletes information about them. When the information is deleted,
the files in the backups are unavailable for restores. When all the backups
on a volume have expired, the volume can be reassigned.
sched_label
Specifies the name of the schedule to be changed. This schedule has been
previously created.
-sg share_group [,share_copy2,...]
Specifies the share group(s) for the schedule. Do not use this option if the
schedule resides on a disk storage unit. If *NONE* is specified, the writing
media server owns the media that this policy writes. If *ANY* is specified,
EMM chooses the media owner. *ANY* is the default value. Otherwise, the
named share group owns the media. Specify a share group for each copy to
display the configured share groups. Enter the following:
UNIX and Linux systems: /usr/openv/netbackup/bin/admincmd/nbsvrgrp
-list -summary
Windows systems: install_path\NetBackup\bin\admincmd\nbsvrgrp
-list -summary
-st sched_type
Specifies the type of backup this schedule performs. Schedule types fall into
either an automatic or user category. Automatic schedules define the windows
during which the NetBackup scheduler can initiate a backup for this policy.
NetBackup Commands
bpplschedrep
User schedules define the windows during which a user can initiate a backup
or archive.
The values for schedule type are
FULL
(full backup)
INCR
CINC
UBAK
(user backup)
UARC
(user archive)
Specifies a day of the week, and the week of the month, as a run day in the
schedule.
The day_name is: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
or Saturday.
The week is the number of the week in the month.
For example, to instruct the policy to run the second Monday of the month,
enter:
-weekday Monday 2
-v
Selects the verbose mode. This option causes bpplschedrep to log additional
information for debugging purposes. The information goes into the NetBackup
administration daily debug log. This option is meaningful only when
NetBackup enables the debug log function (that is, when the following
directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLES
Example 1 - Set the frequency for a schedule.
# bpplschedrep mkbpolicy incr -freq 604800
This sets to one (1) week the frequency with which automatic backups are
performed for the schedule incr in policy mkbpolicy.
299
300
NetBackup Commands
bpplschedrep
Example 2 - For Saturday and Sunday of each week, have the window for schedule
full in policy mkbpolicy open at 10 p.m. instead of 11 p.m. Also, set the window
duration to two (2) hours instead of one (1) hour. bpplschedrep resets the windows,
and bpplsched lists the new schedule values.
# bpplschedrep newpolicy full -0 79200 7200 -6 79200 7200
# bpplsched newpolicy -U -label full
Schedule:
full
Type:
Full Backup
Frequency:
every 7 days
Retention Level: 1 (2 weeks)
Maximum MPX:
1
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
Sunday
22:00:00 --> Sunday
24:00:00
Monday
23:00:00 --> Monday
24:00:00
Tuesday
23:00:00 --> Tuesday
24:00:00
Wednesday 23:00:00 --> Wednesday 24:00:00
Thursday
23:00:00 --> Thursday
24:00:00
Friday
23:00:00 --> Friday
24:00:00
Saturday
22:00:00 --> Saturday
24:00:00
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/policy/policy_name/schedule
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\policy\policy_name\schedule
SEE ALSO
See bpplsched on page 280.
NetBackup Commands
bppolicynew
bppolicynew
bppolicynew create, copy, or rename a NetBackup policy
SYNOPSIS
bppolicynew policy_name [-verbose] [-M master_server,...] [-reason
"string"]
bppolicynew policy_name -sameas existing_policy_name [-verbose] [-M
master_server,...] [-reason "string"]
bppolicynew existing_policy_name -renameto policy_name [-verbose]
[-M master_server,...] [-reason "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bppolicynew performs one of the following operations on a NetBackup policy:
The clients, files, schedules, and attributes for the new policy are the same as
those for the existing policy. bppolicynew does not create a policy copy with the
same name as an existing policy.
If bppolicynew renames a policy, the existing association of images with the policy
is lost. This means that the images that were created before the policy was renamed
are not included in a list of images for the renamed policy. The command does
not rename a policy with the same name as an existing policy.
bpplinfo replaces the policy-attribute defaults with new values. bpplclients,
bpplinclude, and bpplsched define the clients, backup files, and schedules for
the policy. A policy needs to have at least one client, one file specification, and
one automatic schedule before it can run automatic backups.
301
302
NetBackup Commands
bppolicynew
bppolicynew sends its error messages to stderr. bppolicynew sends a log of its
activity to the NetBackup admin log file for the current day.
Authorized user can initiate this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
See the NetBackup Administrators Guide for additional information on policies.
OPTIONS
policy_name
The name of a NetBackup policy that already exists when bppolicynew runs.
The option does not have a default value.
-renameto
Change the name of the existing policy to the new policy name.
-sameas
Create a new policy by copying its characteristics from the existing policy.
-help
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
NetBackup Commands
bppolicynew
-verbose
Select verbose mode for logging. This option is meaningful only when it runs
with the debug log function (that is, when the following directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
policy_name
The name of a NetBackup policy that already exists when bppolicynew runs.
The option does not have a default value.
-renameto
Change the name of the existing policy to the new policy name.
-sameas
Create a new policy by copying its characteristics from the existing policy.
-help
Select verbose mode for logging. This option is meaningful only when it runs
with the debug log function (that is, when the following directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
303
304
NetBackup Commands
bppolicynew
EXAMPLES
Note that references to Follow NFS Mounts in these examples apply only to
NetBackup Enterprise Server.
Example 1 - Create a policy with default attribute values on the master server
plim:
# bppolicynew ishkabibble -M plim
# bppllist ishkabibble -U -M plim
-----------------------------------------------------------Policy Name:
ishkabibble
Policy Type:
Standard
Active:
yes
Client Compress:
no
Follow NFS Mounts:
no
Cross Mount Points: no
Collect TIR info:
no
Block Incremental:
no
Mult. Data Streams: no
Client Encrypt:
no
Policy Priority:
0
Max Jobs/Policy:
99
Disaster Recovery:
0
Residence:
(specific storage unit not required)
Volume Pool:
NetBackup
Keyword:
(none specified)
Clients:
(none defined)
Include:
(none defined)
Schedule:
(none defined)
Example 2 - Create a new policy, mypolicy_copy from the existing policy mypolicy.
bppllist shows that mypolicy_copy has the same attributes as mypolicy. For
brevity, most of the schedule information is omitted here:
# bppolicynew mypolicy_copy -sameas mypolicy
# bppllist mypolicy_copy -U
-----------------------------------------------------------Policy Name:
mypolicy_copy
Policy Type:
Standard
Active:
yes
Client Compress:
no
NetBackup Commands
bppolicynew
no
no
no
no
no
no
0
99
0
myunit
NetBackup
(none specified)
Linux
RedHat
zippity
/tmp/my
Schedule:
Type:
Frequency:
Maximum MPX:
Retention Level:
Residence:
Volume Pool:
Daily Windows:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
full
Full Backup
every 7 days
1
0 (1 week)
(specific storage unit not required)
(same as policy volume pool)
Schedule:
Type:
incr
Differential Incremental Backup
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
-->
-->
-->
-->
-->
-->
-->
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
305
306
NetBackup Commands
bppolicynew
no
no
no
no
no
no
0
99
0
myunit
NetBackup
(none specified)
Linux
RedHat
zippity
/tmp/my
Schedule:
Type:
Frequency:
Maximum MPX:
Retention Level:
Residence:
Volume Pool:
Daily Windows:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
full
Full Backup
every 7 days
1
0 (1 week)
(specific storage unit not required)
(same as policy volume pool)
Schedule:
Type:
incr
Differential Incremental Backup
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
-->
-->
-->
-->
-->
-->
-->
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
# bppllist mypolicy_copy -U
-----------------------------------------------------------Policy Name:
mypolicy_copy
Policy Type:
Standard
Active:
yes
Client Compress:
no
Follow NFS Mounts:
no
NetBackup Commands
bppolicynew
no
no
no
no
no
0
99
0
myunit
NetBackup
(none specified)
Linux
RedHat
zippity
/tmp/my
Schedule:
Type:
Frequency:
Maximum MPX:
Retention Level:
Residence:
Volume Pool:
Daily Windows:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
full
Full Backup
every 7 days
1
0 (1 week)
(specific storage unit not required)
(same as policy volume pool)
Schedule:
Type:
incr
Differential Incremental Backup
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
-->
-->
-->
-->
-->
-->
-->
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
08:00:00
Example 3 - Rename a policy from policy_old to policy_new. Before and after the
renaming, bppllist shows the policies in the NetBackup configuration database:
bppllist
mypolicy
policy_old
test
bppolicynew policy_old -renameto policy_new
bppllist
307
308
NetBackup Commands
bppolicynew
mypolicy
policy_new
test
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, bppllist logs the exit status in the
administrative daily log under the log directory:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/policy/policy_name
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\policy\policy_name
SEE ALSO
See bpplclients on page 251.
See bpplinfo on page 266.
See bpplsched on page 280.
See bppldelete on page 258.
See bppllist on page 278.
NetBackup Commands
bpps
bpps
bpps list all processes and statistics for each process
SYNOPSIS
<install_path>\NetBackup\bin\bpps [-l | -s | -S] [-t sample_time[m]]
[-i | -x process_group] ... [host_name] ...
<install_path>\NetBackup\bin\bpps -? [process_group ...]
DESCRIPTION
This command operates only on Windows systems.
The bpps command lists the process statistics for all processes that run on your
system. This command enables you to list a specific process group. It also enables
you specify a sample time in seconds (or milliseconds) before it lists the processes.
Note: The command options that bpps uses are unrelated to the options that the
UNIX bpps command uses.
OPTIONS
-?
Print the help screen. If you specify process_group here, it displays the list
of processes that are included or excluded when you specify process_group
with -i or -x options.
-l
Output a short listing without the header (for example, host name, date, and
column headings).
-t sample_time[m]
Specify the sample time (default 1 second). The sample time is specified in
seconds unless followed by m, which specifies the sample time in milliseconds.
-i process_group
309
310
NetBackup Commands
bpps
-x process_group
The name of the host computer on which you list group process statistics.
NOTES
The following is a list of all of the valid process groups and a brief description of
each:
MM_ALL
NetBackup Commands
bpps
NB_ALL_WORKERS
311
312
NetBackup Commands
bpps
NBDB_ALL
FILES
install_path\NetBackup\bin\bp.conf
NetBackup Commands
bpps
bpps
bpps list process statistics for the processes that run on your system
SYNOPSIS
/usr/openv/netbackup/bin/bpps [-a | -x]
DESCRIPTION
This command operates only on UNIX and Linux systems.
The bpps command lists the process statistics for all processes that run on your
system.
Note: The command options that bpps uses are unrelated to the options that the
Windows bpps command uses.
OPTIONS
-a
-x
Includes Media Manager processes and the extra shared processes such as
pbx_exchange in the listing.
313
314
NetBackup Commands
bprd
bprd
bprd initiate NetBackup request daemon
SYNOPSIS
/usr/openv/netbackup/bin/bprd [-verbose]
DESCRIPTION
This command operates only on UNIX and Linux systems.
bprd is responsible for starting automatic client backups and for responding to
client requests for file restores and user backups and archives. bprd runs only on
the master server and can be started only by the administrator.
The following steps occur in the order listed when bprd starts:
After it disassociates itself from the terminal, the daemon does the following:
The program reads the NetBackup configuration attributes and recycles older
error and debug log files. Activity and error logs are also recycled on a daily
basis.
bprd determines its port number by checking the services file for an entry
with a service name of bprd and a protocol name of tcp. For example:
bprd 13720/tcp
After it binds to its port, the program performs the following tasks: It schedules
automatic client backups, accepts requests from client machines for file
restores or user backups or archives, and accepts administrative requests from
the server.
You can use bprdreq -terminate to terminate bprd. If you terminate bprd, it
does not terminate bpdbm.
NetBackup Commands
bprd
OPTIONS
-verbose
Specifies that the bprd command writes additional information in its daily
debug log for debugging purposes.
FILES
/usr/openv/netbackup/db/*
/usr/openv/netbackup/bp.conf
/usr/openv/netbackup/logs/bprd/*
/usr/openv/netbackup/bin/initbprd
/usr/openv/netbackup/bin/initbpdbm
SEE ALSO
See bpadm on page 52.
See bpdbm on page 116.
315
316
NetBackup Commands
bprecover
bprecover
bprecover recover selected NetBackup related catalogs
SYNOPSIS
bprecover -wizard [-copy number]
bprecover -r -nbdb [-priority number] [-copy number] [-L output_file]
bprecover -l | -r -vxss -p policy_name [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bprecover command initiates the NetBackup utility for restoring the
NetBackup catalogs. It recovers the catalogs that were backed up by using the
procedures that are described in the NetBackup Administrators Guide. Use
bprecover only if catalogs were destroyed on disk.
bprecover has three modes:
-wizard lets you recover the entire NetBackup catalog or the catalog image
NBDB recovery (-r -nbdb) lets you recover the NetBackup relational database
and the BMR database, if BMR is configured.
OPTIONS
-copy number
Specifies the number of the copy of the catalog backup image to be used for
the recovery operation. This option restores from a non-primary copy of the
catalog backup image.
-l
Used with -vxss to list the header information for the VxSS backup.
NetBackup Commands
bprecover
-L output_file
Used with the -r option during catalog recovery procedures to recover and
resynchronize the NetBackup relational databases (NBDBs) and the BMR
database (BMRDB), if BMR is configured.
For complete catalog recovery procedures, see the Disaster Recovery chapter
of the NetBackup Troubleshooting Guide.
-p policy_name
Used with -nbdb to recover the relational databases. or with -vxss to recover
the VxSS backup.
-r
Selects the verbose mode when used with the -vxss option.
-vxss
When -vxss is used with the -p policy_name option, you can recover the
Symantec Product Authentication and Authorization Service data. The image
is recovered from the following location:
UNIX and Linux systems:
/usr/openv/netbackup/db/NBU_VSSDB_IMAGE/policy_name
Windows systems:
install_path\NetBackup\db\NBU_VSSDB_IMAGE\policy_name
-wizard
Enables a user to perform the same functions from a command line that are
present on the recovery wizard. For example, a user can specify the full
pathname to the catalog disaster recovery file or recover the entire NetBackup
catalog. The wizard prompts you for the catalog disaster recovery file.
The -copy option lets you select the number of the copy
Note: The operator must be logged on locally to the master server that is to
be recovered.
317
318
NetBackup Commands
bprecover
EXAMPLES
Example 1 - Recover the entire NetBackup catalog or the catalog image and
configuration files. On Windows, a series of screens takes you through the recovery
process. On UNIX or Linux, a series of prompts takes you through the recovery
process.
# bprecover -wizard
The Disaster Recovery chapter of the Troubleshooting Guide describes each step
of the recovery process.
Example 2 - Recover the NetBackup relational databases and reports the results
of the recovery in the recovery.rpt file.
# bprecover -r -nbdb -L recovery.rpt
The Disaster Recovery chapter of the Troubleshooting Guide describes each step
of the recovery process.
ERRORS
If any errors occur during the recover operation, NetBackup writes error messages
to one of the following: stderr (UNIX and Linux systems) or the MS-DOS command
window when you run the bprecover command (Windows systems).
Also, debug logs are accumulated in the following directory path:
On Windows, <install_path>\NetBackup\logs\admin
On UNIX and Linux, /usr/openv/netbackup/logs/admin
SEE ALSO
NetBackup Troubleshooting Guide for information on disaster recovery.
NetBackup Commands
bprestore
bprestore
bprestore restore files from NetBackup Server
SYNOPSIS
bprestore [-A | -B] [-K] [-l | -H | -y] [-r] [-T] [-L progress_log
[-en]] [-R rename_file] [-C client] [-D client] [-S master_server]
[-disk_media_server media_server][-t policy_type] [-p policy] [-k
"keyword_phrase"] [-cm] [-drs] [-md] [-dd] [-td temp_dir] [-s date]
[-e date] [-F file_options] [-spsredir_server hostname] [-spscurver]
[-spsignorelock] [-spspreserveiis] [-spsrestoresecurity] [-spsverkeep
[0 | 1 | 2]] [-vhd_fn VHD_filename] [-vhd_type 0 | 1] [-vhd_dsize
VHD_disk_size] [-vhd_dof 0 | 1] -BR portal_name | teamsite_name]
[-copy copy_number] [-granular_restore] [-priority number] [-w
[hh:mm:ss]] -f listfile | filenames [-ev_migrated_data]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
bprestore lets users restore a backed up or archived file or list of files. You can
319
320
NetBackup Commands
bprestore
The bprestore command restores the file from the most recent backups within
the time period you specify, except for a true-image restore. (See the -T option
description.)
bprestore overwrites any file of the same name that already exists on the local
client disk, unless you include the -K option. You also can restore the files that
were backed up or archived on another client (-C option). To restore from other
clients, the NetBackup administrator must validate you.
bprestore writes informative and error messages to a progress-log file if you do
the following: create the file before you run the bprestore command and then
specify the file with the -L progress_log option. If bprestore cannot restore
the requested files or directories, you can use the progress log to find the reason
for the failure.
For detailed troubleshooting information, create a directory that is named
/usr/openv/netbackup/logs/bprestore (UNIX and Linux systems) or
install_path\NetBackup\logs\bprestore (Windows systems) with public-write
access. bprestore then creates a debug log file in this directory.
For UNIX and Linux systems, if a nonroot user specifies USEMAIL = mail_address
in the $HOME/bp.conf file, the following occurs: NetBackup sends mail on the
restore completion status to mail_address. This message is sent when the restore
process is complete.
The following restrictions apply to bprestore:
You can restore the files and the directories that you own and those owned by
other users if you have read access. You need write access to another users
directories and files to restore that users files to their original location.
The operating system restricts the number of files and directories that you
can specify on a single bprestore command line. If this restriction is a problem,
use the -f option to restore the files.
Use the bplist command to display information on the files and directories that
were backed up or archived.
Note: If you restore catalog files directly using bprestore on a Solaris system, use
the following path: /opt/openv/netbackup/bin/bprestore.
NetBackup Commands
bprestore
OPTIONS
-A | -B
Specifies whether to restore from archives (-A) or backups (-B). The default
is -B.
-BR portal_name | teamsite_name
Specifies a portal name or the team site name to where the selected portal or
team site is to be redirected in a SharePoint farm. A user should specify the
redirected portal or team site as http://portalname | http://teamsitename,
and should already exist in a farm.
-cm
Enables the restore operation to play through log files and roll back any
incompleted transactions. Use this option if your selection contains the last
backup to be restored. If this option is not selected, the database is left in an
intermediate state and is not yet usable.
-copy copy_number
Specifies the copy number to restore from. The user is able to restore from
a different copy than the primary copy. For example, -copy 3 restores copy
3 of a file or list of files.
Alternatively, you may specify the copy from which to restore at a global
level (for all restore operations). Put the copy number into the file
ALT_RESTORE_COPY_NUMBER.
Refer to "Restoring from a specific backup copy" of the NetBackup Backup,
Archive, and Restore online Help for a complete description.
-disk_media_server media_server
Identifies the disk media server to be used for the restore operation. The
default server is the one currently being used.
-drs
321
322
NetBackup Commands
bprestore
Allows either Backup Exec files to be restored, or both Backup Exec and
NetBackup files to be restored. The default ( -F is not specified), is to restore
only NetBackup files.
To restore only Backup Exec files specify:
-F 524288
Causes bprestore to keep existing files rather than overwrite them when it
restores files with the same name. The default is to overwrite existing files.
Note: The -l | -H | -y options apply only when you restore UNIX files to a
UNIX system.
-granular_restore
-l | -H | -y
Specify this option to restore raw partitions (UNIX and Linux systems) or
disk images (Windows systems) instead of file systems.
NetBackup Commands
bprestore
-L progress_log [-en]
Specifies the name of a file with name changes for alternate-path restores.
For example: bprestore -R /C/renamefile /C/origfile
Where /C/rename_file is the file with the name change and /C/origfile is
the file to be renamed.
Use the following form for entries in the rename file:
change backup_filepath to restore_filepath
Use all upper case for the drive letter and end the entry with a return.
When you restore to a Windows client, you can also use the following method
for specifying entries in the rename file. (Do not use this method for other
clients.)
rename bulength backup_filepath reslength
restore_filepath
323
324
NetBackup Commands
bprestore
Where:
bulength is the number of ASCII characters in the backup path.
reslength is the number of ASCII characters in the restore path.
The first backup_filepath that is matched is replaced with the restore_filepath
string.
For example, the following entry renames C:\fred.txt to C:\fred2.txt:
rename 11 /C/fred.txt 12 /C/fred2.txt
Specifies a client name to use for finding backups or archives from which to
restore files. This name must be as it appears in the NetBackup catalog. The
default is the current client name.
Note: The destination client does not default to the source client. See the
description for -D client option.
-D client
Specifies the disk media server to be used for the restore operation. The
default is the current media server.
-S master_server
NetBackup Commands
bprestore
-spscurver
For SharePoint operation, -spscurver restores only the most recent version
of an item.
-spsignorelock
For SharePoint operation, this option specifies the Web server on which the
redirected portal or team site resides in a SharePoint farm. The redirected
Web server should be specified as hostname.
-spsrestoresecurity
Specifies one of the following numbers that corresponds to the policy type.
The default is 0 for all clients except Windows, where the default is 13.
0 = Standard
4 = Oracle
6 = Informix-On-BAR
7 = Sybase
8 = MS-SharePoint
10 = NetWare
13 = MS-Windows-NT
14 = OS/2
15 = MS-SQL-Server
16 = MS-Exchange-Server
19 = NDMP
325
326
NetBackup Commands
bprestore
Note that the following policy types apply only to NetBackup Enterprise
Server:
11 = DataTools-SQL-BackTrack
17 = SAP
18 = DB2
20 = FlashBackup
21 = Split-Mirror
22 = AFS
35 = NBU-Catalog
39 = Enterprise-Vault
-p policy
Specifies the policy for which the backups or archives were performed.
-s date, -e date
Specifies the start and the end date range for the listing. The bprestore
command restores only files from backups or the archives that occurred
within the specified start and end date range.
-s specifies a start date and time for the restore window. bprestore restores
files only from the backups or the archives that occurred at or after the
specified date and time.
Note: To restore multistreamed images, first run bplist -l to get the
modification time of the desired files during the last backup that contained
the files. Specify that date as the -s when you run the bprestore command.
If you specify no start or end date for files that have been backed using
multiple data streams, errors may result.
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.
NetBackup Commands
bprestore
only files in the backups or the archives that occurred at or before the specified
date and time. Use the same format as for the start date and time.
The end backup date and time do not need to be exact, except for a true-image
restore (see the -T option description). bprestore restores the file that has
the specified backup date and time. Or it restores the file that precedes the
end date and time, which is the most recent backup. The default is the current
date and time.
-td temp_dir
This option provides a location where the associated log and any patch files
are to be kept until the database is restored. If storage groups are restored,
a subdirectory in temp_dir is created for each storage group. The log and
patch files for each storage group are kept in the corresponding subdirectory.
On UNIX and Linux systems, the default location is /temp.
On Windows systems, the default location is C:\temp.
-T
Specifies a true-image restore, where only the files and the directories that
existed in the last true-image backup are restored. This option is useful only
if true-image backups were performed. If this option is not specified, all files
and directories that meet the specified criteria are restored, even if they were
deleted.
When the -T option is specified, the image that is requested must be uniquely
identified. Unique identification is accomplished by using the -e option with
seconds granularity. The -s option (if any) is ignored. The seconds granularity
of an image can be retrieved by using the bplist command with the -l and
-Listseconds options.
-vhd_dof 0 | 1
For Hyper-V operation, -vhd_dsize specifies the size of the VHD file to be
recovered.
327
328
NetBackup Commands
bprestore
-vhd_fn VHD_filename
For Hyper-V operation, -vhd_fn specifies the name of the VHD file to be
recovered.
-vhd_type 0 | 1
For Hyper-V operation, -vhd_type specifies the type of the VHD file. Possible
values for this option are the following:
1 - Fixed.
2 - Dynamic.
-w [hh:mm:ss]
Causes NetBackup to wait for a completion status from the server before it
returns you to the system prompt.
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.
You can optionally specify a wait time in hours, minutes, and seconds. The
maximum wait time you can specify is 23:59:59. If the wait time expires before
the restore is complete, the command exits with a timeout status. The restore,
however, still completes on the server.
If you specify 0 or do not specify a time, the wait time is indefinite for the
completion status.
-k "keyword_phrase"
Specifies a keyword phrase for NetBackup to use when it searches for backups
or archives from which to restore files. The phrase must match the one that
was previously associated with backup or archive by the -k option of the
bpbackup or the bparchive command.
Use this option in place of or in combination with the other restore options
to more easily restore your backups and archives. The meta-characters that
follow simplify the match of keywords or parts of keywords in the phrase:
* matches any string of characters.
The "?" character matches any single character.
NetBackup Commands
bprestore
Specifies a file (listfile) that contains a list of files to be restored and can be
used instead of the filenames option. In listfile, list each file path must be on
a separate line.
The required format for the file list depends on whether the files have spaces
or newlines in the names.
To restore the files that do not have spaces or new lines in the names, use
this format:
filepath
Where filepath is the path to the file that you restore. For example:
Note: For Windows systems, use upper case for the drive letter. For example,
C:\NetBackup\Log1.
UNIX and Linux systems:
/home
/etc
/var
Windows systems:
C:\programs
C:\winnt
C:\documents\old_memos
To restore the files that have spaces or new lines in the names, use one of the
following formats:
filepathlen filepath
filepathlen filepath start_date_time end_date_time
filepathlen filepath -s datetime -e datetime
329
330
NetBackup Commands
bprestore
Windows systems:
11 C:\programs
8 C:\winnt
22 C:\documents\old memos
17 !C:\programs\test
-f filenames
Names one or more files to be restored and can be used instead of the -f
option.
Any files that you specify must be listed at the end of the command line,
following all other options. You must also specify absolute file paths. To
NetBackup Commands
bprestore
exclude a file or a directory path that was previously included in the restore,
place an exclamation mark (!) in front of the file or the directory pat.
(Exception: NDMP restores.)
For Windows systems, use upper case for the drive letter. For example,
C:\NetBackup\log1.
EXAMPLES
Example 1 - Restore files from backups of file1 that were performed between
04/01/2006 06:00:00 and 04/10/2006 18:00:00. Enter on one line the following:
UNIX and Linux systems:
# bprestore -s 04/01/2010 06:00:00 -e 04/10/2010 18:00:00
/usr/user1/file1
Windows systems:
# bprestore -s 04/01/10 06:00:00 -e 04/10/10 18:00:00 C:\user1\file1
Example 2 - Restore the files that are listed in a file named restore_list by using
the most recent backups, enter the following:
UNIX and Linux systems: # bprestore -f restore_list
Windows systems: # bprestore -f c:\restore_list
Example 3
UNIX and Linux systems:
Restore directory /home/kwc from the backups that are associated with a keyword
phrase that contains "My Home Directory". Use a progress log named
/home/kwc/bkup.log. Enter the following on one line:
# bprestore -k "*My Home Directory*" -L /home/kwc/bkup.log /home/kwc
Windows systems:
Restore directory C:\kwc from the backups that are associated with a keyword
phrase that contains "My Home Directory". Use a progress log named
d:\kwc\bkup.log. Enter the following on one line:
# bprestore -k "*My Home Directory*" -L d:\kwc\bkup.log C:\kwc
Example 4 - Restore the D drive on the Windows client slater from the backups
that are associated with a keyword phrase that contains "My Home Dir". Use a
progress log named bkup.log. Enter the following all on one line or use the
backslash continuation character:
331
332
NetBackup Commands
bprestore
Example 6 - Assume that you want to restore files from backups of the file user1.
The backups were performed between 04/01/10 06:00:00 and 04/10/10 18:00:00.
You also want to exclude all files with a .pdf extension, except for the file named
final_doc.pdf. To perform this operation, run the following (on one line):
UNIX and Linux systems: # bprestore -s 04/01/10 06:00:00 -e 04/10/10 \
18:00:00 /home/user1 !/home/user1/*.pdf /home/user1/final_doc.pdf
Windows systems: # bprestore -s 04/01/10 06:00:00 -e 04/10/10 18:00:00
C:\user1\ !C:\user1\*.pdf C:\user1\final_doc.pdf
FILES
UNIX and Linux systems:
$HOME/bp.conf
/usr/openv/netbackup/logs/bprestore/log.mmddyy
Windows systems:
install_path\NetBackup\logs\bprestore\*.log
SEE ALSO
See bp on page 50.
See bparchive on page 53.
See bplist on page 200.
NetBackup Commands
bpschedule
bpschedule
bpschedule add, delete, or list disk staging storage unit (DSSU) schedules
SYNOPSIS
bpschedule [-v] [-M master_server,...] -add sched_label [-freq
frequency] [-stage_priority number] [-altreadhost hostname]
[-number_copies number] [-residence storage_unit_label
[,stunit-copy2,...]] [-pool volume_pool_label [,pool-copy2,...]]
[-fail_on_error 0|1[,0|1,...0|1] [-window start_duration]] [-cal
0|1|2] [-ut] [-incl mm/dd/yyyy] [-excl mm/dd/yyyy] [-weekday
day_name_week] [-dayomonth 1-31 | 1]
bpschedule [-v] [-M master_server,...] -delete sched_label...
bpschedule [-v] [-M master_server,...] -deleteall
bpschedule [-v] [-M master_server,...] [-L | -l | -U] [-label
sched_label]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpschedule command does the following:
Lists one or all DSSU schedules (default is list all DSSU schedules).
For the -add and -delete options, bpschedule returns to the system prompt
immediately after it submits the DSSU schedule change request to NetBackup.
To determine whether the change was successful, run bpschedule again to list
the updated schedule information.
The list option displays a single entry for each schedule, even if the -M option is
used. The -l form lists the information for each schedule on several lines. -l does
not identify the attributes by name; these are as follows (where the names are not
described, they are reserved for internal NetBackup use):
333
334
NetBackup Commands
bpschedule
OPTIONS
These options are common to all forms of bpschedule:
-M master_server,...
NetBackup Commands
bpschedule
-v
Selects the verbose mode where bpschedule logs additional information for
debugging purposes. The information goes into the NetBackup administration
debug log. This option is meaningful only when NetBackup enables the debug
log function (that is, when the following directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
The remaining options depend on the form of bpschedule. The first form of
bpschedule adds a schedule to the specified storage unit name. The following
options apply to this form of bpschedule:
-add sched_label [suboptions]
Adds a single schedule to the specified storage unit name. The following
describes the suboptions for the -add option. These are attributes of the
schedule being added.
Refer to the NetBackup Administrators Guide for details on schedules and
their attributes.
-cal 0|1|2
Specifies the day of every month to run the schedule. Enter l (lowercase L) to
run the last day of every month, whether the month contains 28, 29, 30, or
31 days.
For example, to run the schedule the 15th day of every month, enter:
-dayomonth 15
335
336
NetBackup Commands
bpschedule
-fail_on_error 0|1[,0|1,...,0|1]
Specifies whether to fail all other copies if one copy fails. If no parameter is
specified, 0 is default for all copies. Specify a value for each copy.
0 = Do not fail the other copies
1 = Fail other copies
-freq frequency
The name of the volume pool. This choice overrides the policy-level volume
pool. The value "*NULL*" causes NetBackup to use the volume pool that is
specified at the policy level. The default is to use the volume pool that is
specified at the policy level. The volume pool label cannot be None. If you do
not specify a volume pool at either the schedule level or the policy level,
NetBackup uses a default value of NetBackup.
When you specify -number_copies greater than 1, specify a pool for each
copy.
-residence storage_unit_label [,stunit-copy2,...]
The name of the storage unit, which specifies the location of the backup
images. The value "*NULL*" causes NetBackup to use the storage unit that is
specified at the policy level. The default is for NetBackup to use the storage
unit that is specified at the policy level. If you do not specify a storage unit
at either the schedule level or the policy level, NetBackup uses the next storage
unit available.
When you specify -number_copies greater than 1, specify a residence for
each copy.
-stage_priority number
The order in which storage units are to be selected within a storage unit group:
NetBackup Commands
bpschedule
1 = Use the storage units in the order that appears in the storage unit group
dialog box (default).
2 = Use the storage unit least recently used. (The storage units take turns.)
3 = Use the first storage unit in the list that is not full or down. If the storage
unit is only busy, the policy waits to write to it.
-altreadhost hostname
The server to be used to read a backup image that a different media server
originally wrote.
-ut
If any of the date or the time arguments follow -ut, they are accepted as UNIX
time, instead of the standard time format. The -ut option is used primarily
for Java.
-weekday day_name week
Specifies a day of the week, and the week of the month, as a run day in the
schedule.
The day_name is: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday,
or Saturday.
The week is the number of the week in the month.
For example, to instruct the policy to run the second Monday of the month,
enter:
-weekday Monday 2
-window start_duration
Specifies when NetBackup can run the backups for this schedule. Every day
of the week has the same window.
start is the time at which the backup window opens for this schedule. This
number is the number of seconds since midnight. This number is an integer
between 0 and 86399 (86400 seconds in a day).
duration is the length of time that the window remains open. The time unit
is seconds. This number is a non-negative integer.
The second form of bpschedule deletes one or more schedules from the named
policy. The following option applies to this form of bpschedule:
-delete sched_label
Deletes the listed schedules from the named policy. Separate the elements
of the sched_label list with spaces. There can be up to 25 labels in the list.
337
338
NetBackup Commands
bpschedule
The third form of bpschedule deletes all schedule from the named policy. The
following option applies to this form of bpschedule:
-deleteall
The list type is short. This list is the default list type. This option produces a
terse listing that includes all attributes for the schedule. Each schedule
occupies one line of the listing. Most attribute values are expressed
numerically. This option is useful for scripts or the programs that rework
the listing contents into a customized report format.
-L
The list type is long. This listing includes all attributes for the schedule. Some
attribute values are descriptive terms, rather than numbers.
-label sched_label
List the attributes for this schedule in the named policy. The default is to list
information for all schedules for the named policy.
-U
The list type is user. This listing is similar to the long-type list, but it
has fewer entries. Most attribute values are descriptive terms, rather
than numbers.
EXAMPLE
List the information for schedule test in long form.
# bpschedule -L -label test
Schedule:
test
Type:
FULL (0)
Frequency: 7day(s) (604800 seconds)
Retention Level: 1(2 weeks)
u-wind/o/d:
0 0
Incr Type:
DELTA (0)
Incr Depends:
(none defined)
Max Frag Size:
0 MB (1048576 MB)
Maximum MPX:
1
Number copies:
1
Fail on Error:
0
Residence:
(specific storage unit not required)
NetBackup Commands
bpschedule
Volume Pool:
(same as policy volume pool)
Daily Windows:
Day
Open
Close
W-Open
W-Close
Sunday
000:00:00 000:00:00
Monday
000:00:00 000:00:00
Tuesday
000:00:00 000:00:00
Wednesday
000:00:00 000:00:00
Thursday
000:00:00 000:00:00
Friday
000:00:00 000:00:00
Saturday
000:00:00 000:00:00
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/sched/schedule name
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\sched\schedule name
SEE ALSO
See bpschedulerep on page 340.
339
340
NetBackup Commands
bpschedulerep
bpschedulerep
bpschedulerep modify attributes of disk staging storage unit (DSSU) schedule
SYNOPSIS
bpschedulerep sched_label [ -M master_server,...] [-v] [-freq
backup_frequency] [-stage_priority number] [-altreadhost hostname]
[-cal 0|1|2] [-incl mm/dd/yyyy] [-excl mm/dd/yyyy] [-delincl
mm/dd/yyyy] [-delexcl mm/dd/yyyy] [-weekday day_name week] [-dayomonth
1-31 | 1] [-delweekday day_name week] [-deldayomonth 1-31 | 1] [-ci]
[-ce] [-cw] [-cd] [-number_copies number] [-fail_on_error
0|1[,0|1,...,0|1]] [-residence storage_unit_label [,stunit-copy2,...]]
[-pool volume_pool_label [,pool-copy2,...]] [-(0..6) start duration]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpschedulerep changes the attributes of a NetBackup disk staging storage unit
(DSSU) schedule. The schedule that bpschedulerep named should already exist
when this command is run. bpschedulerep changes the schedule on each of the
master servers that are listed, if the -M option is used.
Any authorized user can initiate this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-(0..6) start duration
Specifies the window during which NetBackup can run the backups for this
schedule. This window applies to a specific day of the week. 0 corresponds to
Sunday, 1 to Monday, and so on.
start is the time at which the backup window opens for this schedule. This
number is the number of seconds since midnight. It is an integer between 0
and 86400 (the number of seconds in a day).
duration is the length of time that the window remains open. The time unit
is seconds. It is a non-negative integer.
NetBackup Commands
bpschedulerep
-cal 0|1|2
Specifies the day of every month to run the schedule. Enter l (lowercase L) to
run the last day of every month, whether the month contains 28, 29, 30, or
31 days.
For example, to run the schedule the 15th day of every month, enter:
-dayomonth 15
Specifies a day of the week and the week of the month to be excluded as a run
day from the schedule.
The day_name is: Sunday, Monday, ..., Friday, or Saturday.
The week is the number of the week in the month.
For example, to exclude the second Monday of the month, enter:
-delweekday Monday 2
-excl mm/dd/yyyy
341
342
NetBackup Commands
bpschedulerep
-delexcl mm/dd/yyyy
Specifies whether to fail all other copies if one copy fails. If no parameter is
specified, 0 is default for all copies. Specify a value for each copy.
0 = Do not fail the other copies
1 = Fail other copies
-freq backup_frequency
Specifies how much time can elapse between successful automatic backups
for clients on this schedule. Frequency does not apply to user schedules
because the user can perform a backup or archive any time the backup window
is open. This value is a positive integer that represents the number of seconds
between successful automatic backups for this schedule.
-help
NetBackup Commands
bpschedulerep
-pool volume_pool_label[,pool-copy2,...]
Specifies the volume pool(s) for the schedule. Do not use this option if a disk
storage unit is the residence for the schedule. If "*NULL*" is specified, the
volume pool for the schedule is the volume pool of the policy that contains
this schedule.
Specify a pool for each copy.
To display the configured volume pools, run the following command:
On UNIX and Linux systems: /usr/openv/volmgr/bin/vmpool -listall
On Windows systems: install_path\Volmgr\bin\vmpool -listall
-residence storage_unit_label[,stunit-copy2,...]
Specifies the label(s) of the storage unit to be used for storing the backups
that were created according to this schedule. If "*NULL*" is specified, the
residence for the schedule defaults to the residence of the policy that contains
this schedule. If the residence value is a storage unit label, the residence for
the schedule becomes that storage unit; it overrides the residence for the
policy.
Specify a storage unit for each copy.
Run bpstulist to display the set of defined storage units.
-stage priority number
The order in which storage units are to be selected within a storage unit group:
1 = Use the storage units in the order that appears in the storage unit group
dialog box (default).
2 = Use the storage unit least recently used. (The storage units take turns.)
3 = Use the first storage unit in the list that is not full or down. If the storage
unit is only busy, the policy waits to write to it.
-altreadhost hostname
The server to be used to read a backup image that a different media server
originally wrote.
sched_label
Specifies a day of the week, and the week of the month, as a run day in the
schedule.
The day_name is: Sunday, Monday, ..., Friday, or Saturday.
The week is the number of the week in the month.
343
344
NetBackup Commands
bpschedulerep
For example, to instruct the policy to run the third Monday of the month,
enter:
-weekday Monday 3
-v
Selects the verbose mode. This option causes bpschedulerep to log additional
information for debugging purposes. The information goes into the NetBackup
administration daily debug log. This option is meaningful only when
NetBackup enables the debug log function (that is, when the following
directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLES
Example 1 - Change and schedule named test.
# bpschedulerep test -cal 2
The following is received after the change and a bpschedule -label test listing.
SCHED test 0 1 604800 1 0 0 0 *NULL* 0 2 0 0 0
SCHEDWIN 0 0 0 0 0 0 0 0 0 0 0 0 0 0
SCHEDRES *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL*
SCHEDPOOL *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL*
SCHEDRL 1 1 1 1 1 1 1 1
SCHEDFOE 0 0 0 0 0 0 0 0
Example 2 - For Saturday and Sunday of each week, have the window for schedule
test open at 10 p.m. instead of 11 p.m. Also, have the window duration be two (2)
hours instead of one (1) hour. bpschedulerep resets the windows, and bpschedule
lists the new schedule values.
# bpschedulerep test -0 79200 7200 -6 79200 7200
bpschedule -U -label test
Schedule:
test
Type:
Full Backup
Frequency:
every 7 days
Retention Level: 1 (2 weeks)
Maximum MPX:
1
Residence:
(specific storage unit not required)
Volume Pool:
(same as policy volume pool)
Daily Windows:
NetBackup Commands
bpschedulerep
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
22:00:00
23:00:00
23:00:00
23:00:00
23:00:00
23:00:00
22:00:00
-->
-->
-->
-->
-->
-->
-->
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
24:00:00
24:00:00
24:00:00
24:00:00
24:00:00
24:00:00
24:00:00
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/sched/schedule name
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\sched\schedule name
SEE ALSO
See bpschedule on page 333.
345
346
NetBackup Commands
bpsetconfig
bpsetconfig
bpsetconfig update a NetBackup configuration
SYNOPSIS
bpsetconfig [-h host] [-u user] [file,...] [-r "string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpsetconfig command is used as a stand-alone program, or as a helper
program with the backuptrace and the restoretrace commands, to update a
configuration. This command is available for all NetBackup server platforms.
You must have administrator privileges to run this command.
OPTIONS
-h host
The file(s) where the updates are listed. If not specified, standard input is
read.
-r "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-u user
EXAMPLE
The following shows how to set a NetBackup configuration on a different system.
NetBackup Commands
bpsetconfig
bpsetconfig -h orange.colors.org
SERVER = yellow.colors.org
SERVER = orange.colors.org
<ctl-D>
<ctl-Z>
347
348
NetBackup Commands
bpstsinfo
bpstsinfo
bpstsinfo display information on storage servers, LSUs, images, and plugins
SYNOPSIS
bpstsinfo -serverinfo | -si [-servername | -sn server_name]
[-serverprefix server_prefix] [-remote remote_server,...] [-remote
remote_server [-remote remote_server...] ]
bpstsinfo -lsuinfo | -li [-servername | -sn server_name]
[-serverprefix server_prefix] [-lsuname lsu_name,...]
[-filteronimagemodetype [ STS_SA_IMAGE | STS_SA_OPAQUEF |
STS_SA_CLEARF] [-remote remote_server [-remote remote_server...] ]
bpstsinfo -imageinfo | -ii [-servername | -sn server_name]
[-serverprefix server_prefix] [-lsuname lsu_name,...] [-imagename
image_name] [-imagedate image_date] [[-imagedatestart image_date]
[-imagedateend image date]] [-imagetype STS_FULL_ONLY | STS_INCR_ONLY]
[-remote remote_server [-remote remote_server...] ]
bpstsinfo -diskspaceinfo | -dsi -stype name SnapVault | AdvancedDisk
| SharedDisk
bpstsinfo -plugininfo | -pi [-serverprefix server_prefix] [-stype
server_type]
bpstsinfo -imagegrouplist | -igl [-servername | -sn server_name]
[-serverprefix server_prefix] [-lsuname lsu_name,...] [-imagename
image_name] [[-imagedatestart image_date] [-imagedateend image date]]
[-imagetype STS_FULL_ONLY | STS_INCR_ONLY ] [-remote remote_server
[-remote remote_server...] ]
bpstsinfo -comparedbandstu | -cdas -servername | -sn server_name |
-storage_server storage_server -serverprefix server_prefix | -stype
server_type [-lsuname lsu_name],... -oldservervolume
old_sts_server:old_volume [-oldservervolume old_sts_server:old_volume
...] [-remote remote_server [-remote remote_server...] ]
bpstsinfo -deleteimage | -di -servername | -sn server_name
-serverprefix server_prefix -lsuname lsu_name -imagename image_name
-imagedate image_date [-remote remote_server [-remote
remote_server...] ]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
NetBackup Commands
bpstsinfo
DESCRIPTION
The bpstsinfo command displays the attributes for plugins, storage servers,
logical storage units (LSUs), and the images that reside on disk. The command
also compares images old and current servers and volumes, displays all image
IDs for an image group, and deletes a specified image. A log of the command
activity is sent to the NetBackup admin log file for the current day. All errors for
this command go to stderr.
Only authorized users can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
Only one of the following options can be specified on a single command line.
-serverinfo | -si
Prints the plugin information for internal and external plugins on the system.
When you use -plugininfo with no sub-options, all plugins are printed. Use
with -serverprefix to restrict the printout to only the plugin with the specified
prefix. Use -stype to restrict the printout to only plugins of the specified
storage server type.
-imagegrouplist | -igl
For a given image and image group type, print all associate image IDs
-comparedbandstu | -cdas
349
350
NetBackup Commands
bpstsinfo
-deleteimage | -di
SUB-OPTIONS
-stype SnapVault | AdvancedDisk | SharedDisk
Specifies the disk type that is used with the -diskspaceinfo option to display
the aggregated space. Note that SharedDisk applies to NetBackup 6.5 media
servers only. An example of the output display:
Disktype: AdvancedDisk TotalCapacity: 100000000 TotalUsed:
10000000
Limits the LSUs to be printed on the system to the specified image mode type.
-imagedate image_date
Optional filter argument. By default, all images are used. Specify MM/DD/YYYY
HH:MM:SS to the images to something that is equal to or newer than the
image_date.
-imagedatestart image_date
Optional filter argument. By default, all images are used. Specify MM/DD/YYYY
HH:MM:SS to limit the images to something that is equal to or newer than the
image_date.
-imagename image_name
Optional filter argument. By default, all images are used. Specify image_name
to limit to only the images that match.
-imagetype STS_FULL_ONLY | STS_INCR_ONLY
Optional filter argument. By default, both the full and the incremental images
are used. STS_FULL_ONLY or STS_INCR_ONLY to limit to only images from
a full backup or an incremental backup.
NetBackup Commands
bpstsinfo
-lsuname lsu_name,...
Optional filter argument. By default, all LSUs are used. Specify lsu_name to
limit to one LSU for each -lsuname supplied.
-remote remote_server [-remote remote_server ...]
Specifies the name of a remote server to query for disk information. The
remote server performs the bpstsinfo operation instead of the host on which
the bpstsinfo command is executed. You can specify multiple remote servers,
one for each -remote supplied.
-servername server_name
Specifies the hostname of the STS server. If -servername is not specified, the
hostname of the local host is used.
-serverprefix server_prefix
Limits server prefixes to the one that server_prefix specifies. Optional filter
argument. By default, all server prefixes are used. This option can be used
with -serverinfo, -lsuinfo, and -imageinfo. The following are valid prefixes:
ntap:
STSBasicDisk:
PureDisk:
-stype server_type
EXAMPLES
Example 1 - List the attributes of the NearStore storage server named apricot:
# bpstsinfo -serverinfo -serverprefix "ntap:" -servername apricot
ServerInfo:
Server Name: apricot
Supported Stream Formats:
[
TAR
]
Server Flags: (STS_SRV_IMAGELIST | STS_SRV_CRED | STS_SRV_CONRW)
Media: (STS_LSU_MEDIUM_DISK)
Maximum Connections: 128
Current Connections: 4
Supported Interfaces:
[
351
352
NetBackup Commands
bpstsinfo
10.80.104.74
]
Supported Credentials:
[
STS_CRED_MD5
]
Example 2 - List the attributes of the lsu /vol/dsu1 on NearStore storage server
apricot:
# bpstsinfo -lsuinfo -serverprefix "ntap:" -servername apricot
LsuInfo:
Server Name: mmnetapp2
LSU Name: /vol/dsu1
description:
Attention:
Severity: STS_ESNONE
Message:
Size: 171798691840
Bytes Used: 8895016960
Maximum Transfer: 2048
Block Size: 4096
Resident Images: 47
SaveAs: (STS_SA_CLEARF | STS_SA_IMAGE)
Media: (STS_LSU_MEDIUM_DISK)
-lsuname /vol/d
Example 3 - List the attributes of the images on the lsu /vol/dsu1 on the
NearStore storage server apricot:
# bpstsinfo -imageinfo -serverprefix "ntap:" -servername apricot
ImageInfo:
Image Name: monel_1119652734_C1_F1
Date: 1119652734
Full Date:
Policy: db_backup
SaveAs: (STS_SA_CLEARF | STS_SA_IMAGE)
Stream Format: TAR
Type: STS_IMG_FULL
Server Name: apricot
LSU Name: /vol/dsu1
Size: 17596416
Block Size: 8192
Exports:
-lsuname /vol
NetBackup Commands
bpstsinfo
/vol/dsu1/nbu_monel_C1_F1.CLF_db_backup_0000(STS_EXFS_NFS)
Status: (STS_II_IMAGE_CREATED | STS_II_FILES_CREATED)
353
354
NetBackup Commands
bpstuadd
bpstuadd
bpstuadd create NetBackup storage unit or storage group
SYNOPSIS
bpstuadd -label storage_unit_label -path path_name [-dt disk_type]
| -dp disk_pool [-dt disk_type] | -density density_type [-rt
robot_type -rn robot_number] [-host host_name] [-cj max_jobs] [-odo
on_demand_only_flag] [-flags flags] [-cf clearfiles] [-tt
transfer_throttle] [-hwm high_water_mark] [-lwm low_water_mark] [-okrt
ok_on_root] [-mfs max_fragment_size] [-maxmpx mpx_factor] [-nh
NDMP_attach_host] [-nodevhost] [-verbose] [-hostlist host_name...]
[-M master_server,...] [-reason "string"]
bpstuadd -group storage_unit_group storage_unit_label,... [-sm
selection_method]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpstuadd command creates a NetBackup storage unit or storage unit group.
When you create a single storage unit, make sure that you include a label for the
new storage unit: either the -density the -path, or the -dp option. bpstuadd
cannot create the storage unit if the master server has already created the
maximum number of storage units that its NetBackup configuration allows. The
command does not create a storage unit that specifies the same destination
medium as an existing storage unit.
Note: This command does not enable you to change a disk storage unit (DSU) or
a tape storage unit to a disk staging storage unit (DSSU). In addition, you cannot
change a DSSU to a DSU or a tape storage unit.
NetBackup has several types of storage units. The storage-unit type affects how
NetBackup stores the data. The options on the bpstuadd command line determine
one of the following:
Disk. The storage destination is a disk file system directory, a disk pool, or
both.
NetBackup Commands
bpstuadd
Disk Staging. A disk staging storage unit (DSSU) addresses the automatic (or
scheduled sweeping) of images from the DSSU to the final storage unit.
Media Manager. The storage destination is a tape device managed by the Media
Manager.
NDMP. An NDMP is a storage unit that Media Manager controls. The NetBackup
for NDMP option must be installed. In this command description, references
to Media Manager storage-unit types also apply to the NDMP storage-unit type
except where specifically mentioned. The media for an NDMP storage unit
always attach directly to an NDMP host and cannot be used to store data for
other NetBackup clients. To define an NDMP storage unit, run the bpstuadd
command on the master server .
Refer to the NetBackup for NDMP Administrators Guide for more information
on how to add NDMP storage units.
Errors go to stderr. A log of the command activity goes to the NetBackup admin
log file for the current day.
See the NetBackup Administrators Guide for more information on storage units.
Only authorized users can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-cf clearfiles
355
356
NetBackup Commands
bpstuadd
-cj max_jobs
Specifies the maximum number of concurrent jobs that are permitted for this
storage unit. max_jobs is a non-negative integer. The appropriate value
depends on your servers ability to run multiple backup processes comfortably
and the available space on the storage media. Also, refer to "Maximum Jobs
per Policy" in the NetBackup Administrators Guide.
The max_jobs option set to zero (0) means that this storage unit is never
selected when a job is scheduled. The default is 1.
-density density_type
Specifies the density type of the media. If this option is present, the storage
unit type is Media Manager. This option has no default. Either -density,
-path, or -dp must be on the command line. If you have specified the robot
type on the command line, the value for density should be consistent with
the robot type. The -density, -path, and -dp options can only be used
independently.
Valid values for density_type are:
dlt - DLT Cartridge
dlt2 - DLT Cartridge alternate
8mm - 8mm Cartridge
4mm - 4mm Cartridge
qscsi - 1/4 Inch Cartridge
Specifies the name of the disk pool, which is the data storage area for this
storage unit. The disk pool must already exist.
-dt disk_type
Enables the user to specify a disk type. The following are the valid values for
disk_type:
1 - BasicDisk
NetBackup Commands
bpstuadd
2 - NearStore
3 - SnapVault
6 - DiskPool
-flags flags
Specifies the storage unit to be a staging storage unit, which allows for a quick
restore. Valid values for flags are: NONE and STAGE_DATA. Currently valid
for only disk storage units.
-group storage_unit_group storage_unit_label...
Adds a storage unit group and specifies the group name and the storage unit(s)
that comprise the group. Add multiple storage units to the storage unit group
by separating the names with a space. The maximum length of a storage unit
group label is 128 characters.
-host host_name
Indicates a single specific media server that is associated with the storage
unit. Only this media server can be selected as the system to read or write
from the storage. The default is the host name of the local system.
Note: NetBackup Server does not support remote media servers.
The host you select must be either your NetBackup master server or a remote
media server (if you configure remote media servers). The host name must
be the network name for the server as known by all NetBackup servers and
clients.
If host_name is a valid network name, but was not configured previously in
NetBackup, it is added to NetBackups configuration as a media server. On
UNIX, this server shows up as a SERVER entry in the bp.conf file; on Windows,
Host Properties specifies the server in the Servers list. If host_name is not a
valid network name, you must configure it manually.
-hostlist host_name...
Indicates that a subset of the media servers with access to the storage should
be used. Use this option if multiple media servers share a disk pool. You want
to dedicate one set of media servers to service a set of policies and clients.
Then you want a different set to service other policies and clients (or for a
specific role such as duplication jobs).
-hwm high_water_mark
357
358
NetBackup Commands
bpstuadd
When you run a job and the total capacity is used, the DSU is considered
to be Full. If you choose a storage unit in a Storage Unit Group, the
following occurs: The media and the device selection (MDS) does not assign
a new job to a storage unit whose used capacity exceeds the High Water
Mark. Instead, it looks for another storage unit in the group to assign to
the job.
During a job, if the Staging attribute is set and the total capacity is used,
staging expires images to free space on the DSU. This action accommodates
more backup data.
-label storage_unit_label
Specifies the name of the storage unit. This option is required unless you use
-group. The maximum length of a storage-unit label is 128 characters.
-lwm low_water_mark
This option is a user-configurable threshold that the disk storage units that
do disk staging use. The valid range for the Low Water Mark is 0 to 100
(percent). The default setting is 80 (percent).
When the High Water Mark is reached, do one of the following:
Migrate images to other storage units until the Low Water Mark is reached.
Free disk space by expiring disk images for the oldest staged images until
the Low Water Mark is reached.
If you want to save most of your data, configure the Low Water Mark to be
near the High Water Mark.
-M master_server,...
NetBackup Commands
bpstuadd
Specifies the hostname of the NDMP server. If this option is present, the
storage unit type is set to NDMP. The default is no NDMP server.
-nodevhost
Indicates that no media server is associated with this storage unit. You can
select any media server that can access the storage to move the data (such
as backup, duplicate, restore).
-odo on_demand_only_flag
To make the storage unit available only to the policies or the schedules
that request it, set the flag to 1 (enabled).
To make the storage unit available to any policy or schedule, set the flag
to 0 (disabled).
If the storage unit type is Disk, the default is 1; NetBackup uses the storage
unit only when explicitly requested. Otherwise, the default is 0.
DSSUs are on demand only. They have to be chosen explicitly as a backup
target.
-okrt ok_on_root
If this flag is not set, neither backups nor directory creation occur on the root
file system. If the ok_on_root flag is set, then backups and directory creations
occur normally.
The default value for this flag is 0. Backups and directory creations to a disk
storage unit (BasicDisk) do not occur if the path is on the root file system.
359
360
NetBackup Commands
bpstuadd
-path path_name
Specifies the path to a disk file system that expressed as an absolute pathname,
which is the data storage area for this storage unit. When this option is
present, the storage unit type is Disk. This option has no default. Either -path,
-dp, or -density must be on the command line. The -density, -path, and
-dp options can only be used independently.
In general when this option is used, enable the On-Demand-Only flag (see
-odo). Otherwise, if you have any NetBackup policies that do not require
specific storage units, they can fill the disk file system path_name. This action
can cause serious system problems. For example, if the system swap area
happens to be on the same file system, new processes may fail.
-reason "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-rn robot_number
Specifies the robot number for this storage unit. It must be greater than or
equal to 0. The robot number can be obtained from the Media and Device
Management of the Administration Console. The NetBackup Administrators
Guide discusses the rules that concern the use of this number. This option is
ignored unless the -rt option is present. This option has no default.
-rt robot_type
The robot type for this storage unit. For non-robotic (stand-alone) devices
select NONE or omit this option. The default value is NONE (Not Robotic). The
value for density should be consistent with the robot type.
If this option is set to any value other than NONE, the -rn option is required.
Available robot type codes are:
NONE - Not Robotic
TLD - Tape Library DLT
ACS - Automated Cartridge System
TL8 - Tape Library 8MM
TL4 - Tape Library 4MM
TLH - Tape Library Half-inch
TLM - Tape Library Multimedia
NetBackup Commands
bpstuadd
-sm selection_method
Selects the method in which a storage unit group is chosen. This option is
valid only for storage unit groups. The possible values for selection_method
are:
Prioritized = 1 (default)
Least Recently Selected = 2
Failover = 3
Load Balance = 4
Option 1: Prioritized, selects the first storage unit in the list until the unit is
down, is full, or its max-concurrent-jobs setting is reached. Then the next
storage unit in the list is examined and so on until an available one is found.
Option 2: Least Recently Selected, selects the least-recently selected storage
unit.
Option 3: Failover is the same as Prioritized except MDS queues a job to wait
for the first storage unit if the max-concurrent-jobs is reached. MDS moves
on to the next storage unit in the list only if the first unit is down or full.
Option 4: Load Balance. If the user selects this option and has installed the
capacity management License key, Media Device Selection (MDS) balances
the job load. It balances the job load by considering if a media server meets
the following conditions:
If the user does not have the Capacity Management license key, then Load
Balance reverts to option 2, the least-recently selected storage unit.
-tt transfer_throttle
The Transfer Throttle setting appears for SnapVault storage units only.
The setting indicates the maximum SnapVault data transfer bandwidth. A
setting of zero (default) indicates an unlimited bandwidth and data transfer
would occur at the full network bandwidth. (Range: 0 (default) to 9999999.)
-verbose
Select verbose mode for logging. This option is meaningful only when it runs
with debug log function on (that is, when the following directory is defined):
361
362
NetBackup Commands
bpstuadd
EXAMPLES
Example 1 - Create a new storage unit, named hatunit. Its storage unit type is Disk.
The path for the storage unit is /tmp/hatdisk.
The path for the storage unit is C:\tmp\hatdisk.
# bpstuadd -label hatunit -path /tmp/hatdisk -verbose
# bpstuadd -label hatunit -path C:\tmp\hatdisk -verbose
<2>bpstuadd: INITIATING: NetBackup 6.0 created: 0
<2>bpstuadd: EXIT status = 0.
Example 2 - Create a storage unit by using a UNIX server, which has not been
configured previously in NetBackup:
Note: The following example refers to remote media servers and applies only to
NetBackup Enterprise Server. NetBackup Server supports only a master server,
not remote media servers.
# bpstuadd -label parrot_stu -host parrot -density dlt -rt TLD -rn 2
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, bpstuadd logs the exit status in the
administrative daily log under the log directory:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
NetBackup Commands
bpstuadd
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/admin/*
Windows systems: install_path\NetBackup\logs\admin\*
EMM database
SEE ALSO
See bpstudel on page 364.
See bpstudel on page 364.
See bpsturep on page 374.
363
364
NetBackup Commands
bpstudel
bpstudel
bpstudel delete NetBackup storage unit or storage unit group
SYNOPSIS
bpstudel -label storage_unit_label [-verbose] [-M master_server
[,...]] [-reason "string"]
bpstudel -group storage_unit_group [-M master_server [,...]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpstudel command deletes a NetBackup storage unit or storage unit group.
The command must include either a label name for the storage unit or a group
name for the storage unit group, but not both.
If bpstudel cannot delete the storage unit (for example, the storage unit label is
mistyped), it does not return an error message. You can run bpstulist to verify
that the storage unit was deleted.
Errors are sent to stderr. A log of the commands activity is sent to the NetBackup
admin log file for the current day.
See the NetBackup Administrators Guide for additional information on storage
units.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-label storage_unit_label
The name of the storage unit. This option is required. The maximum length
for a storage-unit label is 128 characters.
-group storage_unit_group
Deletes the specified storage unit group the name. If this option is present,
the named storage unit group is deleted.
NetBackup Commands
bpstudel
-M master_server [,...]
Runs this command on each of the master servers in this list. This list is a
comma-separated list of master servers. The master servers must allow access
by the system that issued the command. If an error occurs for any master
server, the process stops at that point. The default is the master server for
the system where the command is entered.
-reason "string"
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-verbose
Selects the verbose mode for logging. This mode is meaningful only when
you run with the debug log function on (that is, when the following directory
is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLE
Delete the storage unit named tst.dsk and list the existing storage units before
and after the deletion:
# bpstulist
UNIX and Linux systems:
stuunit 0 mango 0 -1 -1 1 0 /tmp/stuunit 1 1 2000 *NULL*
tst.dsk 0 mango 0 -1 -1 3 0 /hsm3/dsk 1 1 2000 *NULL*
Windows systems:
stuunit 0 mango 0 -1 -1 1 0 C:\tmp\stuunit 1 1 2000 *NULL*
tst.dsk 0 mango 0 -1 -1 3 0 C:\hsm3\dsk/ 1 1 2000 *NULL*
# bpstudel -label tst.dsk
# bpstulist
UNIX and Linux systems:
stuunit 0 mango 0 -1 -1 1 0 /tmp/stuunit 1 1 2000 *NULL*
365
366
NetBackup Commands
bpstudel
Windows systems:
stuunit 0 mango 0 -1 -1 1 0 C:\tmp\stuunit 1 1 2000 *NULL*
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/admin/*
Windows systems: install_path\NetBackup\logs\admin\*
SEE ALSO
See bpstuadd on page 354.
See bpstulist on page 367.
See bpsturep on page 374.
NetBackup Commands
bpstulist
bpstulist
bpstulist display NetBackup storage units or storage unit groups
SYNOPSIS
bpstulist -label storage_unit_label [,...] [-L | -l | -U |
-show_available | -lsa ] [ -g | -go ] [-verbose] [-M master_server
[,...]] [-reason "string"]
bpstulist -group storage_unit_group [-verbose] [-M master_server
[,...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpstulist command displays the attributes for a NetBackup storage unit or
storage unit group. If no storage label or storage unit group name is specified,
bpstulist displays the attributes for all NetBackup storage units or storage unit
groups. In addition, this command accepts a comma-separated list of storage unit
labels and displays the information for each of the storage units. The
-show_available and -lsa flags enable you to list all of the configured media
servers for a particular storage unit.
Errors are sent to stderr. A log of the commands activity is sent to the NetBackup
admin log file for the current day.
See your NetBackup Administrators Guide for more information on storage units.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
List-type options:
-L
The list type is long. This option produces a listing with one storage unit
attribute per line, in the format storage-unit attribute: value. Some attribute
values are expressed in both interpreted form and raw form. For instance, a
robot-type entry might be TL4 (7) (7 is NetBackup's internal value for a TL4
robot).
367
368
NetBackup Commands
bpstulist
For a disk storage unit, a long listing has these attributes for each storage
unit:
- Label
- Storage Unit Type (For example, Disk (0))
- Media Subtype (For example, BasicDisk (1))
- Host Connection
- Concurrent Jobs
- On Demand Only
- Path
- Robot Type (not robotic)
- Max Fragment Size
- Max MPX
- Stage data
- Block sharing
- File System Export
- High Water Mark
- Low Water Mark
- Ok On Root
A long listing has these attributes for each DiskPool disk storage unit:
- Label
- Storage Unit Type
- Media Subtype (DiskPool (6))
- Host Connection (one host per line)
- Concurrent Jobs
- On Demand Only
- Max Fragment Size
- Max MPX
- Block sharing
- File System Export
A long listing has these attributes for each Media Manager storage unit:
- Label
NetBackup Commands
bpstulist
The list type is short, which produces a terse listing. This option is useful for
the scripts or the programs that rework the listing contents into a customized
report format. This option is the default list type.
A single line contains the information for a storage unit, with all attribute
values expressed in raw form. The fields on this line are:
- label
- storage unit type
- host
- robot_type
- robot_number
- density
- concurrent_jobs
- initial_mpx
- path- on_demand_only
- max_mpx
- maxfrag_size
- ndmp_attach_host
- throttle (SnapVault only)
- subtype
- disk_flags
- high_water_mark
- low_water_mark
- ok_on_root
- disk_pool
369
370
NetBackup Commands
bpstulist
The list type is user. This option produces a listing with one storage-unit
attribute per line, in the format storage-unit attribute: value. Attribute values
are expressed in interpreted form. For instance, a robot-type value might be
TL4, instead of 7.
For a disk storage unit, a user-type list has these attributes for each storage
unit:
- Label
- Storage Unit Type (the storage-unit type)
- Storage Unit Subtype
- Host Connection
- Concurrent Jobs
- On Demand Only
- Max MPX
- Path
- Max Fragment Size
- Stage data
- High Water Mark
- Ok On Root
For a DiskPool disk storage unit, a user-type list has these attributes for each
storage unit:
- Label
- Storage Unit Type
- Host Connection (one host per line)
- Concurrent Jobs
- On Demand Only
- Max Fragment Size
- Max MPX
- DiskPool
For a Media Manager storage unit, a user-type list has these attributes for
each storage unit:
- Label
NetBackup Commands
bpstulist
-g
-go
This list type causes the storage unit list to include only information on the
storage unit groups.
-label storage_unit_label1 [,storage_unit_label2...]
Specifies the name of the storage unit. This list is a comma-separated list of
storage unit labels. If this option is not present, the listing is for all storage
units. The maximum length for a storage-unit label is 128 characters.
-group storage_unit_group
Specifies a list of defined storage units and storage unit groups. For the list
of storage units, the list type is short, which produces a terse listing. The list
of storage unit groups is in the format group_name: group_members.
-lsa
Lists all storage units in the database including any available media servers
on the media server list.
-M master_server1 [,master_server2...]
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
371
372
NetBackup Commands
bpstulist
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-show_available
Lists all storage units in the database including any available media servers
on the media server list.
-verbose
Select verbose mode for logging. This mode is meaningful when only you run
with the debug log function on (that is, when the following directory is
defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLES
Example 1 - List the storage units that are defined on the master server apricot
by using the -U display option:
# bpstulist -U -M apricot
Label:
Storage Unit Type:
Host Connection:
Concurrent Jobs:
On Demand Only:
Max MPX:
Path:
Max Fragment Size:
redtest
Disk
apricot
1
yes
4
/usr/redtest
512000 MB
Label:
Storage Unit Type:
Host Connection:
Number of Drives:
On Demand Only:
Max MPX/drive:
Density:
Robot Type/Number:
Max Fragment Size:
bluetest
Media Manager
apricot
6
yes
1
4mm - 4mm Cartridge
TL4 / 0
1048576 MB
NetBackup Commands
bpstulist
Short output:
apple 0 felix.min.veritas.com 0 -1 -1 1 0 "/tmp/apple" 1 1 2000
*NULL* 0 1 0 98 80 1 apple felix.min.veritas.com
Long output:
Label:
Media Type:
Host Connection:
Concurrent Jobs:
On Demand Only:
Path:
Robot Type:
Max Fragment Size:
Max MPX:
Stage data:
Block Sharing:
File System Export:
High Water Mark:
Low Water Mark:
OK On Root:
apple
Disk (0)
felix.min.veritas.com
1
yes
"/tmp/apple"
(not robotic)
512000
1
no
no
no
98
80
no
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/admin/*
Windows systems: install_path\NetBackup\logs\admin\*
EMM database
SEE ALSO
See bpstuadd on page 354.
See bpstulist on page 367.
See bpsturep on page 374.
373
374
NetBackup Commands
bpsturep
bpsturep
bpsturep replace selected NetBackup storage unit attributes
SYNOPSIS
bpsturep -label storage_unit_label [-verbose] [-host host_name |
-nodevhost] [-path path_name | -dp disk_pool | -density density [-rt
robot_type -rn robot_number] [-nh NDMP_attach_host] [-cj max_jobs]
[-odo on_demand_only_flag] [-mfs max_fragment_size] [-maxmpx
mpx_factor] [-cf clearfiles] [-flags flags] [-tt transfer_throttle]
[-hwm high_water_mark] [-lwm low_water_mark] [-okrt ok_on_root]
[[-addhost | -delhost] host_name [host_name]] [-hostlist host_name
[host_name]] [-M master_server [,...]
bpsturep -group storage_unit_group [-addstu | -delstu]
storage_unit_label [-M master_server [,...]] [-sm selection_method]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bpsturep command modifies an existing NetBackup storage unit by replacing
selected storage-unit or storage-unit-group attributes in the NetBackup catalog.
The command line must include a label for the storage unit or a group name for
the storage unit group. The label or the group name is the only storage-unit
attribute that bpsturep cannot modify.
Note: This command does not enable you to change a disk storage unit (DSU) or
a tape storage unit to a disk staging storage unit (DSSU). In addition, you cannot
change a DSSU to a DSU or a tape storage unit.
Use the bpsturep command with care. The changes to the storage unit or storage
unit group must be compatible with existing attributes. Make sure that resulting
attribute combinations are valid, especially for the following attributes:
robot_type
robot_number
density_type
max_fragment_size
NetBackup Commands
bpsturep
path_type
NDMP_attach_host
The safest way to modify these attributes is to run bpsturep one time for each
attribute to be replaced.
bpsturep makes the changes by modifying the storage unit with the specified
OPTIONS
-cf clearfiles
-cj max_jobs
The maximum number of concurrent jobs that are permitted for this storage
unit. max_jobs is a non-negative integer. The appropriate value depends on
your server's ability to run multiple backup processes comfortably and the
available space on the storage media. Also, refer to "Maximum jobs per policy"
in the NetBackup Administrators Guide.
Zero (0) means that this storage unit is never selected when a job is scheduled.
The default is 1.
375
376
NetBackup Commands
bpsturep
-density density_type
If this option is present, the storage unit type is Media Manager. This option
does not have a default. If the command line includes a robot type, the value
for density should be consistent with the robot type. The -density, -path,
and -dp options can only be used independently.
Valid density types are:
dlt - DLT cartridge
dlt2 - DLT cartridge alternate
8mm - 8mm cartridge
4mm - 4mm cartridge
qscsi - 1/4-inch cartridge
Specifies the name of the disk pool, which is the data storage area for this
storage unit. This option can be used only when the disk type is 6 (DiskPool).
The disk pool must already exist.
-dt disk_type
Enables the user to specify a disk type. The following are the valid values for
disk_type:
1 - BasicDisk
2 - NearStore
3 - SnapVault
6 - DiskPool
-flags flags
Specifies the storage unit to be a staging storage unit, which allows for a quick
restore. Valid values for flags are: NONE and STAGE_DATA. Currently valid
for only disk storage units.
NetBackup Commands
bpsturep
-group storage_unit_group
The name of a storage unit group. This group is the storage unit whose
members bpsturep adds or deletes. Use -addstu storage_unit to add storage
units to the group. Use -delstu storage_unit to remove storage units from
the group.
-host host_name
This option is a user-configurable threshold. The default setting for the high
water mark is 98%. When the high water mark is reached, NetBackup becomes
proactive, under two different circumstances:
- When it initiates a job and the total capacity is used, the DSU is considered
to be Full. If it selects from multiple storage units in a storage unit group, the
following occurs: The media and the device selection (MDS) do not assign
new jobs to units that are at or over the high water mark. It looks for another
storage unit in the group, to assign to the job.
- During a job, if the Staging attribute is set and the total capacity is used,
staging expires images to free space on the DSU. This action occurs to
accommodate more backup data.
-label storage_unit_label
The name of a storage unit. This unit is the storage unit whose attributes
bpsturep replaces. This option is required. The maximum length of a
storage-unit label is 128 characters.
377
378
NetBackup Commands
bpsturep
-lwm low_water_mark
NetBackup Commands
bpsturep
stops at that point in the list. The default is the master server for the system
where the command is entered.
-nh NDMP_attach_host
Specifies the hostname of the NDMP server. If this option is present, the
storage unit type is set to NDMP. The default is no NDMP server.
-nodevhost
The on-demand-only flag controls whether the storage unit is used only for
the backups that explicitly request (demand) the storage unit:
To make the storage unit available only to the policies or the schedules that
request it, set the flag to 1 (enabled).
To make the storage unit available to any policy or schedule, set the flag to
0 (disabled).
If the storage unit's type is Disk, the default is 1; NetBackup uses the storage
unit only when explicitly requested. Otherwise, the default is 0.
-okrt ok_on_root
If this flag is not set, neither backups nor directory creation occurs on the
root file system. If the ok_on_root flag is set, then backups and directory
creations happen normally.
The default value for this flag is 0. (The pre-NetBackup 6.0 setting is 1.)
Backups and directory creations to a disk storage unit (BasicDisk) do not occur
if the path is on the root file system.
On UNIX and Linux systems, root is "/".
On Windows, root is the Volume where the windows\system directory resides.
-path path_name
The path to a disk file system, expressed as an absolute pathname, the data
storage area for this storage unit. When this option is present, the storage
unit type is Disk. This option does not have a default. The -density, -path,
and -dp options can only be used independently.
In general when this option is used, enable the on-demand-only flag (see
-odo). Otherwise, if you have any NetBackup policies that do not require a
specific storage unit, they can fill the disk file system path_name. This action
can cause serious system problems. For instance, if the system swap area
happens to be on the same file system, new processes may fail.
379
380
NetBackup Commands
bpsturep
If the path name is defined as a disk staging storage unit (DSSU), use this
option to change the path name a different DSSU. It cannot be used to change
a DSSU to a different type of storage unit.
-rn robot_number
The robot number for this storage unit. The robot number must be greater
than or equal to 0. The robot number can be obtained from the Media and
Device Management of the Administration Console. The NetBackup
Administrators Guide discusses the rules that concern the use of this number.
This option is ignored unless the -rt option is present. This option does not
have a default.
-rt robot_type
The robot type for this storage unit. For non-robotic (stand-alone) devices
select NONE or omit this option. The default value is NONE (Not Robotic). The
value for density should be consistent with the robot type
If this option is set to any value other than NONE, the -rn option is required.
Available robot type codes are:
NONE - Not Robotic
TLD - Tape Library DLT
ACS - Automated Cartridge System
TL8 - Tape Library 8MM
TLH - Tape Library Half-inch
TLM - Tape Library Multimedia
-sm selection_method
Selects the method in which a storage unit group is chosen. This option is
valid only for storage unit groups. The following are its possible values:
Prioritized = 1 (DEFAULT)
Least Recently Selected = 2
Failover = 3
Load Balance = 4 (appears if Capacity Management license key is installed)
Option 1: Prioritized is the default condition. It selects the first storage unit
in the list until either the unit is down or full, or its max-concurrent-jobs
setting is reached. Then the next storage unit in the list is examined and so
on until an available one is found.
Option 2: Least Recently Selected selects the least-recently selected storage
unit.
NetBackup Commands
bpsturep
Option 3: Failover is the same as Prioritized except MDS queues a job to wait
for the first storage unit if the max-concurrent-jobs is reached. MDS moves
to the next storage unit in the list only if the first unit is down or full.
Option 4: Load Balance. For this option to appear, make sure that you have
installed the Capacity Management license key. If the user selects this option,
Media Device Selection (MDS) balances the job load by considering if a media
server meets these conditions:
If the license expires, then Load Balance reverts to Option 2 behavior. It selects
the least-recently selected storage unit.
-tt transfer_throttle
The Transfer Throttle setting appears for SnapVault storage units only.
The setting indicates the maximum SnapVault data transfer bandwidth. A
setting of zero (default) indicates an unlimited bandwidth and data transfer
would occur at the full network bandwidth. (Range: 0 (default) to 9999999.)
-verbose
Select verbose mode for logging. This mode is meaningful only when it runs
with the debug log function on (when the following directory is defined):
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
EXAMPLE
UNIX and Linux systems:
Change the path of disk storage unit mkbunit. The path is changed from
/tmp/mkbunit to /tmp/mkbunit2:
# bpstulist
mkbunit 0 beaver 0 -1 -1 1 0 /tmp/mkbunit 1 1 2000 *NULL*
# bpsturep -label mkbunit -path /tmp/mkbunit2
# bpstulist
mkbunit 0 beaver 0 -1 -1 1 0 /tmp/mkbunit2 1 1 2000 *NULL*
381
382
NetBackup Commands
bpsturep
Windows systems:
Change the path of disk storage unit mkbunit. The path is changed from
C:\tmp\mkbunit to C:\tmp\mkbunit2:
# bpstulist
mkbunit 0 beaver 0 -1 -1 1 0 C:\tmp\mkbunit 1 1 2000 *NULL*
# bpsturep -label mkbunit -path C:\tmp\mkbunit2
# bpstulist
mkbunit 0 beaver 0 -1 -1 1 0 C:\tmp\mkbunit2/ 1 1 2000 *NULL*
FILES
UNIX and Linux systems: /usr/openv/netbackup/logs/admin/*
SEE ALSO
See bpstuadd on page 354.
See bpstudel on page 364.
See bpstulist on page 367.
NetBackup Commands
bptestbpcd
bptestbpcd
bptestbpcd test bpcd connections and verify connect options
SYNOPSIS
bptestbpcd [-connect_options 0|1|2 0|1|2 0|1|2|3] [-host host_name]
[-client client_name] [-M server] [-wait_to_close seconds] [-verbose]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The bptestbpcd command tries to establish a connection from a NetBackup server
to the bpcd daemon on another NetBackup system. If successful, it reports
information about the sockets that are established.
The first line of output consists of three digits that represent the effective connect
options.
The first digit is 0 if reserved ports are used and 1 if non-reserved ports are
used.
The second digit is 0 if you use legacy (random port) callback and 1 if you use
vnetd callback.
The third digit is 1 if the connection is initiated on the vnetd port number.
The third digit is 2 if the connection is initiated on the legacy bpcd port number.
The second and third lines display the following items: the NetBackup server IP
address and port number, the connection direction, and the bpcd IP address and
port number for the first two established sockets. If the connection is to a
NetBackup client, a third socket is established. The following items appear in an
additional line: the NetBackup server IP address and port number, the direction
of the connection, and the bpcd IP address and port number.
OPTIONS
-connect_options 0|1|2 0|1|2|3 0|1|2|3
The first setting indicates the type of port to use to connect to bpcd on the
client:
0 = Use a reserved port number.
383
384
NetBackup Commands
bptestbpcd
1 = Use a nonreserved port number. If you select this option, enable Allow
Nonreserved Ports for the client. See the Universal Settings dialog under
Host Properties > Media Servers.
2 = Use the value that the DEFAULT_CONNECT_OPTIONS configuration
entry on the server defines.
The second setting indicates the bpcd call-back method to use to connect to
the client:
0 = Use the traditional call-back method.
1 = Use the vnetd no call-back method.
2 = Use the value that the DEFAULT_CONNECT_OPTIONS configuration
entry on the server defines.
The third setting indicates the connection method to use to connect the client:
0 = Connect to a daemon on the client using vnetd if possible, otherwise,
connect by using the traditional port number of the daemon.
1 = Connect to a daemon on the host using vnetd only.
2 = Connect to a daemon on the server by using the traditional port number
of the daemon only.
3 = Use the value that the DEFAULT_CONNECT_OPTIONS configuration
entry on the server defines.
If -connect_options is not specified, the configured connect options from
the client database, the CONNECT_OPTIONS configuration entry, or the
DEFAULT_CONNECT_OPTIONS configuration entry is used.
-client client_name
The client name of the system to connect to. If neither -host nor -client is
specified, the host name of the local system is used.
-host host_name
The host name of the system to connect to. Typically, host_name is the host
name of a NetBackup server. If neither -host nor -client is specified, the
host name of the local system issued.
-M server
The host name of the NetBackup server that initiates the connection. If
-server is specified, the host name of the local system is used.
-wait_to_close seconds
Number of seconds to wait before you close the sockets after the connection
to bpcd is established. The default is 0.
NetBackup Commands
bptestbpcd
-verbose
Display additional information about the bpcd host or client such as the bpcd
protocol number.
EXAMPLES
Example 1 - A connection from the local system to server fred is tried by using
the legacy connect options:
# bptestbpcd -host fred -connect_options 0 0 2
0 0 2
10.0.0.32:748 -> 10.0.0.59:13782
10.0.0.32:983 <- 10.0.0.59:635
Example 2 - A connection from the server fred is tried to the client wilma by using
the vnetd port number if possible:
# bptestbpcd -M
10.0.0.59:40983
10.0.0.59:40984
10.0.0.59:40985
385
386
NetBackup Commands
bptestnetconn
bptestnetconn
bptestnetconn test and analyze various configurations and connections
SYNOPSIS
bptestnetconn [-v] -h | -b | -l
bptestnetconn [-v] [-i | -frap] [-s | -H hostname]
bptestnetconn [-v] [-c[service_name] [-o time_value] [-t time_value]]
[ -H hostname | -s ]
bptestnetconn -6 [-u]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>NetBackup\bin\
DESCRIPTION
bptestnetconn performs several tasks that help you analyze DNS and connectivity
problems with any specified list of hosts, including the server list in the NetBackup
configuration. To help troubleshoot connectivity problems between the services
that use CORBA communications, bptestnetconn can perform and report on
CORBA connections to named services. It sends VxUL log messages to OID 112
for easy perusal. The vxlogcfg command controls the log verbosity.
OPTIONS
-6 or --afcheck
Reports all times. This option has the same effect as -fr. This condition is
the default.
-b or --confchecker
Verifies that bp.conf (UNIX) or the NetBackup registry entry (Windows) exists.
-c or --connect service_name
NetBackup Commands
bptestnetconn
-f or --flkup
Reports all forward DNS lookup times for the specified host or hosts.
-h or --help
Specifies a single host name of the system, the IPv4 address, or the name of
a file containing a list of such names, one per line.
-i or --ipservers
Specifies the timeout in seconds for NetBackup level retries in case of CORBA
errors.
-p or --prefnet
Reports all reverse DNS lookup times for the specified host or hosts.
-s or --servers
Specifies the TCP timeout, the socket level timeout for establishing the TCP/IP
connection. Specify -t larger than -o to distinguish between TCP/IP and
CORBA errors. Otherwise, all failures time out after retries_timeout seconds
(-o time_value).
-u or --update
Updates the bp.conf (UNIX) or the Host Properties (Windows) based on the
action of the --afcheck operation. This option is used only as part of
installation.
-v or --verbose
Reports in verbose mode. The reverse lookup report shows which servers are
media servers, EMMSERVER (if not local), and if any server is also the
PREFERRED_NETWORK or CLUSTERNAME.
387
388
NetBackup Commands
bptestnetconn
EXAMPLES
Example 1 - List all the servers in the NetBackup configuration.
# bptestnetconn -l
knothead.min.veritas.com
www.google.com
r2d2.starwars.galaxy.com
whoknows.what.com
zebra
lawndartsvm2
lawndartsvm1
=
=
=
=
=
=
=
=
=
2024
4048
30
10
vnetd
[configured]
knothead
[configured]
PROHIBITED
[0]
[0]
[300]
[30]
[Automatic]
[NULL]
[ALLOWED]
Example 3 - Report all forward DNS lookup times for all NetBackup servers in the
configuration.
# bptestnetconn -f -s
---------------------------------------------------------------------FL:
knothead.min.veritas.com -> 10.80.73.101
:
0
FL:
www.google.com -> 74.125.19.106
:
0
FL:
r2d2.starwars.galaxy.com -> 0.0.0.0
:
4
FL:
whoknows.what.com -> 209.139.193.224 :
0
FL:
zebra -> 10.80.120.103
:
0
FL:
lawndartsvm2 -> 10.80.74.153
:
0
FL:
lawndartsvm1 -> 10.80.74.154
:
0
---------------------------------------------------------------------Slow (>5 sec) or/and failed forward lookups:
r2d2.starwars.galaxy.com :
0 sec [FAILED]
---------------------------------------------------------------------Total elapsed time: 0 sec
ms [local]
ms
ms
ms [cluster/ri]
ms
ms
ms
NetBackup Commands
bptestnetconn
Example 4 - Report all reverse DNS lookup times for all NetBackup servers in the
configuration.
# bptestnetconn -r -s
---------------------------------------------------------------RL:
10.80.73.101 -> knothead.min.veritas.com
:
0 ms
RL:
74.125.19.106 -> nuq04s01-in-f106.1e100.net
:
156 ms MISMATCH
RL:
**LKUP FAIL** -> r2d2.starwars.galaxy.com
:
0 ms
RL: 209.139.193.224 -> **LKUP FAIL**
:
739 ms
RL:
10.80.120.103 -> zebra.min.veritas.com
:
0 ms
RL:
10.80.74.153 -> lawndartsvm2.min.veritas.com
:
0 ms
RL:
10.80.74.154 -> lawndartsvm1.min.veritas.com
:
0 ms
---------------------------------------------------------------Slow (>5 sec) or/and failed/mismatched reverse lookups:
www.google.com :
0 sec [MISMATCH] -> nuq04s01-in-f106.1e100.net
r2d2.starwars.galaxy.com :
0 sec [FAILED]
whoknows.what.com :
0 sec [FAILED]
---------------------------------------------------------------Total elapsed time: 1 sec
Example 5 - Report all reverse DNS lookup times for all NetBackup servers in the
configuration.
# bptestnetconn -s -c -t 10 -o 5
-----------------------------------------------------------------------CN:
knothead.min.veritas.com : 49 ms [SUCCESS]
CN:
www.google.com :
4 sec [TRANSIENT]
CN:
r2d2.starwars.galaxy.com :
4 sec [TRANSIENT]
CN:
whoknows.what.com :
4 sec [TRANSIENT]
CN:
zebra :
4 sec [TRANSIENT]
CN:
lawndartsvm2 :
4 sec [NO_PERMISSION]
CN:
lawndartsvm1 : 20 sec [TRANSIENT]
--------------------------------------------------------------------Total elapsed time: 40 sec
389
390
NetBackup Commands
bptpcinfo
bptpcinfo
bptpcinfo discover SAN devices and creates 3pc.conf file
SYNOPSIS
/usr/openv/netbackup/bin/bptpcinfo [-a] [-c] [-h] [-u] [-r] [-v] [-d
disk_device_directory] [-t tape_device_directory] [-p physical_device]
[-o output_file_name] [-o -]
DESCRIPTION
This command operates only on UNIX and Linux systems.
The bptpcinfo command discovers all the disk and the tape devices on Fibre
Channel and SCSI connections. It provides information about each device (one
line per device). By default, this command writes the information to the following
file:
/usr/openv/volmgr/database/3pc.conf
Note: For off-host backup (Third-Party Copy Device or NetBackup media server
backup methods), a 3pc.conf file must exist at /usr/openv/volmgr/database.
At the start of a backup, using the Third-Party Copy Device or NetBackup media
server method, NetBackup automatically runs this command to create the 3pc.conf
file if the file does not already exist. The 3pc.conf file that bptpcinfo creates is
complete and you do not need to rerun this command if any of the following is
true:
You use the Third-Party Copy Device backup method and all required devices
(such as disks, tapes, and third-party copy devices) support identification
descriptors.
If any of the devices does not support identification descriptors, you should run
the bptpcinfo command manually to create the 3pc.conf file, and then edit the
file as explained in the SAN Configuration chapter of the NetBackup Snapshot
Client Administrators Guide.
NetBackup Commands
bptpcinfo
OPTIONS
-a
Discovers all the disk and the tape devices on the Fibre Channel and SCSI
connections. It adds entries in the 3pc.conf file (or alternate output file that
is specified with the -o option). The -a option lists all devices in /dev/rdsk
and /dev/rmt.
-c
Discovers all the disk and the tape devices on the Fibre Channel and SCSI
connections. It also adds entries in the 3pc.conf file (or alternate the output
file that is specified with the -o option) for any new devices that are found.
If the 3pc.conf file does not exist, the -u option fails (use -a instead).
Note: -u does not remove obsolete entries. To remove obsolete entries, use
-r. (The -u and -r options cannot be used together.)
-r
Removes any obsolete entries in the 3pc.conf file (or alternate output file
that is specified with the -o option). An obsolete entry is one that no longer
corresponds to any devices on the Fibre Channel or SCSI connections
Note: The -r option does not add entries to the 3pc.conf file for new or
reconfigured devices. To add entries, use the -u option. (The -u and -r options
cannot be used together.)
391
392
NetBackup Commands
bptpcinfo
-v
Discovers all tape drives in the specified directory (usually /dev/rmt on Solaris
or HP, and /dev on AIX) and creates new entries in the 3pc.conf file. Or, it
creates new entries in the alternate output file specified with the -o option)
by overwriting any current entries.
To avoid overwriting the 3pc.conf file, use the -t option with the -u option.
When -t and -u are combined, the new tape entries are added to the existing
entries.
-p physical_device
If the specified device is discovered, creates an entry for that device in the
3pc.conf file. Or, it creates new entries in the alternate output file specified
with the -o option) by overwriting any current entries.
To avoid overwriting the 3pc.conf file, use the -p option with the -u option.
When -p and -u are combined, the new entry is added to the existing entries.
-o output_file_name
Sends the output to the screen. Note the space before the second hyphen.
NetBackup Commands
bptpcinfo
EXAMPLES
Example 1 - Discover all the source and the destination devices on the SAN and
create the required 3pc.conf file in /usr/openv/volmgr/database.
# bptpcinfo -a
Example 2 - Discover all the source and the destination devices on the SAN, and
send the output to the screen.
# bptpcinfo -a -o -
Sample output:
devid
1
2
3
4
5
6
7
8
Example 3 - Discover the devices in the /dev/rmt directory (/dev on AIX) and
send the output to the screen:
On Solaris or HP:
# bptpcinfo -t /dev/rmt -o -
Sample output:
devid
0
1
2
3
4
5
[p=devpath]
[s=sn] [n=npid]
[l=lun] [w=wwpn] [i=iddesc]
p=/dev/rmt/0cbn s=QUANTUM:DLT8000:CX949P0164 l=1 i=10200E09E6000000868
p=/dev/rmt/1cbn s=QUANTUM:DLT8000:CX949P1208 l=2 i=10200E09E6000001381
p=/dev/rmt/4cbn s=QUANTUM:DLT8000:CX940P2790 l=2 i=1031000005013E000D3
p=/dev/rmt/7cbn s=QUANTUM:DLT7000:TNA48S0267 l=1
p=/dev/rmt/19cbn s=QUANTUM:DLT8000:PKB02P0989 l=1 i=10200E09E6000030C36
p=/dev/rmt/20cbn s=QUANTUM:DLT8000:PKB02P0841 l=2 i=10200E09E6000030DC5
On AIX:
# bptpcinfo -t /dev -o -
Sample output:
393
394
NetBackup Commands
bptpcinfo
devid [p=devpath]
[s=sn] [n=npid]
[l=lun] [w=wwpn] [i=iddesc]
0 p=/dev/rmt0.1 s=STK:L20:LLC02203684
l=1
1 p=/dev/rmt5.1 s=QUANTUM:DLT8000:CXA49P1113
l=1 i=10200E09E6000034A57
2 p=/dev/rmt6.1 s=QUANTUM:DLT8000:PXB13P4180
l=2 i=10200E09E600004B70B
3 p=/dev/rmt7.1 s=STK:9840:331002059900
l=4 i=103500104F0004817E5
4 p=/dev/rmt9.1 s=QUANTUM:DLT8000:PXB33P0850
l=9 i=1036005013000B0526942333350
5 p=/dev/rmt10.1 s=QUANTUM:DLT8000:CX949P1208
l=10 i=1036005013000B0526939343950
Example 4 - Create a 3pc.conf file that describes all devices on the SAN, and send
the output to an alternate file:
# bptpcinfo -a -o /usr/openv/volmgr/database/3pc_alt1.conf
NOTES
Note the following items when you use the bptpcinfo command:
If you do not want to overwrite the existing 3pc.conf file, include the -o option
and specify the wanted location.
If you have a host that runs Veritas SANPoint Control, do the following: Use
the bpSALinfo command to add worldwide name and LUN values for each
device in the 3pc.conf file. If you do not have SANPoint Control, you must
edit the new entries in the 3pc.conf file. To edit, manually add the worldwide
name WWPN) and LUNs of each device.
For assistance, refer to the SAN Configuration chapter of the NetBackup
Snapshot Client Administrators Guide.
FILES
/usr/openv/volmgr/database/3pc.conf
NetBackup Commands
bpup
bpup
bpup start NetBackup services on Windows systems
SYNOPSIS
<install_path>\NetBackup\bin\bpup [-S|v] [-f] [-a] [-c] [-d] [-m]
[-n] [-s]
DESCRIPTION
This command operates only on Windows systems.
The bpup command is used to start NetBackup services including the NetBackup
databases, Media Manager, and clients.
OPTIONS
-S
Enables you to select silent mode. With this option, no listing is generated
and no confirmation is requested.
-v
-f
Forces the startup of the NetBackup services without prompting the user for
a confirmation.
-c
-d
-m
-n
-s
Starts the server and not the client (NetBackup Media Manager).
SEE ALSO
See bpdown on page 121.
395
396
NetBackup Commands
bpverify
bpverify
bpverify verify the backups that NetBackup creates
SYNOPSIS
bpverify [-l] [-p] [-pb] [-v] [-local] [-client name] [-st sched_type]
[-sl sched_label] [-L output_file [-en]] [-policy name] [-s date]
[-e date] [-M master_server] [-Bidfile file_name] [-pt policy_type]
[-hoursago hours] [[-cn copy number] | [-primary]] [-backupid
backup_id] [[-id media_id or path] | [-stype server_type] [-dp
disk_pool_name [-dv disk_volume]]] [-priority number]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
bpverify verifies the contents of one or more backups by reading the backup
volume and by comparing its contents to the NetBackup catalog. This operation
does not compare the data on the volume with the contents of the client disk.
However, it does read each block in the image, which verifies that the volume is
readable. NetBackup verifies only one backup at a time and tries to minimize
media mounts and position time.
If either -Bidfile or -backupid is specified, bpverify uses this option as the sole
criterion for selecting the set of backups it verifies. If the command line does not
contain -Bidfile or -backupid, then bpverify selects the backups that satisfy
all the selection options. For instance, if the command line looks like:
bpverify -pt Standard -hoursago 10
then bpverify verifies the set of backups with policy type Standard that have
been run in the past 10 hours.
If -p or -pb is specified, bpverify previews the set of backups that meet the
selection criteria. In this case, bpverify displays the backup IDs, but does not
perform the verification.
bpverify sends its error messages to stderr. bpverify sends a log of its activity
to the NetBackup admin log file for the current day, which are found the following
directory:
NetBackup Commands
bpverify
OPTIONS
-backupid backup_id
addition, this file is removed during the activation of that command line
interface (CLI). This file is removed because the NetBackup GUIs commonly
use this parameter. The GUIs expect the command-line interface to remove
the temporary file that was used for the -Bidfile option upon completion.
Direct command-line interface users can also use the option, however it
removes the file.
The file contains one backup ID per line. If this option is specified, other
selection criteria are ignored. The default is no file of backup IDs, which
means any backup can be verified.
-client name
Specifies the name of the client that produced the original backup. The default
is any client.
-cn copy_number | -primary
Determines the copy number of the backup ID to verify. Valid values are 1
through the setting that the bpconfig -max_copies setting indicates, up to
10. The default is 1.
-primary indicates that the primary copy should be verified rather than the
copy.
-dp disk_pool_name [-dv disk_volume]
Specifies the name of the disk pool, which is the data storage area for this
storage unit. Optionally, bpverify verifies the images that reside on the
specified disk volume only. This option must be used with the -stype option.
The disk pool must already exist.
397
398
NetBackup Commands
bpverify
-hoursago hours
Specifies the number of hours before the current time to search for backups.
This number is equivalent to the specification of a start time (-s) of the current
time minus hours. Do not use both this option and the -s option.
The hours value is a non-negative integer. The default starting time is 24
hours ago.
-id media_id | path
Search the image catalog for backups to verify that they are on this media ID
or pathname. If a backup has some fragments on this media ID and some
another media ID, the following occurs: NetBackup verifies a spanning image
as long as the backup begins on the media of the media ID that is provided.
For the images that are stored on disk rather than removable media, specify
an absolute pathname instead of media_id. The default is any media ID or
pathname. BasicDisk and NearStore use this option.
-L output_file [-en]
Specifies the name of a file in which to write progress information. The default
is not to use a progress file, in which case the progress information is written
to stderr. For more information, see DISPLAY FORMATS later in this
command description.
Include the -en option to generate a log entry in English. The name of the
log contains the string _en. This option is useful to the support personnel
that assist in a distributed environment where different locales may create
logs of various languages.
-l
Specifies that the list type is long, which causes bpverify to write additional
information to the progress log. The default list type is short. For additional
information, see DISPLAY FORMATS later in this command description.
-local
If you initiate bpverify from a host other than the master server and do not
use -local (default), the following occurs: bpverify starts a remote copy of
the command on the master server.
The remote copy allows the command to be terminated from the Activity
Monitor.
Use -local to prevent the creation of a remote copy on the master server
and to run bpverify only from the host where it initiated.
If the -local option is used, bpverify cannot be canceled from the Activity
Monitor.
NetBackup Commands
bpverify
-M master_server
Specifies the master server that provides the bpverify image data. The master
server must allow access by the system that issued the bpverify command.
The default is the master server for the system where bpverify is entered:
For NetBackup Server:
The default is always the master server where the command is entered.
For NetBackup Enterprise Server:
If the command is entered on a master server, then that server is the default.
If the command is entered on a remote media server, then the master for that
media server is the default.
-p
Previews the verification, but does not perform the verification. For additional
information, see DISPLAY FORMATS later in this command description.
-pb
Previews the verification but does not perform the verification. This option
is similar to -p, but -pb does not display information about the individual
backups. For additional information, see DISPLAY FORMATS later in this
command description.
-policy name
Search for backups to verify in the specified policy. The default is any policy.
-priority number
Specifies a new priority for the verification job that overrides the default job
priority.
-pt policy_type
Specifies the policy type for selecting backups to verify. The default is any
policy type.
The valid policy types are the following:
AFS
DataStore
DataTools-SQL-BackTrack
DB2
Enterprise-Vault
FlashBackup
Informix-On-BAR
Lotus-Notes
MS-Exchange-Server
MS-SharePoint
399
400
NetBackup Commands
bpverify
MS-SQL-Server
MS-Windows-NT
NBU-Catalog
NDMP
NetWare
Oracle
OS/2
SAP
Split-Mirror
Standard
Sybase
Teradata
-s date, -e date
Specifies the start of the range of dates and times that include all backups to
verify. The -e option specifies the end of the range.
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.
The valid range of dates is from 01/01/1970 00:00:00 to 01/19/2038 03:14:07.
The default start time is 24 hours ago. The default ending time is the current
date and time.
-sl sched_label
Search for backups to verify that the specified schedule created. The default
is all schedules.
-st sched_type
Search for backups to verify that the specified schedule type created. The
default is any schedule type.
Valid values are:
FULL (full backup)
INCR (differential-incremental backup)
CINC (cumulative-incremental backup)
NetBackup Commands
bpverify
A string that identifies the storage server type. Possible values are
AdvancedDisk, OpenStorage vendorname, PureDisk, and SharedDisk.
(SharedDisk applies to NetBackup 6.5 media servers only.)
-v
Selects the verbose mode. When -v is specified, the debug logs and progress
logs include more information. The default is not verbose.
DISPLAY FORMATS
Preview displays:
bpverify runs a preview by searching for backups and then by displaying them
in one of the following ways (bpverify does not verify the backups):
The -p display lists backup IDs that meet the criteria that the bpverify
command-line options set. The -p information appears in volume order. For
each volume that contains a selected backup, the media ID and server appear.
The selected backup IDs that reside on that volume follow them.
The -pb display is a brief version of the -p display. It lists the media ID and
server for each volume that contains the backups that meet the selection
criteria.
Verification displays:
bpverify creates these displays as it verifies images. If bpverify contains no
option to set the list format, the display format is short. If the command line
contains -l, the display format is long. If the command line contains both -l and
-L, bpverify creates a file that contains the progress log.
The verification list appears in volume order in the following formats:
In long format, bpverify displays the following information for each selected
backup ID:
401
402
NetBackup Commands
bpverify
In short format, bpverify does not list the files that were backed up.
EXAMPLES
Example 1 - Verify the backups that ran in the past 36 hours:
# bpverify -hoursago 36
Verify started Thu Feb 3 11:30:29 2003
INF - Verifying policy mkb_policy, schedule Full
(plim_0949536546), path /tmp/mkbunit, created 02/02/09 18:09:06.
INF - Verify of policy mkb_policy, schedule Full
(plim_0949536546) was successful.
INF - Status = successfully verified 1 of 1 images.
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
Filenum
=
=
=
=
=
=
=
=
=
=
=
=
=
=
1
2
3
4
5
6
7
8
9
9
10
11
11
12
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
Fragment
=
=
=
=
=
=
=
=
=
=
=
=
=
=
1
1
1
1
1
1
1
1
1
1
2
1
1
2
NetBackup Commands
bpverify
RETURN VALUES
An exit status of 0 means that the command ran successfully. Any exit status
other than 0 means that an error occurred.
If the administrative log function is enabled, bpverify logs the exit status in the
administrative daily log under the log directory:
UNIX and Linux systems: /usr/openv/netbackup/logs/admin
Windows systems: install_path\NetBackup\logs\admin
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/error/*
/usr/openv/netbackup/db/images/*
Windows systems:
install_path\NetBackup\logs\admin\*
install_path\NetBackup\db\error\*
install_path\NetBackup\db\images\*
403
404
NetBackup Commands
cat_convert
cat_convert
cat_convert run NetBackup catalog format conversion utility
SYNOPSIS
cat_convert -a2b [-o] [-s] [-v] source_file or directory [target_file
or directory]
cat_convert -dump [-short] [-noheader] [-nopath] [-nodata] [-srec
num] [-erec num] [-sep char] source_file
cat_convert -check source_file
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
cat_convert converts NetBackup catalog .f files between version 3.4, 4.0v, or
4.5 ASCII format and 4.5 or later binary format. It automatically detects the source
catalog file format and converts it to the other format. NetBackup 6.5 does not
support writing new ASCII catalog images. However, it still supports the ability
to read existing ASCII catalog images.
The -dump option enables users to view the contents of the binary catalog image
.f (dot-f) files. It echoes the contents of the .f file to stdout in a readable format.
It also has helper options to use to limit the output to only certain records in the
file or a subset of the output columns.
The -check option provides a consistency check on specified binary .f files.
If cat_convert detects inconsistencies, the utility generates up to four of the
following reports that depend on the types of inconsistencies reported:
Problem
No Data
No Name
No Data
No Data
No Name
No Name
Additional Information
Path element name: SUNWmlib
Filenum: 7
Path element name: vmd.uds
Path element name: bpcompatd.uds
Filenum: 8356
Filenum: 8374
NetBackup Commands
cat_convert
405
Additional information - the path element name that is associated with the
inode, the filenum field that the catalog received for the inode, or an error
message.
Index - the relative position of the directory that is reported to the catalog.
Inode Index - an index into the temporary file in which inode information
is stored while the backup is in process.
1st Child - the index to the first child (file or directory) under the listed
directory. This value is -1 if there is no child. The character F follows the
index if the first child is a file, or the character D follows the index if it is
a directory.
1st Dir - the index to the first directory under the listed directory. This
value is -1 if there is no subdirectory.
Last Child - the index to the last child (file or directory) under the listed
directory. This value is -1 if there is no child. The character F follows the
index if the last child is a file, or the character D follows the index if it is a
directory.
Next Index - the index to the next sibling (file or directory) of the listed file.
This value is -1 if there is no sibling. The character F follows the index if
406
NetBackup Commands
cat_convert
the first next sibling is a file, or the character D follows the index if it is a
directory.
Next Dir - the index to the next sibling directory of the listed directory.
This value is -1 if no sibling directory exists.
Inode Index
12180
16642
Next Index
2368F
39776D
Name
Report.doc
UNKNOWN
Inode Index - an index into the temporary file in which inode information
is stored while the backup is in process.
Next Index - the index to the next sibling (either a file or directory) of the
listed file. This value is -1 if there is no sibling. The character F follows the
index if the next sibling is a file, or the character D follows the index if it
is a directory.
Name
/Documents/Directory 1
/Documents/Directory 2
Inode - the inode number of the file or directory that is reported to the
catalog.
NetBackup Commands
cat_convert
Since this report traverses the directory tree, it may not list all of the files or
directories that are reported in the first two reports. Since it provides the fully
qualified name of the file or directory, it can be useful in problem resolution. It
also provides the total number of files and directories.
These reports are not localized.
You must have administrator privileges to run this command.
OPTIONS
-a2b
Convert NetBackup 3.4, 4.0V, 4.5 ASCII format catalog .f file(s) to NetBackup
4.5 binary format .f file(s).
-check source_file
Checks the consistency of a binary .f file. source_file must be the fully qualified
path. Inconsistencies may be due to faulty FlashBackup or NDMP type
backups. If this utility detects no inconsistencies, it ends silently and returns
a zero return code. If the utility detects any inconsistencies, it returns the
number of inconsistencies and prints up to three reports depending on the
types of inconsistencies reported.
-dump
Overwrite original catalog file content with the new format that converts. -o
cannot be used with target_file_directory.
-s
Modifies the output from the cat_convert -dump. Stops the display of records
at this record number.
Note: The record number is not necessarily the same as the file number in
the first column of the output.
-nodata
Eliminates the data column from the output of the cat_convert -dump. The
data column can result in unnecessarily large outputs.
407
408
NetBackup Commands
cat_convert
-noheader
Modifies the output from cat_convert -dump. An option that modifies the
output from the cat_convert -dump. Eliminates the column headers.
-nopath
Modifies the output from cat_convert -dump. Eliminates the path column.
The path column can result in unnecessarily large outputs.
-sep char
An option that modifies the output from cat_convert -dump. An option that
modifies the output from the cat_convert -dump. Use char to separate the
columns instead of the white space default separation. For example, you can
use this command to generate a comma-separated output.
-short
An option that modifies the output from cat_convert -dump. Limits the output
to a subset of the usual columns.
-srec num
An option that modifies the output from cat_convert -dump. An option that
modifies the output from the cat_convert -dump. Starts to display the records
at this record number.
Note: The record number is not necessarily the same as the file number in
the first column of the output.
-v
If you do not specify the target file or directory when you convert source files,
the files the conversion process creates have an appended suffix. (_bin.f or
_ascii.f).
If the catalog .f file size is more than 4 megabytes, the binary catalog leaves
output files separate. It puts them in the catstore directory.
NetBackup Commands
cat_convert
EXAMPLES
Example 1
# cat_convert -a2b abc.f
409
410
NetBackup Commands
create_nbdb
create_nbdb
create_nbdb create NBDB database manually
SYNOPSIS
create_nbdb [-drop current_data_directory] [-sz small | medium |
large] [-dba new_password] [-data data_directory] [-index
index_directory] [-tlog log_directory] [-mlog log_mirror_directory]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
This command is used to create the NetBackup database (NBDB) manually. This
command can be used to drop the existing NBDB database, and to recreate it by
using the non-default parameters that were used during installation. A user can
perform the following actions:
Change the default location of the data, index, and transaction log files
OPTIONS
Without any options, the create_nbdb command verifies the version of an existing
database and is used during upgrades. If a database does not exist, it creates it by
using default parameters.
-drop
Changes the size of the pre-allocated database files. During installation, the
default size that is used is small.
-data data_directory
Used to identify the directory of the main database files. If the pathname
data_directory includes an embedded space, put the entire pathname in quotes.
For example:
NetBackup Commands
create_nbdb
Sets the password for the NBDB and the BMRDB databases for all DBA and
application accounts. nbusql is the default password that is used during
installation. To change only the password for an existing database, use
nbdb_admin -dba new_password.
-index index_directory
411
412
NetBackup Commands
duplicatetrace
duplicatetrace
duplicatetrace trace debug logs for duplicate job(s)
SYNOPSIS
duplicatetrace [-master_server name] -job_id number [-start_time
hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy ...]
duplicatetrace [-master_server name] -backup_id id [-start_time
hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy ...]
duplicatetrace [-master_server name] [-policy_name name] [-client_name
name] [-start_time hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy ...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
duplicatetrace consolidates the debug logs for duplicate jobs and writes them
to standard output. The messages sort by time. It tries to compensate for time
zone changes and clock drift between remote servers and clients.
At a minimum, you must enable debug logging for bptm and bpdm on the media
server and for the following directory on the master server:
UNIX and Linux systems: /usr/openv/netbackup/admin
Windows systems: install_path\NetBackup\admin
For best results, set the verbose logging level to 5. Enable debug logging for bpdbm
on the master server and bpcd on all servers, clients, and the processes that are
already identified.
duplicatetrace uses the -job_id or -backup_id option as the sole criteria for
selecting the duplicate jobs it traces. The -policy_name option or the -client_name
option cannot be used with -job_id or -backup_id. If neither option is specified,
then all duplicate jobs that match the selection criteria are selected. If none of
the following options are specified, all the duplicate jobs that are activated on the
days that day stamps (mmddyy) specify are traced: -job_id, -backup_id,
-policy_name, or -client_name. If -start_time and -end_time options are used,
then the debug logs that reside in the specified time interval are examined.
NetBackup Commands
duplicatetrace
If duplicatetrace starts with -backup_id bid, it looks for the duplicate jobs that
bpduplicate started with -backup_id bid where the backup IDs (bid) match.
duplicatetrace -policy_name policy looks for the duplicate jobs that it started
with the -policy policy option, where the policy names match.
duplicatetrace -client_name client looks for the duplicate jobs that it started
with the -client option where the client names (client) match.
duplicatetrace writes error messages to standard error.
OPTIONS
-master_server
Job ID number of the duplicate job to analyze. Default is any job ID.
-backup_id
Backup ID number of the backup image that the duplicate job uses to analyze
duplicates. Default is any backup ID.
-policy_name
Specifies the earliest timestamp to start analyzing the logs. Default is 00:00:00.
-end_time
Specifies the latest timestamp to finish analyzing the logs. Default is 23:59:59.
mmddyy
One or more "day stamps". This option identifies the log file names
(log.mmddyy for UNIX, mmddyy.log for Windows) that is analyzed.
OUTPUT FORMAT
The format of an output line is: daystamp.millisecs.program.sequence machine
log_line
daystamp
413
414
NetBackup Commands
duplicatetrace
millisecs
EXAMPLES
Example 1 - Analyze the log of duplicate job with job ID 3 activated on May 1,
2010.
# duplicatetrace -job_id 3 050110
Example 2 - Analyze the log of duplicate jobs that duplicate backup image with
backup ID pride_1028666945 executed on May 20, 2010. It analyzes only those
jobs that were activated with option -backupid pride_1028666945.
# duplicatetrace -backup_id pride_1028666945 052010
Example 3 - Analyzes the log of duplicate jobs that are activated on policy
Pride-Standard and client pride on May 1, 2010 and May 3, 2010. It analyzes only
the duplicate jobs that were activated with options -policy Pride-Standard and
-client pride.
# duplicatetrace -policy_name Pride-Standard -client_name pride
050110 050310
Example 4 - Analyzes the log of all duplicate jobs that are activated on August 5,
2010 and August 23, 2010.
duplicatetrace 080510 082310
NetBackup Commands
importtrace
importtrace
importtrace trace debug logs for import jobs
SYNOPSIS
importtrace [-master_server name] -job_id number [-start_time
hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy]
importtrace [-master_server name] -backup_id id [-start_time hh:mm:ss]
[-end_time hh:mm:ss] mmddyy [mmddyy]
importtrace [-master_server name] [-policy_name name] [-client_name
name] [-start_time hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
importtrace consolidates the debug log messages for the specified import job[s]
and writes them to standard output. The messages sort by time. importtrace
tries to compensate for time zone changes and clock drift between remote servers
and clients.
At a minimum, enable debug logging for bpbrm, bptm, and tar on the media server
and for the following directory on the master server:
UNIX and Linux systems: /usr/openv/netbackup/admin
Windows systems: install_path\NetBackup\admin
For best results, set the verbose logging level to 5. Enable debug logging for bpdbm
on the master server and bpcd on all servers and clients in addition to the processes
already identified.
duplicatetrace uses the -job_id or -backup_id option as the sole criteria for
selecting the duplicate jobs it traces. The -policy_name option or the -client_name
option cannot be used with -job_id or -backup_id. If neither option is specified,
then all duplicate jobs that match the selection criteria are selected. If none of
the following options are specified, all the duplicate jobs that are activated on the
days that day stamps (mmddyy) specify are traced: -job_id, -backup_id,
-policy_name, or -client_name. If -start_time and -end_time options are used,
415
416
NetBackup Commands
importtrace
then importtrace examines the debug logs that are generated in the specified
time interval.
If importtrace starts with -backup_id id, it looks for the import jobs that
bpimport started with -backup_id id where the backup IDs (id) match.
If importtrace starts with -policy_name <policy>, importtrace looks for the
import jobs that started with bpimport with -policy <policy> where the policy
names (<policy>) match.
If importtrace starts with -client_name <client>, importtrace looks for the
import jobs that started with bpimport with -client <client> where the client
names (<client>) match.
importtrace writes error messages to standard error.
OPTIONS
-master_server
Job ID number of the import job to analyze. Default is any job ID.
-backup_id
Backup ID number of the backup image that the import job imports to analyze.
Default is any backup ID.
-policy_name
One or more day stamps. This option identifies the log file names
(log.mmddyy for UNIX, mmddyy.log for Windows) to be analyzed.
NetBackup Commands
importtrace
OUTPUT FORMAT
The format of an output line is:
<daystamp>.<millisecs>.<program>.<sequence> <machine>
<log_line>
daystamp
EXAMPLES
Example 1 - Analyze the log of import job with job ID 4 activated on August 6,
2009.
# importtrace -job_id 4 080609
Example 2 - Analyze the log of import jobs that import backup image with backup
ID pride_1028666945 executed on August 20, 2009. This command would analyze
only those import jobs, which were activated with option -backupid
pride_1028666945.
# importtrace -backup_id pride_1028666945 082009
Example 3 - Analyze the log of import jobs that are activated on policy
Pride-Standard and client pride on August 16, 2009 and August 23, 2009. This
command would analyze only those import jobs, which were activated with options
-policy Pride-Standard and -client pride.
# importtrace -policy_name Pride-Standard -client_name pride
081609 082309
417
418
NetBackup Commands
importtrace
Example 4 - Analyze the log of all import jobs that are activated on August 5, 2007
and August 17, 2007.
# importtrace 080507 081707
NetBackup Commands
jbpSA
jbpSA
jbpSA start BAR client interface on Java-capable UNIX machines
SYNOPSIS
/usr/openv/netbackup/bin/jbpSA [ -d | -display] [-D prop_filename]
[-h | -Help] [-l debug_filename] [-lc] [-ms nnn] [-mx xxx] [-r
version]
DESCRIPTION
This command operates only on UNIX and Linux systems.
The jbpSA command starts the Backup, Archive, and Restore client interface on
Java-capable UNIX machines.
OPTIONS
-d | -display
Indicates the debug properties file name. The default name for this file is
Debug.properties.
-h | -Help
Specifies the host system that appears by default in the jbpSA logon dialog
box. May be an unqualified host name or a fully qualified host name. No
default.
-l debug_filename
Indicates the debug log file name. The default name is unique to this startup
of jbpSA and is written in /user/openv/netbackup/logs/user_ops/nbjlogs.
-lc
Prints the command lines that the application uses to access its log file.
419
420
NetBackup Commands
jbpSA
Note: The application does not always use the command lines to get or update
data. It has some protocols that instruct its application server to perform
tasks using NetBackup and Media Manager APIs. As the application evolves,
fewer command lines are used.
-ms nnn
Allows the memory usage configuration for the Java Virtual Machine (JVM)
where nnn is the megabytes of memory available to the application. Default:
36 MB (megabytes)
Run jnbSA on a machine with 512 megabytes of physical memory with 128
megabytes of memory available to the application.
The -ms command specifies how much memory is allocated for the heap when
the JVM starts. This value may not require changes since the default is
sufficient for quickest initialization of jnbSA on a machine with the
recommended amount of memory.
Example:
# jbpSA -ms 36M
The memory that is allocated can be specified by using the jbpSA command
or by setting the INITIAL_MEMORY option in /usr/openv/java/nbj.conf.
-mx xxx
The -mx option allows memory usage configuration for the Java Virtual
Machine (JVM). The xxx value specifies the maximum heap size (in megabytes)
that the JVM uses for dynamically-allocated objects and arrays. Default: 512
MB.
This option is useful if the amount of data is large (for example, a large number
of jobs in the Activity Monitor).
Example:
# jbpSA -mx 512M
The maximum heap size can be specified by using the jbpSA command or by
setting the MAX_MEMORY option in /usr/openv/java/nbj.conf.
-r version
Specifies which version of the Backup, Archive, and Restore client to run.
Valid values are 6.0, 6.5, and 7.0. If the -r option is not specified, the default
is the latest version of NetBackup.
NetBackup Commands
jnbSA
jnbSA
jnbSA start NetBackup Administration Console on Java-capable UNIX machines
SYNOPSIS
/usr/openv/netbackup/bin/jnbSA [ -d | -display] [-D prop_filename]
[-h | -help] [-H host] [-l debug_filename] [-lc] [-ms nnn] [-mx xxx]
[-r version]
DESCRIPTION
This command operates only on UNIX and Linux systems.
jnbSA starts the NetBackup Administration Console on Java-capable UNIX
machines.
OPTIONS
-d | -display
Indicate the debug properties file name. The default name for this file is
Debug.properties.
-h | -help
Specifies the host system that appears by default in the jnbSA logon dialog.
May be an unqualified host name or a fully qualified host name. No default.
-l debug_filename
Indicates the debug log file name. The default name is unique to this startup
of jnbSA and written in /user/openv/netbackup/logs/user_ops/nbjlogs.
-lc
Prints the command lines that the application uses to its log file.
421
422
NetBackup Commands
jnbSA
Note: The application does not always use the command lines to get or update
data. It has some protocols that instruct its application server to perform
tasks using NetBackup and Media Manager APIs. The application evolves and
fewer command lines are used.
-ms nnn
Allows memory usage configuration for the Java Virtual Machine (JVM) where
nnn is the megabytes of memory available to the application. Default: 36 MB
Run jnbSA on a machine with 512 MB of physical memory with 128 MB of
memory available to the application.
The -ms command specifies how much memory is allocated for the heap when
the JVM starts. This value may not require changes since the default is
sufficient for quickest initialization of jnbSA on a machine with the
recommended amount of memory.
Example:
jnbSA -ms 36M
The memory that is allocated can be specified by using the jnbSA command
or by setting the INITIAL_MEMORY option in /usr/openv/java/nbj.conf.
-mx xxx
Allows memory usage configuration for the Java Virtual Machine (JVM). The
xxx value is the maximum heap size (in megabytes) that the JVM uses for
dynamically-allocated objects and arrays. Default: 512 MB.
This option is useful if the amount of data is large (for example, a large number
of jobs in the Activity Monitor).
Example:
jnbSA -mx 512M
The maximum heap size can be specified by using the jnbSA command or by
setting the MAX_MEMORY option in /usr/openv/java/nbj.conf.
-r version
NetBackup Commands
ltid
ltid
ltid start or stop the Media Manager device daemon
SYNOPSIS
/usr/openv/volmgr/bin/ltid [-v] [-logmounts [minutes]] [-noverify]
/usr/openv/volmgr/bin/stopltid
DESCRIPTION
This command operates only on UNIX and Linux systems.
The ltid command starts the Media Manager device daemon (ltid) and Automatic
Volume Recognition daemon (avrd). These daemons manage Media Manager
devices. With both daemons started, an operator can initiate the operator display,
observe the drive status, and control the assignment of requests to stand alone
drives. ltid can be placed in a system initialization script.
The Media Manager volume daemon, vmd, also starts with the ltid command.
ltid also starts the appropriate robotic daemons, if robotic devices were defined
in Media Manager.
The stopltid command stops ltid, avrd, and the robotic daemons.
You must have administrator privileges to run this command.
OPTIONS
-v
Logs debug information using syslogd. This option is most informative when
robotic devices are in use. This option starts robotic daemons and vmd in
verbose mode.
-logmounts minutes
If this option is specified, ltid logs mount requests using syslogd. The mount
requests are still posted to Media Manager displays. The mount requests are
only logged after a delay of the specified number of minutes.
If -logmounts is specified, the default number of minutes is 3. If -logmounts
0 is specified, ltid logs the mount request through syslogd immediately. If
minutes is not zero and the mount request is satisfied before the number of
minutes are up, the request is not logged through syslogd.
423
424
NetBackup Commands
ltid
-noverify
If this option is specified, ltid does not verify drive names. Normally, ltid
verifies that the no rewind on close drive name has the correct minor number
bits that relate to the following: no rewind, variable, berkeley-style, and so
on. This option is normally not required, but may be helpful if you use
non-standard platform device files. If this option is specified, make sure that
the device files are correct.
ERRORS
Error messages are logged by using syslogd.
SEE ALSO
rc(8)
syslogd
See tpconfig on page 609.
See tpunmount on page 630.
See vmadm on page 661.
NetBackup Commands
nbauditreport
nbauditreport
nbauditreport view the audit report
SYNOPSIS
nbauditreport -sdate "MM/DD/YY [HH:[MM[:SS]]]" [-edate "MM/DD/YY
[HH:[MM[:SS]]]" -ctgy [POLICY | JOB | STU | STORAGESRV | POOL |
AUDITCFG | AUDITSVC | BPCONF] -user username[:domainname] -fmt
[SUMMARY | DETAIL | PARSABLE] [-notruncate] [-pagewidth NNN] [-order
[DTU | DUT | TDU | TUD | UDT | UTD]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbauditreport command lets you create and view a NetBackup audit report.
When auditing is configured in a NetBackup environment, the following
user-initiated actions in NetBackup are recorded and available to view in an audit
report:
Actions that change the NetBackup configuration. Examples are policy creation,
deletion, and modification, and changing the audit settings.
Actions that change NetBackup runtime objects. These actions include initiating
a restore job and starting or stopping the audit service.
This command only creates and displays the audit report. You must use the
nbemmcmd -changesetting -AUDIT ENABLED and nbemmcmd -changesetting
-AUDIT DISABLED commands to enable and disable auditing itself.
More information is available on auditing and audit reports.
See the Auditing NetBackup administration chapter of the NetBackup
Administrator's Guide, Vol. I.
OPTIONS
-ctgy [POLICY | JOB | STU | STORAGESRV | POOL | AUDITCFG | AUDITSVC
| BPCONF]
Specifies the type of information to be displayed in the audit report. The audit
function records and displays information on the use-initiated actions for
425
426
NetBackup Commands
nbauditreport
the pertinent area (job, pool, etc.). The following are the possible values for
this option and the items that are audited for each value:
BPCONF - changes to the bp.conf file. This option applies only to UNIX
and Linux.
The default condition, when none of the options is specified, is to display the
audit report of all categories.
-fmt [SUMMARY | DETAIL | PARSABLE]
SUMMARY is the default condition (no option used). The audit report is
a summary only. It displays the audit report in columnar format using
the description, user, and timestamp headings.
PARSABLE displays the same set of information as the DETAIL report but
in a parsable format. The report uses the pipe character (|) as a separator
of the audit data. Use keywords available with the report (DESCRIPTION,
ACTION, OLDV, NEWV, etc.) to parse the audit record.
Sets the start date/time (-sdate) or the end date/time (-edate) of the audit
report data that you want to view. No time indication is necessary.
If the start date is specified and the end date is not, the displayed audit data
is from the specified start time to the present. If the end date is specified and
the start date is not, the displayed audit data is up to the present.
NetBackup Commands
nbauditreport
-notruncate
Displays the old and new values of a changed attribute on separate lines in
the details section of the report. This option is used with the -fmt DETAIL
option.
-order [DTU | DUT | TDU | TUD | UDT | UTD]
D - description
T - timestamp
U - user
-pagewidth NNN
Specifies the page width for the details section of the audit report. This option
is used with the -fmt DETAIL option.
-user username[:domainname]
Indicates the name of the user for whom you want to display audit
information.
EXAMPLES
Example 1 - The following command displays all audit events that are reported
from April 1, 2010 to the present.
# nbauditreport -sdate 04/01/10
USER
Admin@entry
Admin@entry
Admin@entry
sys@server1
sys@server1
sys@server1
DESCRIPTION
Schedule 'test1' was added to Policy 'test1'
Audit setting(s) of master server 'server1' were modified
Audit setting(s) of master server 'server1' were modified
The nbaudit service on master server 'server1' was started
The nbaudit service on master server 'server1' was stopped
The nbaudit service on master server 'server1' was started
TIMESTAMP
04/06/10
04/06/10
04/06/10
04/06/10
04/06/10
04/06/10
sys@server1
Example 2 - The following command displays a detailed audit report for when Joe
modified a set of policy attributes. Because the policy was changed only one time
since 6/8/10, one audit record is retrieved.
427
428
NetBackup Commands
nbauditreport
The DETAILS entry shows the old value and new value of all the attributes that
Joe changed.
NetBackup Commands
nbcatsync
nbcatsync
nbcatsync run a utility that resyncs the disk media IDs in the image catalog
SYNOPSIS
nbcatsync -backupid catalog_backup_id [-prune_catalog] [-no_sync_slp]
[-dryrun] [-keepgoing]
nbcatsync -sync_dr_file dr_file_path [-copy number] [-dryrun]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>NetBackup\bin\
DESCRIPTION
nbcatsync is a post-processing utility that is used in the catalog restore process.
After bprecover restores the actual catalog files, the nbcatsync utility can do the
following:
Prune images from the catalog which were not found on any currently
configured disk volumes. The -prune_catalog option deletes catalog entries
for the images that do not exist locally.
Constrain the operation to a set of images based on the catalog restore that
was performed.
You can easily create a list of affected backup images for any given catalog restore
option. The catalog backup image .f file lists the images that the catalog restore
recovers. This file lists the images to which you can constrain the operations of
the nbcatsync utility.
The utility uses the current device configuration in EMM to obtain a list of disk
volumes to scan for the following: image fragments that are found in the image
list. After the EMM database, the images on currently configured storage, and the
image catalog have all been reconciled, nbcatsync tries to turn on normal
NetBackup processing.
429
430
NetBackup Commands
nbcatsync
Note: Use the nbcatsync -dryrun option to validate what the nbcatsync utility
can do before it does it. Since nbcatsync actions are not reversible, you would
have to perform bprecover -wizard again to get the previous contents of the
image catalog.
OPTIONS
-backupid catalog_backup_id
Specifies the catalog backup ID that contains a set of backup images. This
option enables nbcatsync to fix disk media ID references in the image headers
that are restored from this catalog backup image ID.
-copy number
Specifies the copy of the catalog to be restored. This option allows catalog
recovery from a non-primary copy.
-dryrun
Prevents the scrubbing of the storage lifecycle policy which removes the EMM
image records and sets the SS_COMPLETED state in the image catalog to
zero. Normally, nbcatsync disassociates images from any storage lifecycle
policy processing that is performed at the primary site. Then nbcatsync can
apply appropriate storage lifecycle policy settings for the DR site on the fixed
images. However, when -no_sync_slp is specified, nbcatsync does not change
these settings of fixed images, so use this option with care.
-prune_catalog
Specifies the DR file at the DR site that corresponds to the catalog backup
image to restore from. Do not put a space between the -sync_dr_file option
and the dr_file_path variable.
NetBackup Commands
nbcatsync
EXAMPLES
Example 1 - Fix the disk media ID references in DR file test.txt, so that bprecover
can find the catalog backup image. At the DR site, run the following command:
# nbcatsync -sync_dr_file test.txt
Example 2 - Perform a dry run of fixing the disk media ID references in the image
headers of image ID rg9pctrain05_1254127131 restored from the catalog backup.
When you are satisfied with the results, you can repeat the command without the
-dryrun option.
# nbcatsync -backupid rg9pctrain05_1254127131 -dryrun
431
432
NetBackup Commands
NBCC
NBCC
NBCC run the NetBackup consistency check (NBCC) utility.
SYNOPSIS
NBCC [-batch] [-debug] [-gather] [-help] [-idar] [-kbfree ####]
[-locale] [-nozip] [-terse] [-upgrade] [-use_reg_cmd [32 | 64]]
[-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/support/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\support\
DESCRIPTION
The NBCC command executes the NBCC utility that is used to confirm the integrity
of portions of the NetBackup catalog that is related to tape media. This check
includes the review of configured storage units, EMM servers, tape media, and
images that are associated with tape media.
If NBCC detects catalog inconsistencies, it generates a set of output files. It can
create a support package bundle of these files by using available system utilities.
More information about the NBCC utility is available in the Using NetBackup
Utilities section of the NetBackup Troubleshooting Guide.
OPTIONS
-batch
-debug
NetBackup Commands
NBCC
-gather
Outputs a more expanded version of help information about the NBCC utility.
-idar
Specifies the amount of free file system space that is required to run NBCC.
Only whole numbers are allowed. The default value is located in the help
output.
This value overrides the default free space value of 1024000.
To skip all free filesystem space checking, set this value to zero (0). Do this
if you run in a non-English locale environment.
-locale
Skips the creation of a support package bundle. The generated NBCC files
remain in the output directory.
-terse
Extracts only the fields that are associated with the consistency checks from
each catalog record into the individual catalog content files.
-upgrade
Includes only the consistency checks that relate to the ability to upgrade the
NetBackup catalog.
-use_reg_cmd [32 | 64]
433
434
NetBackup Commands
NBCC
PREREQUISITES
The following items are needed before you can use the NBCC utility:
NBCC is designed for use with the following revisions of NetBackup: 6.0, 6.5,
7.0 and 7.1
The vmd process must be running on the master server, and on all other servers
that act as the EMM server in the NetBackup configuration.
For NBCC to create a support package (if required), the path to the following
programs must be included in the $PATH environment variable: tar and gzip.
If gzip is not available, the compress program is used if available. If these
programs are not available and you need a single file support package file, you
must manually bundle the files in the output directory into a support package.
If you do not use the command line option -kbfree 0, NBCC inspects filesystem
usage characteristics. Then it unloads the configuration and catalog
information and creates a support package. This information includes available
free filesystem space (in Kilobytes). The NBCC default is: Free filesystem space
(Kilobytes) = 1024000
All media servers must be running with NetBackup installed, the ltid process
running, and network services configured.
The UTC time on all servers in the NetBackup configuration and the server
where the NBCC program is run, must be synchronized to within a few minutes
of each other.
Note: Failure to make sure that the clocks are synchronized may cause NBCC
to report inaccurate results.
PROGRAM USAGE
The following are program usage considerations:
NetBackup Commands
NBCC
NBCC runs from the support directory (see synopsis). If you want to run from
a different directory, NBCC uses the following default directory location:
/usr/openv/netbackup/bin/support/config
To ensure that catalog consistency problems are identified and fixed correctly,
ensure that no NetBackup jobs are running or started from the time when the
data is collected until the time when the repair work is completed. Because
this is not possible in most configurations, NBCC tries to identify tape media
that are associated with active NetBackup jobs. Due to the propagation delay
that may occur during normal processing, not all active tape media may be
identified. For this reason, you should carefully review the consistency analysis
results.
NBCC detects EMM master servers. If more than one master server is detected,
NBCC identifies the one that is associated with the system on which NBCC is
being. NBCC uses the identified EMM master server to determine which EMM
media servers and for NetBackup 6.5 or greater, which EMM NDMP attach
hosts are associated to that master server.
RETURN VALUES
The following exit values are returned:
0 = Consistency checks skipped (-gather)
No inconsistency detected
1 = Inconsistency detected
2 = Program error condition detected:
Invalid command line option
.nbcc.lock file exists
File permission problem
File open/read/write problem
Insufficient free disk space
Unable to obtain the version of NetBackup
Issue with NetBackup configuration information/detection
Issue with NetBackup catalog information/detection
3 = -help information displayed
-version information displayed
435
436
NetBackup Commands
NBCC
SEE ALSO
See NBCCR on page 437.
NetBackup Commands
NBCCR
NBCCR
NBCCR run the NetBackup consistency check repair (NBCCR) utility that repairs
SYNOPSIS
NBCCR [-sra SRAFilename] [-emmpw EMMpassword] [-version] [-help]
[-volumedatabasehost volDB_host] [safe_pool_name safepoolname]
[-kbfree freespace] [-use_reg_cmd [32 | 64]]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/support/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\support\
DESCRIPTION
The NBCCR command executes the NBCCR utility that is used to apply the repair
actions that are related to tape. The repair actions are contained in a Suggested
Repair Actions (SRA) file. This utility executes NetBackup commands to perform
these repairs. Symantec Technical Support generates the SRA file based on an
analysis of data that the NBCC command collects. The NBCCR command should be
run only at the direction of Symantec Technical Support. It should be used only
to apply repairs in an SRA file generated by Symantec Technical Support. The
NBCCR command creates a history file containing the results of each repair action
attempted.
The following items can cause inconsistencies: improper use of command-line
commands, attempts to restore corrupted data, or improper decommission of a
media server. A full file system can also cause inconsistencies.
More information about the NBCCR utility is available:
See the Using NetBackup Utilities section of the NetBackup Troubleshooting Guide.
OPTIONS
-emmpw EMMpassword
Specifies the name of the EMM password if different than the default
password.
-help
437
438
NetBackup Commands
NBCCR
-kbfree freespace
Specifies the amount of free file system space that is required to run NBCCR.
Only whole numbers are allowed. The default value is located in the help
output.
This value overrides the default free space value of 1024000 (1024*1024).
To skip all free filesystem space checking, set this value to zero (0). Do this
if you run in a non-English locale environment.
-sra SRAfilename
Specifies the suggested repair action (SRA) file name. The default name is
the following: master_name.NBCCA.SRA_timestamp.txt. The timestamp
format is yyyymmdd_hhmmss.
-safe_pool_name safefilename
Only needed if the volume database host (or EMM host) is not the master
server. If the volume database host is not the master, the volume database
host will need to be specified here. If multiple masters use the same volume
database host, it must be specified here. If there are multiple volume database
hosts on one master, all tapes referenced in the SRA file must be for the same
volume database host, and that volume database host must be specified on
the command line.
-use_reg_cmd [32 | 64]
NetBackup Commands
nbcertupdater
nbcertupdater
nbcertupdater run the certificate update utility
SYNOPSIS
nbcertupdater {-h | -host} host_name [{-b | -broker} broker_name]
[{-p | -port} broker_port] [-v] [-d] [-nolog]
nbcertupdater {-o | -ofile} output_file [{-i | -ifile} input_file]
[{-np | -numparallel} num_parallel_hosts] [{-na | -numattempts}
attempts_per_host] [{-b | -broker} broker_name] [{-p | -port}
broker_port] [-v] [-d] [-nolog]
nbcertupdater {-listonly | -l} {-o | -ofile} output_file [-v] [-d]
[-nolog]
nbcertupdater -help
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The certificate update utility (nbcertupdater) provides an automated mechanism
to contact a set of NetBackup hosts that can run a setuptrust operation with a
specified authentication broker. The utility can also query the NBU_Machines
private domain of the local authenication broker to generate the set of NetBackup
hosts that can then be contacted for the setuptrust operation.
The utility can only be run as a local administrator on the master server. It runs
in three modes:
Process a single host. You specify a single host name on the command line.
The utility contacts the host and runs setuptrust with the specified
authentication broker.
Process multiple hosts. You specify the host names in an input file. If an input
file is unspecified, nbcertupdater automatically generates the list of hosts to
contact from the NBU_Machines private domain of the local authentication
broker. It spawns a child to process each host. The -numparallel option
controls the number of hosts that are processed in parallel.
Create the host list from the authentication broker. The utility creates the list
from the NBU_Machines private domain of the local authentication broker
and writes it to the output file. The hosts are not processed.
439
440
NetBackup Commands
nbcertupdater
OPTIONS
-h | -host host_name
The broker with which trust should be set up. If a broker is not specified, trust
is setup with the NetBackup master server.
-p | -port broker_port
Specifies the port number of the selected broker. If this option is not specified,
the default broker port is used to contact the broker.
-i | -ifile input_file
Specifies the name of the input file that contain the names of NetBackup
hosts to be processed. Each line in the input file maps to a host name (except
for comment lines).
-o | -ofile output_file
Specifies the number of attempts to process the host before the utility declares
failure. The default is 1.
-l | -listonly
Generates the list of NetBackup hosts from the local authenication broker,
but does not process them.
-v
Enables debug mode. The utility prints debug messages on the console.
-nolog
OUTPUT MESSAGES
HOST_NOT_FOUND
NetBackup Commands
nbcertupdater
FAILED (USE_VXSS=<val>)
Failed to update the broker certificate on the host. This generic code cannot
provide a more specific reason for failure. The bpcd connection may have broken
during the processing operation.
USER_INTERRUPT
User requested termination of operation. This error will be returned if the user
presses Ctrl-C to terminate the program.
SUCCESS
Host processed successfully.
EXAMPLES
Example 1 - Update a NetBackup host that does not have the authentication client
libraries installed on it. NBAC is not enabled on the host.
# nbcertupdater -h huffman.abc.com
Logging to directory /openv/netbackup/logs/certupdater>
Processing host huffman.abc.com
Failed to update broker certificate on host with USE_VXSS=PROHIBITED
Example 2 - Update a NBU host that has the authentication client libraries installed
on it.
441
442
NetBackup Commands
nbcertupdater
# nbcertupdater -h huffman.abc.com
Logging to directory /openv/netbackup/logs/certupdater>
Processing host huffman.abc.com
Host processed successfully
Example 4 - Use an input file to specify the hosts to be updated. The first host is
updated successfully. The second host does not have bpcd running on it.
# cat infile.txt
huffman.vxindia.com
atom.vxindia.com
# nbcertupdater -i infile.txt -o outfile.txt
Logging to directory </usr/openv/netbackup/logs/certupdater>
Reading host names from file infile.txt
Attempt 1: Processing 2 hosts
Processing host huffman.abc.com (1/2)
Processing host atom.abc.com (2/2)
Completed host huffman.abc.com (SUCCESS)
Completed host atom.abc.com (BPCD_CONN_FAIL)
Total hosts attempted: 2 (1 succeeded)
Writing result to file <outfile.txt>
# cat outfile.txt
#huffman.abc.com #SUCCESS@(02/17/10 16:58:19)
atom.abc.com #BPCD_CONN_FAIL@(02/17/10 16:58:19)
NetBackup Commands
nbcplogs
nbcplogs
nbcplogs copy all NetBackup logs to a designated destination
SYNOPSIS
nbcplogs destination | -f ###-###-### [-s mm/dd/yyyy-hh:mm:ss |
mm/dd-hh:mm] [-e mm/dd/yyyy-hh:mm:ss | mm/dd-hh:mm] [-d valued |
valueh | valuem] [--tmpdir=pathname] [--list-products]
[--list-subproducts logproducts] [--nbsu | --no-nbsu] [--help-long]
[--write-config]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/support/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\support\
DESCRIPTION
The nbcplogs command copies logs from various locations in the NetBackup
system to a common area where you can more easily troubleshoot a problem. This
utility lets you determine what logs are copied. To reduce the size of the copied
logs, you can use the time frame option to specify a start time and an end time.
If Technical Support supplies you with a Titan ID of the form ###-###-###, you
can use the nbcplogs --ftp ###-###-### command to upload the last 24 hours
of logs (default time period), run the nbsu utility, and upload its support package
to Technical Support.
More information is available on the nbcplogs command:
See the Using Logs chapter of the Troubleshooting Guide.
OPTIONS
destination
Sets the duration of the log data to be collected. The time units of the duration
can be in d[ays], h[ours], or m[in]. For example:
--duration 5hrs /tmp/logs
443
444
NetBackup Commands
nbcplogs
-f | --ftp ###-###-###
Enables the direct uploading of logs to customer support by using file transfer
protocol (ftp). The utility bundles and compresses the logs before it uploads
them. ###-###-###, the destination of the log files, is the Titan ID that
Technical Support supplies.
--help-long
Limits the log types that are collected to only those specified on the command
line. The sub option lets you specify a sub-category of a log type. If no log
types are specified, all log types are copied.
--list-products
Lists all the log subproducts for the specified log product.
--nbsu | --no-nbsu
Sets the start time (-s) or the end time (-e) for the collection of logs.
The -s option specifies a start date and time for the logs. If no corresponding
-e option is used, the utility collects all log data from the start time to the
present.
The -e option specifies an end date and time for the logs. If no corresponding
-s option is used, the utility collects all log data present in the log files up to
the end date.
If no start or end time is specified, the default time period is the last 24 hours.
--tmpdir=pathname
The FTP process requires temporary diskspace to build the compressed bundle
for upload.
NetBackup Commands
nbcplogs
445
--write-config
EXAMPLES
Example 1 - The following command example uploads the last 24 hours of logs to
customer support by default. The 123-123-123 is the Titan ID that Technical
Support supplies.
# nbcplogs --ftp 123-123-123
Example 2 - This example gathers all log data for the last 30 minutes and sends
the data to customer support . The utility found no vault log entries. It prompts
the user to determine if enough disk space is available for the data transfer. The
utility lists each log type as its entries are copied.
Example 4 - Copy the last 24 hours of nbpem logs and bpdbm logs, run the nbsu
utility, and automically sends its support package to Technical Support:
# nbcplogs -l nbpem,bpdbm -f 123-123-123
Example 5 - Copy the last 24 hours of logs and does not run the nbsu utility:
# nbcplogs --no-nbsu -f 123-123-123
446
NetBackup Commands
nbcplogs
Example 6 - Display the complete set of options available to use with the nbcplogs
command:
# nbcplogs --help-long
Example 8 - Display the complete set of log subproducts available for the nbcplogs
command:
# nbcplogs --list-subproducts vxul*
* vxul.111 = /usr/openv/logs/nbemm
* vxul.116 = /usr/openv/logs/nbpem
* vxul.117 = /usr/openv/logs/nbjm
* vxul.118 = /usr/openv/logs/nbrb
* vxul.119 = /usr/openv/logs/bmrd
"vxul" subproducts:
aliases: 111, nbemm, vxul.nbemm
aliases: 116, nbpem, vxul.nbpem
aliases: 117, nbjm, vxul.nbjm
aliases: 118, nbrb, vxul.nbrb
aliases: 119, bmrd, vxul.bmrd...
NetBackup Commands
nbdb_admin
nbdb_admin
nbdb_admin start or stop individual databases and change default password
SYNOPSIS
nbdb_admin -dba new_password [-backup directory]
nbdb_admin -start | stop [database_name]
nbdb_admin [-vxdbms_nb_data directory] [-vxdbms_nb_staging directory]
[-vxdbms_nbdb_backup_owner y|n] [-vxdbms_nb_server servername |
EMMSERVER] [-auto_start NONE | NBDB | BMRDB]
nbdb_admin -adjust_server_settings [database_name]
nbdb_admin -list
nbdb_admin -reorganize [database_name]
nbdb_admin -validate [database_name] [-full]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdb_admin command can be used to start or stop the NetBackup database
or the BMR database.
The nbdb_admin command line utility is required to enable the customer to change
the DBA and application passwords. The DBA and application passwords are
encrypted and stored in the vxdbms.conf file. Secure SSL is used for encryption,
and keys are handled in a consistent manner with the rest of NetBackup. The
passwords are encrypted with AES-128-CFB by using the NetBackup private key.
The permissions on the file enable it to be read or written only by the root user
on UNIX or a Windows administrator.
During installation, the default password of nbusql is used for the NBDB and the
BMRDB databases for all DBA and application accounts. The same password is
used for the NBDB and the BMRDB DBA and application accounts such as
EMM_MAIN.
447
448
NetBackup Commands
nbdb_admin
OPTIONS
-adjust_server_settings directory
Adjusts the settings of the given database directory through the Sybase utility.
If no database is specified, the default is to adjust all databases.
-auto_start NONE | NBDB | BMRDB
Enables you to change the default password, nbusql, for the NBDB and the
BMRDB databases for all DBA and application accounts.
If the backup option is used, the new password is saved in the directory
specified by directory with the file name nbdbinfo.da. Otherwise, it is saved
under the default location with the same file name.
-list
Validates the indexes and keys on all of the tables in the specified database.
If no database name is specified, the option validates all the databases. It
scans each table and checks that each row exists in the appropriate indexes.
The number of rows in the table must match the number of entries in the
index.
NetBackup Commands
nbdb_admin
Changes the staging directory from the default to the specified directory. This
option saves the information in the vxdbms.conf file.
449
450
NetBackup Commands
nbdb_backup
nbdb_backup
nbdb_backup run the program that is used to make a backup of the databases
in a directory
SYNOPSIS
nbdb_backup [-dbn database_name] [-offline | -online]
destination_directory [-tlog_only] [-truncate_tlog]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdb_backup enables the customer to make either an online backup or offline
backup of the SQL Anywhere files to a file system directory. Use this command
to perform maintenance operations and to make a copy of a database.
OPTIONS
-dbn database_name
destination_directory
For an online backup, this option generates only the database transaction
log backup along with the configuration files.
-truncate_tlog
For an online backup, this option truncates the database transaction log after
the backup completes.
NetBackup Commands
nbdb_move
nbdb_move
nbdb_move move location of the NBDB database files after installation
SYNOPSIS
nbdb_move -data data_directory [-index index_directory] [-tlog
log_directory] [-mlog log_directory] [-config_only] [-owner EMM |
DBM | DARS]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
nbdb_move moves the NBDB and the BMRDB database files from the default
OPTIONS
-config_only
Updates the configuration files with the directory locations specified. The
database files are not moved. Use this option in a recovery operation when
the database files were already relocated manually and need their
configuration settings to be saved.
-data data_directory
451
452
NetBackup Commands
nbdb_move
Moves the database data, index, or log files for a specified data space.
-tlog log_directory
NetBackup Commands
nbdb_ping
nbdb_ping
nbdb_ping display status of NetBackup database (NBDB) or BMR database
(BMRDB).
SYNOPSIS
nbdb_ping [-q] [-dbn database_name]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdb_ping command is used to check and display the status of the NetBackup
database (NBDB) or the BMR database (BMRDB). Enter the command with no
options to display the status of NBDB.
OPTIONS
-dbn database_name
Puts the command in quiet mode. It does not make any standard output.
453
454
NetBackup Commands
nbdb_restore
nbdb_restore
nbdb_restore recover the database that is backed up to a directory using
nbdb_backup
SYNOPSIS
nbdb_restore -recover source_directory
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdb_restore command does a restore and recovery from a backup to a
directory using nbdb_backup. The recommended method to protect the SQL
Anywhere NBDB and BMRDB databases is through the Catalog Backup interfaces.
OPTIONS
-recover source_directory
NetBackup Commands
nbdb_unload
nbdb_unload
nbdb_unload unload NetBackup databases (NBDB) or BMR (BMRDB)
SYNOPSIS
nbdb_unload [-dbn database_name] [-t tablelist] [-s] destination
directory
nbdb_unload [-dbn database_name] -rebuild [-verbose]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/db/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdb_unload command unloads the specified database. By default the NBDB
database is unloaded. The other value for -dbn includes, BMRDB for the Bare
Metal Restore database.
Note: The Enterprise Media Manager (EMM) Database is considered a component
of the NBDB database. In the future other components will be added to the NBDB
such as IRM and POLICY.
This command creates .dat files, one for each table in the database or in the table
list. Each .dat file contains comma-separated lines, one for each row in the table.
A reload.sql file is also generated. This file contains the SQL statements that are
required to reload the database. For example:
LOAD TABLE "BmrDba.BMR_Configuration" FROM
UNIX and Linux systems: /temp/data/345.dat
Windows systems: c:\temp\data\345.dat
OPTIONS
-dbn database_name
455
456
NetBackup Commands
nbdb_unload
-rebuild
The directory where a user wants the dump of the data and schema to go.
EXAMPLES
Example 1 - Unload the NBDB database (including all of EMM), data and schema:
UNIX and Linux systems: # nbdb_unload /tmp/nbdb_dump
Windows systems: # nbdb_unload C:\temp\nbdb_dump
Example 3 - Unload only the EMM_STU table (by using fully qualified table names):
UNIX and Linux systems: # nbdb_unload -t EMM_MAIN.EMM_STU /tmp/stu
Windows systems: # nbdb_unload -t EMM_MAIN.EMM_STU C:\temp\stu
NetBackup Commands
nbdbms_start_server
nbdbms_start_server
nbdbms_start_server start and stop database server
SYNOPSIS
/usr/openv/db/bin/nbdbms_start_server
/usr/openv/db/bin/nbdbms_start_server -stop [-f]
/usr/openv/db/bin/nbdbms_start_server -stat
DESCRIPTION
This command operates only on UNIX and Linux systems.
Sybase ASA runs as a daemon on UNIX that starts or stops by using a script. If
you initiate the program without any argument, the server starts.
OPTIONS
-stop
Returns a status that indicates if the server is up or down. A zero (0) indicates
that the server is active (up).
-f
457
458
NetBackup Commands
nbdbms_start_stop
nbdbms_start_stop
nbdbms_start_stop start and stop NetBackup database on the server
SYNOPSIS
/usr/openv/netbackup/bin/nbdbms_start_stop [start | stop]
DESCRIPTION
This command operates only on UNIX and Linux systems.
The nbdbms_start_stop command starts and stops the Sybase ASA daemon.
OPTIONS
stop
NetBackup Commands
nbdc
nbdc
nbdc add, modify, or list NetBackup data classifications
SYNOPSIS
nbdc -add -n name -r rank [-v] [-M master_server] [-d description]
nbdc -L | -l [-v] [-M master_server]
nbdc -modify -dc class [-v] [-M master_server] [-n name] [-d
description] [-r rank]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The nbdc command names data classifications and sets their rank. Data
classifications are the labels that the user can attach to backup images. They allow
NetBackup to treat different kinds of data differently. Only storage lifecycle
policies can use data classifications.
The nbdc command can do one of the following:
Add (-add) a new data classification. The new level requires a name and a rank,
and optionally, a description and a master server name if multiple master
servers are present.
OPTIONS
-d description
Specifies the new description for the designated data classification. This
description is commentary only.
-dc class
459
460
NetBackup Commands
nbdc
-l
Lists the data classifications. The output contains only information. The fields
do not have names. A line appears for each level with the fields that are space
delimited.
-L
Lists the data classifications. The field name identifies the output fields. A
line is output for each level and is formatted to print within the field headings.
-M master_server
Identifies the new name for the specified data classification. Default names
are Platinum, Gold, Silver, and Bronze.
-r rank
Identifies the new rank for the specified data classification ID. The rank is
the method by which NetBackup determines the importance of a data
classification in relation to other data classifications.
-v
EXAMPLES
Example 1 - List all data classifications. Only two levels (ranks) are shown.
# nbdc -L
Rank:
Name:
Description:
Classification ID:
4
Bronze
"lowest rank"
B1F664D41DD111B2ACFB99708C0940D1
Rank:
Name:
Description:
Classification ID:
1
Platinum
"highest rank"
B4C999D41DD111B2FFFB99704C6660D4
NetBackup Commands
nbdc
SEE ALSO
See nbstl on page 548.
See nbstlutil on page 555.
461
462
NetBackup Commands
nbdecommission
nbdecommission
nbdecommission decommission an old server
SYNOPSIS
nbdecommission -list_ref -oldserver hostname [-reason "string"]
nbdecommission -oldserver hostname [-newserver hostname] [-reason
"string"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>NetBackup\bin\
DESCRIPTION
The nbdecommission utility helps the user to view all the references that an old
server has and provides help through the decommissioning process. The -list_ref
-oldserver hostnameoption displays all that is associated with the old server,
which allows users to break the associations on their own. This option does not
decommission the server.
The -oldserver hostname [-newserver hostname] option provides a step-by-step
guidance to decommission the old server. You can run the command on the master
server or any server that is not decommissioned. The decommissioning process
is clean and removes old media server entries in the EMM DB and bp.conf file
which can slow down backup operations. The command does not assume that the
old server is up and responsive.
OPTIONS
-list_ref -oldserver hostname
Displays the items that are associated with the old server. You can use this
option to break the associations on your own.
-oldserver hostname [-newserver hostname]
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
NetBackup Commands
nbdecommission
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
463
464
NetBackup Commands
nbdelete
nbdelete
nbdelete remove deleted fragments from disk volumes
SYNOPSIS
nbdelete -allvolumes [-priority number] [-force] [-importedsnap
-unimportedsnap] [-backup_id <bid> -copy_number <cnum>]
nbdelete -list [-backup_id bid -copy_number cnum]
nbdelete -dt disk_type -media_id name [-bpdm_media_server name]
[-media_server name] [-storage_server name] [-priority number]
[-force]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbdelete command removes all deleted fragments from the disk volumes
that are specified on the command line. The -allvolumes option removes the
fragments from all volumes that contain deleted fragments. The -dt, -media_id,
-media_server, and -storage_server options specify an individual volume where
deleted fragments should be removed.
OPTIONS
-allvolumes
Queries the image list in the EMM database to obtain the list of volumes with
deleted fragments. It removes the fragments from those volumes and deletes
eligible imported snaps, unimported snaps, and tar images in that order.
-allvolumes calls bpdm on master server to delete imported snaps. It also
queries the storage servers with unimported snapshots but does not direct
bpdm to delete them.
-backup_id bid
Limits the deletion or the listing of deletable images to the specified backup
ID.
NetBackup Commands
nbdelete
-bpdm_media_server name
Starts up bpdm on the specified media server. Use if a media server has a much
faster network connection to the disk volume's storage server for the delete
operations.
-bpdm_media_server name
Starts up bpdm on the specified media server. Use if a media server has a much
faster network connection to the disk volume's storage server for the delete
operations.
-copy_number cnum
Specifies the disk type where the deleted fragments should be removed. The
following are the valid values for disk_type:
0 - All
1 - BasicDisk
2 - NearStore
3 - SnapVault
6 - DiskPool
-force
Removes the database entries whether the disk deletion is successful or not.
NetBackup removes image copies at catalog cleanup time and after the disk
fragments have been removed. If a problem occurs when you try to delete
the fragments, the database entries are retained for the deletion to be retried
later. Deletion can fail if the following occurs: disk volume is offline, corrupted,
or inaccessible; a hardware error or network error; or someone has already
manually removed the fragments.
-list
Lists imported and unimported snapshots eligible for deletion. The list may
be limited to the image with the specified backup ID and the specified copy
number.
-listname
Specifies the name that represents the media ID of the volume whose deleted
fragments are to be removed.
-media_server name
Specifies the name that represents the media server for the volume whose
deleted fragments are to be removed.
465
466
NetBackup Commands
nbdelete
-priority number
Specifies a new priority for the job that overrides the default job priority.
-storage_server name
Specifies the name that represents the storage server of the volume whose
deleted fragments are to be removed.
NetBackup Commands
nbdeployutil
nbdeployutil
nbdeployutil deployment utility that gathers and analyzes master server
SYNOPSIS
nbdeployutil --gather [--bpimagelist=options] [--capacity] [--client
hostname1, [hostname2, hostname#] | --clientlist=filename]
[--hoursago=number] [--log=filename] [--master=hostname] [--nolog]
[--output=directory] [--runtimestats] [-start date [-end date]]
[--traditional]
nbdeployutil --report [--capacity] [--day-boundary=time] [dir1 dir2
dir# | --dirsfile=filename | --parentdir=directory] [--log=filename]
[--nolog] [--runtimestats] [--traditional]
nbdeployutil --version
nbdeployutil --format=csv dir1 [dir2 dir3]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbdeployutil command is a utility that gathers and analyzes deployment
information from the master server. The utility performs a deployment analysis
according to one of two NetBackup licensing models, either Traditional Licensing
or Capacity Licensing. A Traditional Licensing deployment analysis counts the
number of clients and servers then compares this information against licensed
options. Capacity Licensing deployment analysis calculates how much source data
is protected.
The command is run in two steps. Data is gathered in the first step and analyzed
in the second.
The utility generates a log file named nbdeployutil-gather-timestamp.log
during the gathering operation. The utility generates a log file named
nbdeployutil-report-timestamp.log during the analysis and the report
generating operation. By default the log files are created in the directory where
the gathered data resides.
467
468
NetBackup Commands
nbdeployutil
OPERATIONS
--format=csv
Creates a comma-separated file from the gathered bpimagelist file. The csv
file is easier to read than the bpimagelist output.
--gather
Collects data for analysis with the report option. If the capacity or
traditional parameter is used, only data for that specific license model is
collected. If neither capacity nor traditional is specified, gather collects
data for both license models.
--report
Produces a license report based on the data that is collected with the gather
option. Specify the directory or list of directories for the utility to use for the
report. If the capacity or traditional parameter is used, only data for that
specific license model is reported. If neither capacity nor traditional is
specified, the report shows data for both license models.
--version
Returns the version of the command. This option is used to identify the latest
NetBackup product version the command is designed to run against. The
version string also indicates special versions of the utility, such as engineering
binaries. This option is useful if utility was manually copied to a pre-7.1
master server.
OPTIONS
--bpimagelist
Use to pass specific options to bpimagelist command during the gather part
of the process. See the Symantec NetBackup Commands guide for more
information about the bpimagelist command.
--capacity
Used in conjunction with gather or report to specify the license model. Use
capacity to report on deployment according to NetBackups per terabyte
capacity licensing model.
--day-boundary
Moves the start of the report window for creating reports. The default report
window starts at midnight and runs to 11:59:59 P.M. Specify the time value
as hh:mm in 24 hour notation, where 6:00 A.M. is 06:00 and 6:00 P.M. is 18:00.
NetBackup Commands
nbdeployutil
--client or --clientlist
Collects data or reports on data for a specified client or list of clients only.
When using client, separate multiple clients with a comma. To use the
clientlist parameter, list the clients in the filename on separate lines.
--dirsfile
Specifies the end date for a restricted date range for the collection period.
This parameter is used only in conjunction with the start parameter. The
format for this parameter is "MM/DD/YYYY hh:mm:ss". Please be aware the
double quotation marks around the date time value are required.
--hoursago
Used to change the default value for the image gather time interval. The value
is specified in hours. The default value is 720 hours (30 days).
--log
Use this option to force the log output to go to a specific log file. By default,
the log output is written to a log file within the directory where the gathered
data and report is stored.
--master
Gather capacity licensing data for the specified master server. This parameter
is only used in conjunction with the gather parameter. For the local host to
gather data from a remote server, the name of the local host must appear in
the server list of the remote server.
The parameter only supports remotely gathering capacity licensing
information. Remotely gathering traditional licensing data is not supported
at this time.
--nolog
Saves the results in the indicated output directory. If the operation is a gather,
the output directory holds gathered data. If the operation is a report, the
report and log file are put in the output directory instead of co-located within
the gathered data in the specified input directory. If the output option is not
specified, the output is placed in the following directory:
469
470
NetBackup Commands
nbdeployutil
UNIX: /usr/openv/var/global/reports/
YYYYMMDD_hhmmss_masterserver
Windows: install_path\
VERITAS\netbackup\var\global\reports\YYYYMMDD_hhmmss_masterserver
--parentdir
Used to specify the top level in a directory tree containing many directories
with the gathered licensing data that the report parameter should use to
generate a report. You can also use the dirsfile parameter to specify a file
that contains a list of directories.
--runtimestats
Displays runtime statistics for the utility. The statistics include memory and
CPU usage.
Example UNIX or Linux output:
stats mem 40.1 M, cpu 27.0% after splitting t/fixture/
nbdeployutil_sidon/bpimagelist_sidon.out
stats mem 40.1 M, cpu 28.0% after parsing records from t/fixture/
nbdeployutil_sidon/tmp/policy_db_arc_tab_2gig_nt_client_totemballmb7.out
stats mem 40.6 M, cpu 50.0% after calculating for UNKNOWN-1 in
t/fixture/nbdeployutil_sidon/ stats mem 40.6 M, cpu 51.0% after
main report loop took 1 sec
--start
Specifies the start date for a restricted date range for the collection period.
The format for this parameter is "MM/DD/YYYY hh:mm:ss". Please be aware
the double quotation marks around the date time value are required.
--traditional
Used in conjunction with gather or report to specify the license model. Use
traditional to report on deployment according to NetBackups traditional
per server licensing model.
--verbose
Outputs detailed progress information of the utility to the screen. That has
no impact on the information in the debug log file. The contents of the log
file are always verbose.
PREREQUISITES
The following are the prerequisites for the nbdeployutil utility:
NetBackup Commands
nbdeployutil
Confirm there is sufficient disk space on the master server running the gather
command. Gathering capacity licensing data collects bpimagelist output for
the prior 30 days. The size of the output is a function of the number of images
in the catalog for that period. The default time period can be moved or shrunk.
The shorter the time range analyzed results in less accurate or incomplete
figures.
The nbdeployutil is designed for use with NetBackup version 6.5.x and greater
and version 7.x and greater.
Microsoft Excel is required to view the report. The software does not have to
be installed on the master server.
EXAMPLES
Example 1 - Create a deployment analysis report for both NetBackups capacity
licensing model and traditional license model. The directory paths shown are for
a Windows system, but this example applies to a UNIX or Linux system as well.
# nbdeployutil --gather
NetBackup Deployment Utility, version 7.1.0000.0000
Gathering license deployment information...
Discovered master server marybl2g1
Output for marybl2g1 at: D:\Program Files\VERITAS\netbackup\
var\global\reports\20101029_170534_marybl2g1
Gather DONE
Execution time: 1 min
To create a report for this master server, run the following:
nbdeployutil.exe --report "D:\Program Files\VERITAS\netbackup\
var\global\reports\20101029_170534_marybl2g1"
D:\>nbdeployutil.exe --report "D:\Program Files\VERITAS\netbackup\
var\global\reports\20101029_170534_marybl2g1"
NetBackup Deployment Utility, version 7.1.0000.0000
Analyzing license deployment for master marybl2g1 ...
Report created at: D:\Program Files\VERITAS\netbackup\var\global\
reports\20101029_170534_marybl2g1\report-20101029_170705.xls
Analysis DONE
Execution time: 27 secs
471
472
NetBackup Commands
nbdeployutil
paths shown are for a Windows system, but this example applies to a UNIX or
Linux system as well.
D:\># nbdeployutil.exe --gather --output pickedclient --start "11/01/10
06:00:00" --end "11/02/10 01:00:00" --clients marybl2g1,marybl7g1
--verbose
NetBackup Deployment Utility, version 7.1.0000.0000
Gathering license deployment information...
run: bpgetconfig
Discovered master server marybl2g1
run: bpimagelist -M marybl2g1 -d "11/01/10 06:00:00" -e "11/02/10
01:00:00" -l -client marybl2g1
run: bpimagelist -M marybl2g1 -d "11/01/10 06:00:00" -e "11/02/10
01:00:00" -l -client marybl7g1
Output for marybl2g1 at: pickedclient\20101102_155246_marybl2g1
Gather DONE
Execution time: 4 secs
To create a report for this master server, run the following:
nbdeployutil.exe --report "pickedclient\20101102_155246_marybl2g1"
D:\># nbdeployutil.exe --report pickedclient\20101102_154010_marybl2g1
--start "11/01/10 06:00:00" --end "11/02/10 01:00:00"
--clients marybl2g1,marybl7g1 --verbose
NetBackup Deployment Utility, version 7.1.0000.0000
Analyzing license deployment ...
Master marybl2g1
Report created at: pickedclient\20101102_154010_marybl2g1\
report-20101102_155414.xls
Analysis DONE
Execution time: 2 secs
NetBackup Commands
nbdevconfig
nbdevconfig
nbdevconfig preview, import, create, or inventory disk pools
SYNOPSIS
nbdevconfig -changedp [-noverbose] -stype server_lifecycle_type -dp
disk_pool_name [-add_storage_servers storage_server...] |
[-del_storage_servers storage_server...] [-hwm high_watermark_percent]
[-lwm low_watermark_percent] [-max_io_streams n][-comment comment]
[-setattribute attribute] [-clearattribute attribute] [-M
master_server] [-reason "string"]
nbdevconfig -changestate [-noverbose] -stype server_type -dp
disk_pool_name [-dv disk_volume_name] -state [UP | DOWN | RESET] [-M
master_server] [-reason "string"]
nbdevconfig -createdp [-noverbose] -dp disk_pool_name -stype
server_type -storage_servers storage_server... [-hwm
high_watermark_percent] [-lwm low_watermark_percent] [-comment
comment] [-dvlist filename] [-M master_server]
nbdevconfig -deletedp [-noverbose] stype service_type -dp
disk_pool_name [-M master_server] [-reason "string"]
nbdevconfig -getconfig stype service_type -storage_server
storage_server [-l | -U] [-configlist filename]
nbdevconfig -setconfig -stype service_type -storage_server
storage_server [-configlist filename] [-reason "reason"
nbdevconfig -importenclr [-noverbose] -enclosure enclosure_name
-storage_servers storage_server... [-hwm high_watermark_percent]
[-lwm low_watermark_percent] [-comment comment] [-M master_server]
nbdevconfig -inventorydp [-preview | -noverbose] -stype server_type
-dp disk_pool_name [-media_server media_server] [-M master_server]
nbdevconfig -mergedps [-noverbose] -stype service_type -primarydp
disk_pool_name_1 -secondarydp disk_pool_name_2 [-M master_server]
[-reason "string"]
nbdevconfig -previewenclr [-l|-U] -enclosure enclosure_name |
-storage_server storage_server... [-M master_server]
nbdevconfig -previewdv -storage_server storage_server -stype
storage_server_type [-media_server media_server] [-dp disk_pool_name]
[-dvlist file_name] [-M master_server]
nbdevconfig -help operation
473
474
NetBackup Commands
nbdevconfig
DESCRIPTION
Use the nbdevconfig command as a command line interface or a menu interface
to configure and support disk pool operations.
nbdevconfig performs the following disk pool operations:
Imports enclosures
Creates and deletes disk pools from an enclosure or from an explicit list of disk
volumes
Inventories disk pools to discover new storage (new volumes, resized volumes,
or new LUNs)
NetBackup Commands
nbdevconfig
Sets the maximum number of I/O streams (jobs) allowed in each volume of a
disk pool
The vmupdate command detects whether new tapes have been added to or removed
from a robotic library. In the same way, the inventory and the preview options of
nbdevconfig detect if the storage administrator has changed the composition of
the disk pool. An inventory detects if new volumes were added, existing volumes
were resized (added more space), or volumes were removed. The inventory
operation can also accept new space. (For example, it updates the NBU database
with the existence of new disk volumes or configures new volumes from the new
space.)
OPTIONS
The following are the nbdevconfig command operations.
-changedp
Changes the indicated properties of the disk pool. Specify the disk pool name
option (-dp) and the storage server type (-stype) to identify the disk pool
uniquely.
-changestate
Changes the state of the disk pool or disk volume. If -dv is specified, then
-changestate changes the specified disk volume of the disk pool. Otherwise,
it changes the state of the disk pool itself. The value for the state can be UP,
DOWN, or RESET.
-createdp
Creates a disk pool from the specified list of disk volumes. Additional
properties like High Water Mark and comments can be specified.
-creatests
Deletes the specified disk pool from the NetBackup device database. Expire
and delete all images before you run this option.
-deletedv
Deletes the specified disk volume from the specified disk pool. No backup
image fragments can exist on the volume. No backup jobs can be active on
the volume. The disk volume and disk pool must be DOWN.
475
476
NetBackup Commands
nbdevconfig
-deletests
Retrieves the default configuration parameters for the disk pool attributes.
The following options are associated with the -getconfig command:
-configlist filename
Specifies a string that identifies the storage server type. Possible values
are AdvancedDisk, PureDisk, and OpenStorage (vendorname).
-storage_server storage_server
Specifies the storage server that contains the disk pool whose
configuration parameters you want.
-help operation
Creates a disk pool from the specified enclosure. You can also specify
additional properties like High Water Mark and comments.
-inventorydp
Discovers new or changed storage in a disk pool and accept these changes.
Storage changes include new volumes, change of volume size, or new LUNs.
Use the -preview option if you only want to view the details of the changes
to the disk pool without accepting them.
-max_io_streams n
Limits the number of jobs that are allowed for each volume in the disk pool
to the specified number n. This number is the sum of the jobs that read backup
images and the jobs that write backup images. When the limit is reached,
NetBackup chooses another available volume for write operations. If none is
available, NetBackup queues jobs until a volume becomes available. Factors
NetBackup Commands
nbdevconfig
that affect the optimal number of streams include disk speed, CPU speed, and
the amount of memory.
This parameter is not supported for BasicDisk. NetBackup does not limit the
number of streams for BasicDisk storage units.
-mergedps
Previews inventory changes to be made, but does not perform the inventory
update.
-previewenclr
Lists the details of all enclosures (disk arrays) that any disk pool uses or may
use.
-reason string
Indicates the reason why you are performing this command action. The reason
string that you enter is captured and appears in the audit report. It can be no
more than 512 characters. It cannot begin with a dash character (-), and
cannot contain a single quotation mark (').
-setconfig
Sets the configuration parameters for the disk pool. These attributes can be
set by using this command option:
The following options are associated with the -getconfig command:
-configlist filename
Indicates the reason why you are performing this command action. The
reason text string that you enter is captured and appears in the audit
report. The string must be enclosed by double quotes ("...") and cannot
exceed 512 characters. It cannot begin with a dash character (-) nor
contain a single quotation mark (').
-stype server_type
Specifies a string that identifies the storage server type. Possible values
are AdvancedDisk, PureDisk, and OpenStorage (vendorname).
477
478
NetBackup Commands
nbdevconfig
-storage_server storage_server
Specifies the storage server that contains the disk pool whose
configuration parameters you have set.
-setSharedDiskSPR 0 | 1
Configures SPR (SCSI Persistent Reserve) or LUN masking. Zero (0) enables
LUN masking; 1 enables SPR. (SharedDisk applies to NetBackup 6.5 media
servers only.)
-updatedv
PrefRestore. The storage server is preferred for the read side of restore
operations.
ReqRestore. The storage server is required for the read side of restore
operations.
duplication operations.
-comment comment
Adds a comment for the disk pool. Quotation marks (" ") are required if the
comment contains any spaces.
-dp disk_pool_name
The name of the disk pool that nbdevconfig previews, inventories, or creates.
-dv disk_volume_name
The unique name of the enclosure. When it is used with the previewenclr
option, it displays details about the enclosure. This option runs successfully
only if the vendor CLI is installed on the master server and its name in the
disk arrays host map.
NetBackup Commands
nbdevconfig
When it is used with the importenclr option, it creates the disk pool from
the specified enclosure.
-hwm high_watermark_percent
Sets the list type to short. This option produces parsable output with all fields
on one line with no headers. The first field indicates the version of the output
as an aid to the script operation.
-lwm low_watermark_percent
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-setattribute attribute
Applies an attribute to the storage server or data pool for the read side of
restore or duplication operations. It is used only with the -changests and
changedp options. The attributes help you manage the restore traffic and
duplication traffic. You can specify more than one -setattribute attribute
on the command line. The following are the attributes:
PrefRestore. The storage server or data pool is preferred for the read side
of restore operations. More than one storage server can have the
PrefRestore attribute.
479
480
NetBackup Commands
nbdevconfig
The storage servers and data pools that are marked as PrefRestore are
considered for use first. If none are available, any unmarked storage server
is considered for use.
Normal NetBackup load balancing occurs among all storage servers marked
PrefRestore.
ReqRestore. The storage server or data pool is required for the read side
of restore operations. More than one storage server or data pool can have
the ReqRestore attribute.
If a ReqRestore server is not available, NetBackup considers PrefRestore
servers for use. If none are available, jobs queue until a ReqRestore or
PrefRestore is available.
If you configure ReqRestore servers but not PrefRestore servers, unmarked
storage servers are never considered for restore jobs. Jobs are queued
until a ReqRestore storage server is available to execute the job.
Normal NetBackup rules for job retry apply.
Normal NetBackup load balancing occurs for all storage servers marked
ReqRestore. Load balancing does not occur between the ReqRestore and
PrefRestore storage servers.
ReqRestore. The storage server is required for the read side of duplication
operations. More than one storage server can have the ReqDuplicate
attribute.
If any storage server is marked as ReqDuplicate, only storage servers that
are marked as ReqDuplicate are considered for use. If a ReqDuplicate
server is unavailable, jobs queue until a ReqDuplicate server is available
to execute the job. Normal NetBackup rules for job retry apply.
ReqRestore also applies to storage server allocation for synthetic backup
operations.
-st storage_type
Selects the state of the disk pool or disk volume. Specify UP to up the disk
pool or disk volume and DOWN to down the disk pool or disk volume.
The RESET option does the following:
Sets the internal state to UP (both disk volume and disk pool)
NetBackup Commands
nbdevconfig
-storage_server storage_server
server.
-storage_servers storage_servers...
The list of storage server names for creating a disk pool. Spaces, and not
commas, must separate the items in this list.
-stype server_type
Sets the list type to user readable. This option produces a listing with more
fields and one attribute per line.
EXAMPLES
Example 1 - Preview all SharedDisk enclosures that the storage servers see and
display in short mode. Note that SharedDisk operates on NetBackup 6.5 media
servers only.
# nbdevconfig -previewenclr -l -hosts daloa -M daloa
V6.5 imported_dg 0 1.20 1.20 3 daloa.min.veritas.com
Example 2 - Preview all SharedDisk enclosures that the storage servers see and
display in user readable mode. Note that SharedDisk operates on NetBackup 6.5
media servers only.
# nbdevconfig -previewenclr -U -storage_servers daloa -M daloa
Preview of Enclosure imported_dp as Disk pool
Disk Pool Name
: imported_dp
Disk Pool Id
: imported_dp
Disk Type
: SharedDisk
Availability
: Free
Raw Size (GB)
: 1.20
Usable Size (GB) : 1.20
481
482
NetBackup Commands
nbdevconfig
Num Volumes
Storage Server
: 3
: daloa.min.veritas.com
NetBackup Commands
nbdevconfig
483
484
NetBackup Commands
nbdevquery
nbdevquery
nbdevquery display NetBackup disk media status
SYNOPSIS
nbdevquery -listdp -stype server_type [-dp disk_pool_name] [-M
master_server] [-l | -U | -D]
nbdevquery -liststs [-stype server_type] [-storage_server
storage_server] [-l | -U | -D]
nbdevquery -listdv -stype server_type [-dp disk_pool_name [-dv
disk_volume_name]] [-M master_server] [-l | -U | -D]
nbdevquery -listmediaid id... [-l | -U]
nbdevquery -listglobals
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbdevquery command line utility is the disk equivalent of bpmedialist for
tape. The following are the three operations that nbdevquery performs:
-listdv displays status for disk volumes of imported disk pools. It includes
such things as whether the volume is online or offline and the number of
current readers (or writers) to the volume.
When used with the -D option, the -listdv command returns a large set of
data including the following values that NetBackup uses to determine the
available free space within the disk pool:
total_capacity : xxxxxxx -- The total size of the disk as derived from the
file system.
free_space : xxxxxxx -- The amount of free space on the disk as derived
from the file system.
potential_free_space : xxxxxxx -- The total size of all fragments on the
disk that have been duplicated as part of a storage lifecycle policy and are
eligible for expiration. The potential_free_space value is computed after
duplication and expiration sessions. This information is applicable only when
capacity managed retention is used for a storage destination.
NetBackup Commands
nbdevquery
-listmediaid lists all disk volumes that have been given a disk media ID.
OPTIONS
-D
Sets the list type to dump debug data. This option dumps information without
further processing. The output format and displayed fields are subject to
change without notification.
-dp disk_pool_name
Specifies the name of the disk pool to be queried. This pool is the data storage
area for this storage unit.
-dv disk_volume
Displays the status for only the specified disk volume. For NearStore, the
input value is the volume path. For BasicDisk, the input value is the path. In
all other cases, the input value is the volume name.
-l
Sets the list type to short. This option produces parsable output with all fields
on one line, no headers. The first field indicates the version of the output as
an aid to the script operation. Date and time values appear in UNIX long
format; status values appear in integer form.
-listdp
Lists all imported disk pools in the NetBackup database. For an OpenStorage
disk, -listdp lists all the disk pools that have been configured.
-listdv
Lists the status for all disk volumes of imported disk pools and returns a list
of all disk volumes in the NetBackup database. See Example 3.
485
486
NetBackup Commands
nbdevquery
-listglobals
Lists NetBackup Disk Service Manager global disk attributes. If SPR is enabled,
the SCSI Persistent Reservation setting is set to one (1). If LUN masking is
enabled, the output shows zero (0) rather than 1.
-listmediaid id...
Lists all disk volumes that have been given the specified disk media IDs.
-liststs
Lists all servers that host storage. These include appliances such as
OpenStorage, SAN-attached storage such as SharedDisk (NetBackup 6.5 media
servers only), BasicDisk, and Network-attached storage (NAS devices) such
as NetApp.
-storage_server storage_server
The host name of the storage server. For NearStore, this name is the hostname
of the NearStore system. For BasicDisk, the name of the media server. In all
other cases, this option is the name given to the storage server when it was
created.
-stype server_type
Lists the configuration information about the specified disk pool, storage
server, or disk storage (see Example 1). Some of the items cannot be changed.
EXAMPLES
Example 1
# nbdevquery -liststs
Storage Server
:
Storage Server Type :
Storage Type
:
State
:
Flag
:
Flag
:
Flag
:
Flag
:
Flag
:
Flag
:
Flag
:
Flag
:
-stype AdvancedDisk -U
<machine_name>
AdvancedDisk
Formatted Disk, Direct Attached
UP
OpenStorage
AdminUp
InternalUp
SpanImages
LifeCycle
CapacityMgmt
FragmentImages
Cpr
NetBackup Commands
nbdevquery
Flag
Flag
: RandomWrites
: FT-Transfer
Example 2 - List all disk pools in the system. Note that SharedDisk operates on
NetBackup 6.5 media servers only.
# nbdevquery -stype SharedDisk -dp disk-pool-1
V6.5 Disk-Pool-1 0 97456 97480 10 80 90 server1,server2,server3
Example 4 - Do a disk drive dump of the disk pool sim_dp1 that SharedDisk uses.
Note that SharedDisk operates on NetBackup 6.5 media servers only.
# nbdevquery -listdp -dp sim_dp1 -stype SharedDisk -D
Disk Drive Dump
name
: <sim_dg1>
id
: <sim_dg1>
server_type
: <SharedDisk>
master_server
: <daloa.min.veritas.com>
access_media_server : <>
disk_storage_type
: 6
total_capacity
: 1286602752
used_space
: 0
sts_state
: 0
availability
: 2
connectivity
: 0
487
488
NetBackup Commands
nbdevquery
high_watermark
low_watermark
num_diskvolumes
num_disks
:
:
:
:
98
80
3
0
num_stservers
: 2
system_tag
: <Imported from STS>
user_tag
: <>
Storage Server [0]
name : <daloa.min.veritas.com>
id
: <>
server_type
: <SharedDisk>
storage_type
: 6
access_media_serv.: <>
Storage Server [1]
name
: <blackjack.min.veritas.com>
id
: <>
server_type
: <SharedDisk>
storage_type
: 6
access_media_serv.: <>
SEE ALSO
See nbemmcmd on page 494.
NetBackup Commands
nbdna
nbdna
nbdna the utility that analyzes the NetBackup domain and its configuration
SYNOPSIS
nbdna [-phase=<0|1|2>] [-verbose] [-sfo] [-server | -lookup]
[-odir=override_output_directory] [-tmp=override_tmp_directory]
[-dump] [-f=listfile.txt] [-overwritelist] [-version]
[-imfile=output_file]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/support
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\support
DESCRIPTION
The NetBackup Domain Network Analyzer (nbdna) command utility analyzes the
NetBackup domain and its configuration for network issues, performance, and
behavior. It addresses hostname lookup and connectivity between NetBackup
hosts and their role within the NetBackup domain.
nbdna does the following:
nbdna can be run on a NetBackup master server, media server, or client. It creates
and identifies a zip archive containing all generated reports. You can return the
zip archive to Symantec upon request.
OPTIONS
-dump
Does not run the test, but dumps server, client, and lookup test list to the
specified file.
-f=listfile.txt
Reads the hostnames from the specified ASCII text file and adds them to the
test lists. The format of the text file is the following:
489
490
NetBackup Commands
nbdna
SERVER hostname
CLIENT hostname-b
LOOKUP hostname-c
Lines beginning with SERVER are imported to the server test list.
Lines beginning with CLIENT are imported to the client test list.
Lines beginning with LOOKUP are imported to the lookup-only test list.
-imfile=output_file
Reads hostnames from a file that contains the output from either the
bpimagelist -l command or the bpimmedia -l command.
-lookup
Runs the name lookup test only. This option cannot be run with the -server
option.
-odir=override_output_directory
For UNIX:
/usr/openv/netbackup/bin/support/output/nbdna/YYYYMMDD.HHMMSS/
For Windows:
<install_path>\NetBackup\bin\support\output\nbdna\YYYYMMDD.HHMMSS
If the NetBackup path cannot be found, the default is changed to the same
directory as the nbdna binary.
-overwritelist
0 - Phase 0 runs the name lookup test and the socket connection test.
Phase 0 is the default mode.
1 - Phase 1 tests include phase 0 tests plus the basic NetBackup service
test for the SERVER list.
2 - Phase 2 tests include phase 0 tests plus the basic NetBackup service
test for the SERVER list and the CLIENT list.
-server
Runs the server test only. This option cannot be run with the -lookup option.
NetBackup Commands
nbdna
-sfo
Overrides the temporary directory. The default condition is the system temp
directory.
-verbose
FILES
nbdna creates up to five files:
ANONYMOUS.NBDNA.YYYYMMDD.HHMMSS.dna
hostname.NBDNA.YYYYMMDD.HHMMSS.zip archive file
hostname.NBDNA.failure-report.YYYYMMDD.HHMMSS.txt
hostname.NBDNA.failure-report.YYYYMMDD.HHMMSS.html
hostname.NBDNA.failure-errorlog.YYYYMMDD.HHMMSS.log.
The last three files that are listed are generated only if there are errors.
EXAMPLES
Example 1 - In this UNIX example, nbdna runs with report files written to an
alternate directory:
# nbdna -odir=/user/home/winter/
Example 2 - Run nbdna with verbose output. It imports a hostname list file
(hostnames.txt) that overwrites all the existing test lists:
# nbdna -verbose -f=hostnames.txt -overwritelist
nbsu, nbcplogs
491
492
NetBackup Commands
nbdna
NetBackup Commands
nbemm
nbemm
nbemm run the NetBackup EMM daemon to manage volumes, volume pools,
SYNOPSIS
nbemm [-console] [-terminate]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The Enterprise Media Manager daemon or service manages volumes, volume
pools, barcode rules, and devices. This daemon performs media, drive, drive path,
and storage unit selection.
Note: The nbemm daemon or service must be active to change the volume
configuration, device configuration, storage unit configuration, and for any tape
mount activity.
To start nbemm, enter nbemm.
To stop nbemm, enter nbemm -terminate.
OPTIONS
-console
SEE ALSO
See nbemmcmd on page 494.
493
494
NetBackup Commands
nbemmcmd
nbemmcmd
nbemmcmd update and view information in the EMM database
SYNOPSIS
nbemmcmd [-addhost] [-changesetting] [-deletehost] [-errorsdb]
[-getemmserver] [-help] [-listhosts] [-listmedia] [-listsettings]
[-machinealias] [-renamehost] [-servercontrol] [-setemmserver]
[-updatehost]
nbemmcmd -addhost [-activenodename string] [-brief] [-clustername
string] [-displayname string] [-machinedescription string]
-machinename string -machinetype api | app_cluster | cluster | master
| media | ndmp [-masterserver string] [-netbackupversion
level[.major_level[minor_level]]] [-operatingsystem hpux | linux |
rs6000 | solaris | windows] [-scanability unsigned_integer]
nbemmcmd -changesetting -machinename string
[-ALLOW_MULTIPLE_RETENTIONS_PER_MEDIA 0|1|no|yes] [-AUDIT DISABLED
| ENABLED] [-AUDIT_ RETENTION_PERIOD number_of_days]
[-COMMON_SERVER_FOR_DUP default | preferred | required]
[-DISABLE_AUTOMATIC_HOST_NAME_ADD 0|1|no|yes]
[-DISABLE_BACKUPS_SPANNING_DISK 0|1|no|yes]
[-DISABLE_DISK_STU_JOB_THROTTLING 0|1|no|yes]
[-DISABLE_STANDALONE_DRIVE_EXTENSIONS 0|1|no|yes]
[-DISALLOW_NONNDMP_ON_NDMP_DRIVE 0|1|no|yes] [-DO_NOT_EJECT_STANDALONE
0|1|no|yes] [-DONT_USE_SLAVE 0|1|no|yes] [-DRIVE_ERROR_THRESHOLD
unsigned_integer] [-DRIVE_NAME_SEED 0|1|no|yes] [-emmname string]
[-emmport unsigned_integer] [-MAX_REALLOC_TRIES unsigned_integer]
[-MEDIA_ERROR_THRESHOLD unsigned_integer] [-MEDIA_REQUEST_DELAY
unsigned_integer] [-MPMS_DISABLE_EVENTS 0|1|no|yes]
[-MPMS_DISABLE_RANK unsigned_integer] [-MUST_USE_LOCAL_DRIVE
0|1|no|yes] [-NBUFS_DESTINATION_DSU string] [-NBUFS_DUP_TSU_TO_DSU
0|1|no|yes] [-NBUFS_RETENTION_LEVEL unsigned_integer]
[-NON_ROBOTIC_MEDIA_ID_PREFIX string] [-PREFER_NDMP_PATH_FOR_RESTORE
0|1|no|yes] [-RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL 0|1|no|yes]
[-SCSI_PROTECTION NONE | SPR | SR] [-SHAREDISK_MOUNT_POINT string]
[-TIME_WINDOW unsigned_integer] [-UNRESTRICTED_SHARING 0|1|no|yes]
[-VALIDATE_HOST_NAME 0|1|no|yes] [-VAULT_CLEAR_MEDIA_DESC 0|1|no|yes]
NetBackup Commands
nbemmcmd
495
496
NetBackup Commands
nbemmcmd
DESCRIPTION
The nbemmcmd command enables users to update a limited set of EMM database
information. In addition, this command enables you to manage host entries,
configuration options, and other miscellaneous items in the EMM database.
OPTIONS
The following commands contain a variety of options that enable you to manage
the EMM database. The names of the options are purposely long to provide the
user with a better understanding of how the options are to be used. Because of
the option name length, you need only type the first letter or letters of the
command that make it a unique option. For example, to use the -changesetting
option, type -c because no other command option starts with the letter c.
-addhost
This option adds the specified host to the EMM database. The following entries
can be adjusted by using this command option:
-activenodename string
NetBackup Commands
nbemmcmd
Specifies the version that the added host is running. The level variable
has a range of 0-99. The major_level and minor_level variables are
optional single-digit fields. No spaces are allowed between the major_level
and minor_level variables.
For example, enter the following information to specify NetBackup 6.0:
-netbackupversion 6.0 or -netbackupversion 6
-operatingsystem hpux | linux | rs6000 | solaris | windows
This option applies only to NetBackup Enterprise Servers that use the
Shared Storage Option (SSO) feature.
A scan ability factor can range from zero to 9, with a default value of 5.
This factor allows the assignment of scan hosts to be prioritized if a
drives scan host changes. Scan hosts with higher scan ability factors
are chosen first.
Caution: A drive is unavailable for use until a scan host can be assigned
to it. If all hosts that register for a particular drive use scan_factor = 0,
the drive remains unusable until a host with a non-zero scan_factor
registers for the drive. If all hosts with a non-zero scan_factor have the
drive DOWN, then again the drive becomes unavailable.
The decision to use a scan_factor of zero for a server reduces the level
of resiliency in your SSO configuration. Be aware of the servers that can
be a scan host for a drive. If a drive loses a scan host, it makes the drive
unavailable to any server.
-changesetting -machinename string
Changes the configuration setting for a specified host and adds the settings
that did not previously exist.
Change these configuration options by using the -changesetting command
with the option name followed by the enable designator ("1" or "yes") or the
497
498
NetBackup Commands
nbemmcmd
disable designator ("0" or "no"). For example, the following command disables
the ability of EMM to add a host name automatically:
# nbemmcmd -changesetting -DISABLE_AUTOMATIC_HOST_NAME_ADD no
-ALLOW_MULTIPLE_RETENTIONS_PER_MEDIA 0 | 1 | no | yes
Specifies the number of days that user actions are to be retained for the
audit report. If no retention period is indicated, the default audit retention
period is 90 days. A value of 0 (zero) indicates that the records are never
purged.
-COMMON_SERVER_FOR_DUP default | preferred | required
NetBackup Commands
nbemmcmd
tape drives and tapes) are busy, run the duplication job anyway by
using two separate media servers (sending images over the network).
-DISABLE_AUTOMATIC_HOST_NAME_ADD 0|1|no|yes
Disables the disk storage unit job throttle action that occurs when disk
storage units approach their high-water mark. Disk storage unit throttling
limits the number of jobs that are started simultaneously to approach
the high-water mark more accurately. Default: Throttle disk storage
units that approach their high-water mark.
-DISABLE_STANDALONE_DRIVE_EXTENSIONS 0|1|no|yes
The MDS logic on the EMM server reads this option. NetBackup tries to
use an available drive that is based on the type of request as follows:
For a non-NDMP request of any kind, NetBackup tries to find an available
non-NDMP drive. If a non-NDMP drive is not available and an NDMP
drive is available, the slower NDMP drive is used. Non-NDMP requests
include all type of requests apart from storage unit related requests
(backups and write side of duplicates) and NDMP image restores.
-DO_NOT_EJECT_STANDALONE 0|1|no|yes
If this entry is enabled, tapes in standalone drives are not ejected when
a backup has completed on that host. (Tapes are ejected if end-of-media
499
500
NetBackup Commands
nbemmcmd
Changes the threshold or number of drive errors that can occur before
NetBackup changes the drive state to DOWN. Default: 2.
-DRIVE_NAME_SEED 0|1|no|yes
Specifies the name of the EMM database server. This server contains the
database that stores the media and device configuration information.
-emmport unsigned_integer
Changes the threshold or number of media errors that can occur before
the media is frozen. Default: 2.
-MEDIA_REQUEST_DELAY unsigned_integer
If the client is also a master server and this option is active, backups for
this client must occur on a local drive. If the client is not a master server,
this entry has no effect.
NetBackup Commands
nbemmcmd
Add this option to the bp.conf file on master servers. Or check the Must
Use Local Drive setting in the General Server host properties dialog box.
-NBUFS_DESTINATION_DSU string, -NBUFS_DUP_TSU_TO_DSU 0|1|no|yes,
-NBUFS_RETENTION_LEVEL unsigned_integer,
-NON_ROBOTIC_MEDIA_ID_PREFIX string
Specifies the media ID prefix that is used for creating non-robotic media.
It applies to the host that the -machinename option specifies. The media
ID prefix is an alphanumeric string of characters from one to three
characters in length.
-PREFER_NDMP_PATH_FOR_RESTORE 0|1|no|yes,
-RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL 0|1|no|yes
This EMM global option applies to every host that uses the EMM server.
It is not a host option.
YES: The Media Manager automatically returns expired and unassigned
media (originally from the same scratch pool) to the scratch volume pool.
NO: Disables the automatic behavior of returning media to the scratch
pool. Use one of the Media Manager administration interfaces to move
media.
-SCSI_PROTECTION NONE | SPR | SR
Allows exclusive access protection for tape drives. With access protection,
other host bus adaptors cannot issue commands to control the drives
during the reservation. The three possible settings for this option are:
NONE - No protection
SPR - SCSI persistent reserve
SR - SPC-2 SCSI reserve (default condition)
-TIME_WINDOW unsigned_integer
Enables you to set a value that is equal to the amount of time in which
errors can be tracked. You can use this value with an error threshold (for
example, media_error_threshold) to monitor the number of media errors
that occur within the time window. The default setting is 12 hours.
-UNRESTRICTED_SHARING 0|1|no|yes
501
502
NetBackup Commands
nbemmcmd
-VAULT_CLEAR_MEDIA_DESC 0|1|no|yes
This option is an EMM global option that applies to every host that uses
the EMM server. It is not a host option. When NetBackup media is
returned from the off-site vault during a typical tape rotation, it is expired
and is ready for reuse by new backups. To avoid confusion, it may be
helpful to clear the old media description information when an expired
tape is returned to the robot. If this entry is specified, the media
description field is cleared when other Vault information is cleared from
the Media Manager volume database.
-deletehost
Deletes an EMM machine record by using the required machine name and
machine type.
-brief
Removes the entries from the error database. The optional days, hours,
and minutes arguments determine which database entries to delete. It
removes any entries older than the specified time.
-getemmserver
Displays the information on all the hosts in a particular EMM domain. Use
this command to ensure a level of consistency in a newly installed domain
or modified domain.
-brief
Specifies a name of a master server for an EMM domain. If you omit this
option when you use this command, the current machine is assumed.
NetBackup Commands
nbemmcmd
This option dumps the table structure for each known host.
-display_server -machinename string -machinetype string
Displays only the specified machine by the machine name and machine
type.
-list_app_clusters -masterserver string
Lists all of the SnapVault filers of the specified machine name See the
-machinename option description that follows.
-list_snap_vault_media_servers -masterserver string
Lists all of the SnapVault media servers of the specified master server.
-list_sts_hosts -machinename string
Lists all OpenStorage media servers that are connected to the specified
master server.
-machinename api | app_cluster | cluster | master | media | ndmp
Displays only the media servers and master servers. The default for
-listhosts is to display all servers.
-netbackupversion level[.major_level[minor_level]]
Specifies the machine version. The level variable has a range of 0-99.
The major_level and minor_level variables are optional single-digit fields.
There should be no spaces between major_level and minor_level.
For example, enter the following information to specify NetBackup 7.0:
-netbackupversion 7.0 or -netbackupversion 7
503
504
NetBackup Commands
nbemmcmd
Queries the volumes by pool number, an index into the volume pool. Use
vmpool -listall to determine the index for a given pool name.
-robotnumber unsigned_integer
Lists the volumes that are stored in the container. The string variable is
the vault_container_id, a string of up to 29 alphanumeric characters.
NetBackup Commands
nbemmcmd
-listsettings
-machinename string
Specifies the host name of the pertinent EMM server. If -emmname is not
specified, the default name is located in the bp.conf file.
-emmport unsigned_integer
Specifies the port number of the EMM server to where calls are made. If
-emmport is not specified, the default port is specified in the bp.conf
file.
-machinealias
The following parameters are used to maintain the alias list for a particular
machine. Use them to view current aliases, add new aliases, or delete current
aliases for an identified machine.
-addalias -alias alias -machinename name -machinetype type
Deletes an alias name from the database. This operation requires that
you identify the alias to be deleted by using the -alias string command
and machine type with this option.
-deleteallaliases -alias name -machinetype type
505
506
NetBackup Commands
nbemmcmd
-machinename string
Specifies the host name of the pertinent EMM server. If -emmname is not
specified, the default name is located in the bp.conf file.
-emmport unsigned_integer
Specifies the port number of the EMM server to where calls are made. If
-emmport is not specified, the default port is specified in the bp.conf
file.
-renamehost
This command, with the required machine name and new machine name
options, renames the current machine name to a new machine name.
-machinename string
This command suspends and resumes control of a specified server. You can
perform database maintenance without the corruption of existing data because
a job began to run during this time.
-resume
This command changes the EMM server name for certain hosts in the domain
whose name matches the old EMM server name. This command has the
following options:
NetBackup Commands
nbemmcmd
-emmservername string
Specifies a name of a master server for an EMM domain. If you omit this
option when you use this command, the current machine is assumed.
-timeout unsigned integer
This command, when used with the following options, enables you to change
a machine record that was specified by using the required -machinename
option.
-add_server_to_app_cluster
507
508
NetBackup Commands
nbemmcmd
Adds a host and specifies the version it is running. The level variable as
a range of 0-99. The major_level and minor_level variables are optional
single-digit fields. There should be no spaces between the major_level
and minor_level variables.
For example, enter the following to specify NetBackup 7.0:
-netbackupversion 7.0
-operatingsystem hpux | linux | rs6000 | solaris | windows
This option enables you to update the operating system of the machine.
EXAMPLES
Example 1
# nbemmcmd -getemmserver
These hosts were found in this domain: throttle, upwords
Checking with host: throttle...
Checking with host: upwords...
Server Type
Host Version
Host Name
MEDIA
UNKNOWN RELEASE (0)
throttle
MASTER
6.0Alpha
upwords
EMM Server
throttle
upwords
Example 2
# nbemmcmd -setemmserver -emmservername throttle -newemm upwords
These hosts were found in this domain: throttle, upwords
Checking with host: throttle...
Checking with host: upwords...
Server Type
Host Version
Host Name
EMM Server
MEDIA
UNKNOWN RELEASE (0)
throttle
throttle
EMM server name was changed.
MASTER
6.0Alpha
upwords
upwords
One media hosts had EMM Server name changed. Command was completed
successfully.
NetBackup Commands
nbemmcmd
Example 3
orbitervm1 # ./nbemmcmd -listsettings -machinename orbitervm1
NBEMMCMD, Version:7.0
The following configuration settings were found:
ALLOW_MULTIPLE_RETENTIONS_PER_MEDIA="no"
DISABLE_DISK_STU_JOB_THROTTLING="no"
DISABLE_STANDALONE_DRIVE_EXTENSIONS="no"
MEDIA_REQUEST_DELAY="0"
MUST_USE_LOCAL_DRIVE="no"
NON_ROBOTIC_MEDIA_ID_PREFIX="A"
MAX_REALLOC_TRIES="1000"
DISABLE_BACKUPS_SPANNING_DISK="no"
DISALLOW_NONNDMP_ON_NDMP_DRIVE="no"
DO_NOT_EJECT_STANDALONE="no"
PREFER_NDMP_PATH_FOR_RESTORE="yes"
DONT_USE_SLAVE="no"
DRIVE_ERROR_THRESHOLD="2"
MEDIA_ERROR_THRESHOLD="2"
TIME_WINDOW="12"
SCSI_PROTECTION="SR"
NBUFS_DUP_TSU_TO_DSU="no"
NBUFS_DESTINATION_DSU="NONE"
NBUFS_RETENTION_LEVEL="0"
MPMS_DISABLE_RANK="0"
MPMS_DISABLE_EVENTS="no"
UNRESTRICTED_SHARING="no"
FATPIPE_USAGE_PREFERENCE="Preferred"
FATPIPE_WAIT_PERIOD="15"
FATPIPE_RESTORE_WAIT_PERIOD="5"
FT_MAX_CLIENT_PORTS_PER_SERVER="2"
FT_MAX_CLIENTS_PER_PORT="2"
SHAREDDISK_MOUNT_POINT="/nbushareddisk"
RETURN_UNASSIGNED_MEDIA_TO_SCRATCH_POOL="yes"
VAULT_CLEAR_MEDIA_DESC="no"
SCSI_PERSISTENT_RESERVE="0"
Command completed successfully.
509
510
NetBackup Commands
nbexecute
nbexecute
nbexecute execute the LiveUpdate policy
SYNOPSIS
nbexecute -LiveUpdate nbmtrans.exe path [arguments] -policy
policy_name [-schedule schedule_name] -client client_name | all
[-retryable] [-noretries]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The NetBackup master server initiates the NetBackup LiveUpdate policy. The
nbexecute command submits the request to PEM.
OPTIONS
nbmtrans.exe path arguments
Specifies the path arguments and command arguments for the nbmtrans.exe
command.
-policy
Specifies that NetBackup does not try to retry job submission if the job fails.
EXAMPLE
The following Windows example runs LiveUpdate_policy on the foo3 client:
NetBackup Commands
nbexecute
511
512
NetBackup Commands
nbfirescan
nbfirescan
nbfirescan scan for SCSI disk devices and print out report
SYNOPSIS
nbfirescan
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The Frozen Image Rescan (nbfirescan) utility scans for SCSI disk devices and
prints what it finds. It is available on all media servers and is used to triage import
problems.
Only authorized users can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
EXAMPLE
The following applies to Windows systems only; it is a sample output from the
local host SCSI bus scan:
C:\Program Files\Common Files\Symantec\VxFI\4\Bin>nbfirescan.exe
nbfirescan v4.4.1 - Copyright (c) 2005-2010 Symantec Corp.
Rescanning
devices..............................................Complete.
Device count: 48
DevicePath
Vendor
Product ID
EnclosureId
DeviceId
[Ctl,Bus,Tgt,Lun]
-----------------------------------------------------\\.\PHYSICALDRIVE0
SEAGATE ST336607LW
\\.\PHYSICALDRIVE1
SEAGATE ST336607LW
\\.\PHYSICALDRIVE2
COMPAQ
HSV111 (C)COMPAQ 5000-1FE1-5004-5660
6005-08B4-0010-120F-0000-7000-0956-0000
[00,04,00,01]
\\.\PHYSICALDRIVE3
COMPAQ
HSV111 (C)COMPAQ 5000-1FE1-5004-5660
6005-08B4-0010-4E39-0000-4000-0010-0000
[00,04,00,02]
NetBackup Commands
nbftadm
nbftadm
nbftadm start menu interface for managing the Fibre Transport (FT)
SYNOPSIS
/usr/openv/netbackup/bin/nbftadm
DESCRIPTION
This command operates only on UNIX and Linux systems.
nbftadm has a menu interface that an administrator can use to configure and
manage the fiber transport between NetBackup media servers and SAN clients.
nbftadm requires administrator privileges. This interface can be used from any
character-based terminal (or terminal emulation window) for which the
administrator has a termcap or a terminfo definition.
See the NetBackup Administrators Guide and the nbftadm online Help for detailed
operating instructions.
FILES
/usr/openv/netbackup/help/nbftadm/*
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/bin/initbprd
/usr/openv/netbackup/bp.conf
SEE ALSO
See bprd on page 314.
513
514
NetBackup Commands
nbftconfig
nbftconfig
nbftconfig configure the attributes that are associated with Fibre Transport
SYNOPSIS
nbftconfig [-addclient] [-deleteclient] [-changeclient]
[-rescanclient] [-listclients] [-addserver] [-deleteserver]
[-changeserver] [-listservers] [-listactive] [-setconfig] [-getconfig]
[-verbose] [-help]
nbftconfig -[ac]addclient -C client_name [-M master_server] [-ftpref
preferred | always | never] [-ftwait minutes] [-ftrwait minutes]
nbftconfig -[dc]deleteclient -C client_name
nbftconfig -[cc]changeclient -C client_name {-ftpref preferred |
always | never] [-ftwait minutes] [-ftrwait minutes] | -np
number_of_ports}
nbftconfig -[rc]rescanclient client_name
nbftconfig -[lc]listclients [-verbose] [-C client_name | -Me
media_server | -M master_server]
nbftconfig -[as]addserver -Me media_server [-M master_server] [-l
connection_limit] [-state active | disabled]
nbftconfig -[ds]deleteserver -Me media_server
nbftconfig -[cs]changeserver -Me media_server [-l connection_limit]
[-state active | disabled]
nbftconfig -[ls]listservers [-Me media_server | -M master_server]
[-verbose]
nbftconfig -[la]listactive [-C client_name | -Me media_server]
[-verbose]
nbftconfig -[lt]listtargets [-Me media_server] [-verbose]
nbftconfig -setconfig [-M master_server] {-ftpref preferred | always
| never [-ftwait minutes] [-ftrwait minutes] | -np number_of_ports
[-ncp number_of_clients_per_target_port]}
nbftconfig -getconfig [-M master_server] [-verbose]
nbftconfig -option -help
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
NetBackup Commands
nbftconfig
DESCRIPTION
nbftconfig is a NetBackup utility that modifies the attributes that are associated
with the Fibre Transport (FT) server. It also creates the SAN client entities in the
EMM database.
The following operations are available by using the nbftconfig command:
Add a new SAN client and its attributes to the EMM database.
OPTIONS
-addclient
Adds the specified SAN client to the EMM database. SAN clients are normally
automatically discovered when the SAN client code is installed on the client.
However, if the notification from the client to the EMM server is lost, use this
command to manually add the client. The following attributes can be set by
using this command option:
-C client_name
Specifies the name of the SAN client that is to be added to the database.
-M master_server
Specifies the master server that is associated with the designated client.
If this option is omitted, the local clients master server is used.
-ftpref preferred | always | never
515
516
NetBackup Commands
nbftconfig
-ftwait minutes
Defines the number of minutes that a backup job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is valid only when the ftpref type is set to
preferred.
-ftrwait minutes
Defines the number of minutes that a restore job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is only valid when the ftpref type is set to
preferred.
-np number_of_ports
Deletes the specified client from the EMM database. The following attribute
may be included with this option.
-C client_name
Specifies the name of the SAN client that is to be deleted from the
database.
-changeclient
Changes the options that are associated with a specific SAN. The following
attributes can be set by using this command option:
-C client_name
Specifies the name of the SAN client that is to be added to the database.
-ftpref preferred | always | never
Defines the number of minutes that a backup job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is valid only when the ftpref type is set to
preferred.
NetBackup Commands
nbftconfig
-ftrwait minutes
Defines the number of minutes that a restore job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is only valid when the ftpref type is set to
preferred.
-rescanclient
This operation scans the client for new FT devices. The following attributes
can be set by using this command option:
-C client_name
Displays the list of SAN clients and attributes that are associated with the
clients. By default all SAN clients are listed with a subset of attributes. The
information output by the listclients operation depends on whether all
clients are listed or the attributes associated with a specific SAN client.
The following attributes can be set by using this command option:
-C client_name
Specifies the name of the SAN client whose information you want listed.
If this attribute is omitted, listclients lists the information for all
clients that are attached to the designated media server or master server.
-Me media_server
Specifies the name of the FT server for whose attached clients you want
the information listed.
-M master_server
Specifies the master server that is associated with the FT servers. If this
option is omitted, all FT servers are returned.
-verbose
The output can be displayed in verbose mode and non-verbose mode (by
default). When all clients are listed (including all clients by master or
media server), the information appears for multi-client, verbose mode
output.
The following information appears in verbose mode for the client record:
SAN client name
Version Client NBU software version
State -SAN client state
Master server name
517
518
NetBackup Commands
nbftconfig
Adds a Fibre Transport server to the EMM database. This operation may not
be needed because FT servers are normally added automatically. It is included
to allow the manual deletion of an FT server; it does not delete the server
from the media servers database. To change server parameters, -addserver
restarts the FT server daemon and causes FSM to reinsert the server as if it
were a newly created server.
The following attributes can be set by using this command option:
-Me media_server
Specifies the master server that is associated with the designated media
server.
-l connection_limit
NetBackup Commands
nbftconfig
Identifies the assigned state of the FT server. The possible values are
Active and Disabled.
-deleteserver
Deletes the specified client from the EMM database. The following attribute
can be set by using this command option:
-Memedia_server
Changes the attributes that are associated with an FT server. The following
attributes can be set by using this command option:
-Me media_server
Specifies the master server that is associated with the designated media
server.
-l connection_limit
Identifies the assigned state of the FT server. The possible values are
Active and Disabled.
-listservers
This operation is used to display the list of FT servers and attributes that are
associated with the servers. By default all FT servers are listed:
The following options are associated with the listservers command:
-Me media_server
Specifies the name of the media server whose attached FT servers are to
be listed.
-M master_server
Specifies the name of the master server whose attached FT servers are
to be listed.
519
520
NetBackup Commands
nbftconfig
-verbose
This operation is used to display the list of specifics on all the target ports
on FT media servers. By default all FT servers are listed.
The following options are associated with the listtargets command:
NetBackup Commands
nbftconfig
-Me media_server
Specifies the name of the media server whose target port configurations
are to be listed. If no media server is specified, the target port information
is listed for all FT media servers.
-verbose
Retrieves the default configuration parameters for the FT server and SAN
client attributes.
The following options are associated with the -getconfig command:
-M master_server
Specifies the master server that is associated with the FT server. If this
option is omitted, the local machine's master server is used.
-verbose
Sets the configuration parameters for the FT server and SAN client attributes.
These attributes can be set by using this command option:
-ftpref preferred | always | never
Determines if the Fibre Channel connections to the media server are preferred,
must always be used, or should never be used. This value is set by default
according to the global defined for the EMM server.
Usage of -ftpref and -np or -ncp is mutually exclusive.
-ftwait minutes
Defines the number of minutes that a backup job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is required only when the ftpref type is set to
preferred.
521
522
NetBackup Commands
nbftconfig
-ftrwait minutes
Defines the number of minutes that a restore job should wait for an
available Fibre Channel connection before it uses a standard network
connection. This option is required only when the ftpref type is set to
preferred.
-ncp number_of_clients_per_target_port
Specifies the maximum number of clients per target port that are allowed
on any FT media server.
-np number_of_ports
Specifies the number of initiator ports on a client that can be used with
one FT media server.
-listactive
Specifies the name of the SAN client whose active FT connections you
want listed. If this attribute and the media server attribute are omitted,
-listactive lists the information for the local machines master server.
-Me media_server
Specifies the name of the FT server from whose attached clients you
want the FT connections listed.
-verbose
NetBackup Commands
nbftconfig
EXAMPLES
Example 1 - List FT configuration values for master server wendigo in verbose
mode. These values are set in the nbftconfig -getconfig command.
# nbftconfig -getconfig -verbose
Master Server
: wendigo.min.veritas.com
Client Ports/Server: 2
Clients/Target port: 2
FT Preference
: preferred
Backup Wait Time
: 15
Restore Wait Time : 5
Example 2 - Show how the -listtargets option lists the configuration specifics
for all the target ports on FT media server wendigo in verbose mode.
# nbftconfig -listtargets -verbose
FT Server Name : wendigo.min.veritas.com
FT Server HBA Port : 1
FT Server Port WWN : 21:00:00:E0:8B:8F:CC:79
FT Server Port Mode : PTP
FT Server Port Model : QLA234x Series FC Hba
FT Server Port Vendor: Qlogic
FT Server Device State : active
Associated LUN : 0
Active Connections on LUN: 0
FT Server Device State : active
Associated LUN : 1
Active Connections on LUN: 0
FT Server HBA Port : 0
FT Server Port WWN : 21:01:00:E0:8B:AF:CC:79
FT Server Port Mode : DISCONNECTED
FT Server Port Model : QLA234x Series FC Hba
FT Server Port Vendor: Qlogic
FT Server Device State : active
Associated LUN : 0
Active Connections on LUN: 0
FT Server Device State : active
Associated LUN : 1
Active Connections on LUN: 0
523
524
NetBackup Commands
nbhba
nbhba
nbhba run the utility to modify an HBA cards device ID
SYNOPSIS
/usr/openv/netbackup/bin/nbhba -modify -wwn string [ -wwn <wwn string>
... ] -mode target | initiator
/usr/openv/netbackup/bin/nbhba -l | -L
DESCRIPTION
This command operates only on UNIX and Linux systems.
nbhba enables an administrator to set the mode of the HBA cards in the system.
The HBA cards can respond as either target mode or initiator mode devices. To
change the mode of the HBA card for use with the SAN Client, change the device
ID of the QLogic card. The device ID changes from its standard designation to a
special designation that allows only the target mode driver to be loaded.
OPTIONS
-l, -L
-l lists the drivers of all HBA cards that are installed in the system. -L also
lists information about the cards. The following information appears for each
HBA port:
Linux systems only: The first line of data lists the number of ports
recognized, the number of target mode ports, and the mode of the driver
(e.g., nbhba installed).
HBA index - a relative number of the HBA card in the system. This number
is valid until the system is rebooted.
World Wide Name - the world wide name that is read from the card.
Model Name - the physical slot in which the card is installed in the system.
-modify
Modifies the mode of the HBA card. Specify the HBA card to be changed
through the World Wide Name (wwn).
NetBackup Commands
nbhba
The mode of the card can be target or initiator. Target mode is used as the
terminus for a SAN Client. Initiator mode connects the media server disk
resources. Optionally, the administrator can input the specific QLogic device
ID for either the target mode or initiator mode driver.
-wwn string
Specifies the World Wide Name of the HBA card. These required selection
criteria are used to specify which card and port to mark.
-mode target | initiator
Sets the mode of the specified HBA card. Target mode uses the HBA as the
target for a SAN Client. Do not set an existing card to initiator mode unless
it had been previously set to target mode.
EXAMPLES
Example 1 - Set the HBA port with worldwide name "123456789ABCDEF0" to
target mode:
# nbhba -modify -wwn 123456789ABCDEF0 -mode target
Example 2 - List information on all HBA cards installed on a Linux system (see
the first line of the output). Note that Card #2 uses both ports.
nbhba -L
4 ports recognized; 3 target mode ports; mode : driver in nbhba mode
Card #1
HBA Index #1
Device ID = 2312
World Wide Name = 21:00:00:E0:8B:8F:E6:45
Model Name = "QLA2340 "
Port = 0
Mode = initiator (designated for other use)(100)
Card #2
HBA Index #2
Device ID = 2312
World Wide Name = 21:00:00:E0:8B:9A:22:3D
Model Name = "QLA2342 "
Port = 0
Mode = target (designated for FT Server)(8101)
Device ID = 2312
World Wide Name = 21:01:00:E0:8B:BA:22:3D
Model Name = "QLA2342 "
HBA Index #3
525
526
NetBackup Commands
nbhba
Port = 1
Mode = target (designated for FT Server)(8101)
Card #3
HBA Index #4
Device ID = 2422
World Wide Name = 21:00:00:E0:8B:9B:28:89
Model Name = "QLA2460 "
Port = 0
Mode = target (designated for FT Server)(8133)
Example 3 - This example is the short list type (-l) counterpart of Example 2 (long
list type -L). It lists only the drivers of all the HBA cards that are installed on the
system. Note that the first line of the output (4 ports recognized...) displays
only on a Linux system.
# nbhba -l
4 ports recognized; 3 target mode ports; mode : driver in nbhba mode
1
2
3
4
2312
2312
2312
2422
21:00:00:E0:8B:8F:E6:45
21:00:00:E0:8B:9A:22:3D
21:01:00:E0:8B:BA:22:3D
21:00:00:E0:8B:9B:28:89
"QLA2340
"QLA2342
"QLA2342
"QLA2460
"
"
"
"
0
0
1
0
0
1
1
1
100
8101
8101
8133
NetBackup Commands
nbjm
nbjm
nbjm run NetBackup Job Manager to submit jobs and acquire resources to start
jobs
SYNOPSIS
nbjm [-console] [-terminate]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The NetBackup Job Manager binary (nbjm) service starts when NetBackup is
started, and it remains active. The primary function of this binary is to accept the
jobs that nbpem submitted, acquire the resources to run them, and then start the
job. This service then waits for the completion of a job and sends a signal to nbpem
when a job completes. This service also handles all IRM communications to bpjobd
for Activity Monitor information, external resource requests, and it writes to the
progress log.
OPTIONS
-console
SEE ALSO
See nbpem on page 532.
See nbrb on page 538.
527
528
NetBackup Commands
nbkmsutil
nbkmsutil
nbkmsutil run the NetBackup Key Management Service utility
SYNOPSIS
nbkmsutil [-createkey] [-createkg] [-deletekey] [-deletekg]
[-gethmkid] [-getkpkid] [-ksstats] [-listkeys] [-listkgs] [-modifyhmk]
[-modifykey] [-modifykg] [-modifykpk] [-quiescedb] [-recoverkey]
[-unquiescedb]
nbkmsutil -createkey [ -nopphrase ] -kgname key_group_name -keyname
key_name [ -activate ] [ -desc description ]
nbkmsutil -createkg -kgname key_group_name [ -cipher type ] [ -desc
description ]
nbkmsutil -deletekey -keyname key_name -kgname key_group_name
nbkmsutil -deletekg -kgname key_group_name
nbkmsutil -gethmkid
nbkmsutil -getkpkid
nbkmsutil -ksstats [-noverbose]
nbkmsutil -listkeys key_group_name [ -keyname key_name | -activekey
] [ -verbose ]
nbkmsutil -listkgs [ -kgname key_group_name | -cipher type | -emptykgs
| -noactive ] [ -verbose ]
nbkmsutil -modifyhmk [ -nopphrase ]
nbkmsutil -modifykey -keyname key_name -kgname key_group_name [ -state
new_state | -activate ] [ -name new_keyname ] [ -desc new_description
]
nbkmsutil -modifykg -kgname key_group_name [ -name new_key_group_name
] [ -desc new_description ]
nbkmsutil -modifykpk [ -nopphrase ]
nbkmsutil -quiescedb
nbkmsutil -recoverkey -keyname key_name -kgnamekey_group_name -tag
key_tag [-desc description]
nbkmsutil -unquiescedb
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
NetBackup Commands
nbkmsutil
DESCRIPTION
The nbkmsutil command performs the following operations:
-createkey
Create a new key. The default state of the new key is Prelive.
-createkg
Create a new key group. The default cipher of the new key
group is AES_256.
-deletekey
-deletekg
-gethmkid
-getkpkid
-ksstats
-listkeys
-listkgs
-modifyhmk
-modifykey
-modifykg
-modifykpk
-quiescedb
529
530
NetBackup Commands
nbkmsutil
-recoverkey
-unquiescedb
OPTIONS
The nbkmsutil command uses the following options:
-activate
Sets the state of the specified key to active. The default state
is prelive.
-activekey
-cipher
The type of cipher that the key group supports. All keys that
belong to a key group support the same cipher type.
Supported cipher types are BLOW, AES_128, AES_192, and
AES_256 (default cipher).
-emptykgs
Retrieves the details of all the key groups with zero keys in
it.
-keyname
-kgname
-name
Specifies the new name of the key group when used with
-modifykg or the new name of the key when used with
-modifykey. The new key group name must not conflict with
other names in the keystore .
-noactive
-nopphrase
NetBackup Commands
nbkmsutil
-noverbose
-state
-tag
Prelive to Active
531
532
NetBackup Commands
nbpem
nbpem
nbpem run NetBackup Policy Execution Manager to schedule and submit the jobs
SYNOPSIS
nbpem [-console] [-terminate]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The NetBackup Policy Execution Manager (nbpem) is a service that starts when
NetBackup is started and remains active until NetBackup stops.
The nbpem command determines which jobs are due based on defined policies and
the previous backup images. nbpem creates Policy/Client tasks and determines
when jobs are due to run. If a policy is modified or if an image expires, it is notified
and the appropriate Policy/Client tasks are updated.
In addition, nbpem does the following:
Determines a policys priority that is based on how overdue the job is.
Ensures that the policies are scheduled within the windows in which they are
supposed to run.
Cancels the policies that are queued, late, or outside the parameters of the
scheduled window.
Handles any policy changes and then updates the policies that are due to run.
Initiates more attempts if a particular job stops part way through the backup.
OPTIONS
-console
NetBackup Commands
nbpem
SEE ALSO
See nbjm on page 527.
See nbrb on page 538.
See nbpemreq on page 534.
533
534
NetBackup Commands
nbpemreq
nbpemreq
nbpemreq run NetBackup Policy Execution Manager (PEM) Requisition to schedule
SYNOPSIS
nbpemreq -due -date mm/dd/yyyy HH:MM:SS [-client_filter
client...][-policy_filter policy...]
nbpemreq -due -dateu unixtime [-unixtime] [-client_filter
client...][-policy_filter policy...]
nbpemreq -jobs [screen] [-depth value] [all | job_id...]
nbpemreq -M servername...
nbpemreq -persisted [screen] [-depth value]
nbpemreq -policies [screen] [-depth value] [policy...]
nbpemreq -predict -date mm/dd/yyyy HH:MM:SS [-unixtime]
[-client_filter client...] [-policy_filter policy...]
nbpemreq -predict -dateu unixtime [-unixtime] [-client_filter
client...][-policy_filter policy...]
nbpemreq -predict_all -date mm/dd/yyyy HH:MM:SS [-client_filter
client...][-policy_filter policy...]
nbpemreq -predict_all -dateu unixtime [-client_filter
client...][-policy_filter policy...]
nbpemreq -resume_scheduling
nbpemreq -subsystems [screen] depth [list | all | subsystem_id...]
nbpemreq -suspend_scheduling
nbpemreq -updatepolicies
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The NetBackup Policy Execution Manager Requisition (nbpemreq) determines
which jobs are due in the near future. It also reads in all entered policy updates
that are in a pending state. Finally, nbpemreq gathers the pertinent nbpem
information that is placed in the nbpem log file and optionally displayed to stdout.
This command can also instruct nbpem to process policy updates immediately.
NetBackup Commands
nbpemreq
When the nbpemreq command runs, nbpem is affected, which slows down policy
processing. Because the nbpemreq output may change from release to release,
Symantec does not recommend using nbpemreq in scripts.
OPERATIONS
-due
Provides data about the clients or policies that are scheduled to run by the
time specified. The data that is displayed is based on the current time and a
future date. Time is indicated bymm/dd/yyyy HH:MM:SS or by a UNIX
timestamp.
-jobs
Provides nbpem information about the state of current jobs and jobs that have
run in the previous 30 minutes. nbpem manages all running jobs and keeps
history on each job for 30 minutes after the job completes.
-M servername...
Provides nbpem internal data about the specified policies that includes static
data from the policy definition and dynamic information about job scheduling.
-predict | -predict_all
535
536
NetBackup Commands
nbpemreq
-resume_scheduling
Suspends the nbpemreq scheduling activity. You can use this option to suspend
scheduled backups.
-updatepolicies
OPTIONS
all | job_id...
Specifies the level of detail to be produced for the various output options.
Depth is an integer value starting at zero (least amount of output) and goes
up (more output). The maximum depth value and the specific content of each
depth level varies from output option to output option. The information
differs from the information that is presented by using the -subsystems option.
depth value
NetBackup Commands
nbpemreq
screen
Sends the output to stdout. Command output is always directed to the log
files even if the screen option is not used. A maximum of 1 MB of data can
be written to stdout.
-unixtime
SEE ALSO
See nbpem on page 532.
537
538
NetBackup Commands
nbrb
nbrb
nbrb run NetBackup Resource Broker
SYNOPSIS
nbrb [-console] [-terminate]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The NetBackup Resource Broker binary (nbrb) is a service that starts when
NetBackup starts and remains active. This service makes the allocations for such
things as storage units, tape drives, and client reservations. This service works
closely with the EMM to obtain physical and logical the resources that a job
requires to run. Physical resources can be storage units, tape drives, and media
IDs. Logical resources can be named resources, max jobs per client, max jobs per
policy, and multiplexed groups as resources that nbjm uses.
OPTIONS
-console
SEE ALSO
See nbjm on page 527.
See nbpem on page 532.
NetBackup Commands
nbrbutil
nbrbutil
nbrbutil configures the NetBackup Resource Broker (nbrb)
SYNOPSIS
nbrbutil [-cancel GUID] [-changePriority requestID]
[-changePriorityClass requestID] [-changesettings name=value
[,name=value],...] [-deleteSetting settingname] [-disablePerfMon]
[-dump] [-dumptables -f filename] [-enablePerfMon] [-listActiveJobs]
[-listActiveDriveJobs] [-listActiveMediaJobs] [-listActivePoolJobs]
[-listActiveStuJobs] [-listOrphanedDrives] [-listOrphanedMedia]
[-listOrphanedPipes] [-listOrphanedStus] [-listSettings] [-release
GUID] [-resetAll] [-releaseAllocHolds] [-releaseDrive drive]
[-releaseMDS ID] [-releaseMedia mediaID] [-releaseOrphanedDrive
drivekey] [-releaseOrphanedMedia mediakey] [-releaseOrphanedPipes]
[-releaseOrphanedStu name] [-resetMediaServer mediaserver]
[-reportInconsistentAllocations] [-resume] [-setDriveGroupUnjoinable]
[-setMediaGroupUnjoinable] [-suspend] [-syncAllocations]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The NetBackup Resource Broker utility sets up the following Resource Broker
functionality:
List the allocations that the Resource Broker has handed out.
Release an allocation.
Display the jobs that use a particular resource (drive, media, storage unit)
539
540
NetBackup Commands
nbrbutil
OPTIONS
-cancel GUID
NetBackup Commands
nbrbutil
-deleteSetting settingname
Enables the Resource Broker (nbrb) to log its internal state in the specified
file name.
-enablePerfMon
541
542
NetBackup Commands
nbrbutil
-listActiveJobs
Lists all the active jobs for a storage unit or a storage unit group.
-listOrphanedDrives
Lists the drives that are reserved in EMM but have no corresponding allocation
in the Resource Broker.
-listOrphanedMedia
Lists the media that is reserved in EMM but has no corresponding allocation
in the Resource Broker.
-listOrphanedPipes
Lists the storage units that are reserved in EMM but have no corresponding
allocation in the Resource Broker.
-listSettings
Releases allocation holds caused by allocation errors for drives and media.
-releaseDrive drive
Releases the EMM and MDS allocations allocated by the MDS with the specified
identifier.
NetBackup Commands
nbrbutil
-releaseMedia mediaID
Releases drives that are reserved in EMM but have no corresponding allocation
in the Resource Broker.
-releaseOrphanedMedia mediakey
Releases media that are reserved in EMM but have no corresponding allocation
in the Resource Broker.
-releaseOrphanedPipes
Releases the storage units that are reserved in EMM but have no
corresponding allocation in the Resource Broker.
-resetMediaServer mediaserver
Resets all nbrb EMM and MDS allocations related toltid on the media server.
-reportInconsistentAllocations
Disables the future job from joining the group for this drive.
-setMediaGroupUnjoinable
Disables the future job from joining the group for this media.
-suspend
Synchs up any allocation difference between the Resource Broker and MDS.
SEE ALSO
See nbjm on page 527.
See nbpem on page 532.
543
544
NetBackup Commands
nbregopsc
nbregopsc
nbregopsc register OpsCenter
SYNOPSIS
nbregopsc -add | -addopscenter | -addnb OpsCenter_server_name]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The NetBackup installation procedure asks if you want to register an existing
OpsCenter with NetBackup. You need to enter the full pathname to execute the
OpsCenter server name as a command line option. The nbregopsc -add command
first adds the OpsCenter server name to bp.conf (CONFIG registry entry on
Windows) with a new entry OPS_CENTER_SERVER_NAME =
Opscenter_server_name. Later, the NetBackup master server name is registered
with the OpsCenter server. This command can be run after the NetBackup
installation to register OpsCenter and NetBackup servers with each other.
You can use the -addopscenter option to register OpsCenter with NetBackup
without registering NetBackup with OpsCenter. You can also use the -addnb option
to register NetBackup with OpsCenter without registering OpsCenter with
NetBackup.
The command does not allow multiple OPS_CENTER_SERVER_NAME entries in
bp.conf (or the registry), because NetBackup is limited in its ability to monitor
multiple OpsCenter servers. If you run this command with a different name, the
new name overwrites the existing entry of OPS_CENTER_SERVER_NAME.
In an OpsCenter cluster setup, the virtual server name is added to bp.conf (or the
registry).
OPTIONS
-add Opscenter_server_name
Registers NetBackup with the specified OpsCenter server and registers the
OpsCenter server with NetBackup.
-addopscenter Opscenter_server_name
NetBackup Commands
nbregopsc
-addnb Opscenter_server_name
545
546
NetBackup Commands
nbreplicate
nbreplicate
nbreplicate initiate replication on a storage server
SYNOPSIS
nbreplicate -backupid backup_id -Bidfile file_name -cn copy_number
-rcn replicate_copy_number -slp_name policy_type [-altreadhost
hostname] [-priority number] [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbreplicate command allows a copy of a backup to be created.
This command can be run only on the master server.
Use nbreplicate to create up to 10 copies of unexpired backups.
OPTIONS
-altreadhost hostname
Specify an alternate host from which to read the media. The default condition
is that bpreplicate reads the source media from the host that performed
the backup.
-backupid backup_id
Specifies the backup ID of a single backup to replicate or for which you can
change the primary copy.
-Bidfile file_name
NetBackup Commands
nbreplicate
-cn copy_number
Determines the copy number to duplicate. Valid values are 1 through 10. The
default is 1.
-primary means to search or duplicate the primary copy.
-priority number
Sets a backup policy to run at a lesser or a higher priority than disk staging
duplication.
-rcn replicate_copy_number
Selects the verbose mode. When you specify the debug logs or progress logs,
it includes more information.
EXAMPLES
Example 1 - List backups with a copy number of 1. They were backed up by the
policy that is named stdpol, and created between July 1, 2009, and August 1, 2009.
# nbreplicate
Example 2 - Create a duplicate copy of the backup IDs in file name plum. It
duplicates copy 1 to copy 5 on storage unit Tape_stu of pool NBU.
# nbreplicate -Bidfile plum dstunit Tape_stu -dp NBU -cn 1 -dcn 5
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/admin/*
/usr/openv/netbackup/db/images/*
Windows systems:
install_path\NetBackup\db\images\*
install_path\NetBackup\logs\admin\*
547
548
NetBackup Commands
nbstl
nbstl
nbstl add, delete, modify, or list NetBackup storage lifecycle policies
SYNOPSIS
nbstl storage_lifecycle_name [-add | -modify | -modify_current |
-modify_version] [-dc class] [-dp duplication_priority] [-version
version_number]
[-uf used_for1 [,used_for2,..used_forn]]
[-source source1[,source2,..sourcen]]
[-residence storage_unit1 | __NA__[,storage_unit2 |
__NA__,..storage_unitn | __NA__]]
[-pool volume_pool1 | __NA__[,volume_pool2 | __NA__,..volume_pooln
| __NA__]]
[-server_group host1 | __NA__[,host2 | __NA__,..hostn | __NA__]]
[-managed m1[,m2,..mn]]
[-rl retention_level1 [,retention_level2,...retention_leveln]]
[-as alt_read_server1 | __NA__ [,alt_read_server2 |
__NA__,...alt_read_servern | __NA__]]
[-mpx preserve_mpx1 | __NA__[,preserve_mpx2 | __NA__,...preserve_mpxn
| __NA__]] [-v] [-M master_server]
[-destpri priority1 [,priority2,...priorityn]]
nbstl storage_lifecycle_name -delete [-v] [-M master_server]
nbstl [storage_lifecycle_name] -L | -l | -b [-v] [-M master_server]
[-all_versions] [-version version_number]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbstl command can do the following:
-L or -l lists one or all storage lifecycles. -b lists the storage lifecycle policy
NetBackup Commands
nbstl
The nbstl command creates, modifies, or deletes all of the destinations at the
same time and does not support adding or modifying single destinations. To
change properties of one destination, all of the existing destinations must be
accounted for as well as the destination to be updated.
Many of the options that need to be entered for a destination may not be
applicable (NA). In that case, enter the value as __NA__ (double underscores
before and after NA). The following options accept __NA__ as a value:
-residence
-pool
-server_group
-mpx
OPTIONS
-all_versions
Displays all versions of the specified storage lifecycle policy or all storage
lifecycle policies if storage_lifecycle_name is not specified.
-b
Displays the name and version number of the specified storage lifecycle policy
or all storage lifecycle policies if storage_lifecycle_name is not specified.
-dc class
Specifies the numeric data classification that is associated with this service.
-delete
Specifies the duplication job priority that is associated with this Storage
Service.
storage_lifecycle_name
Displays the condensed output of the specified storage lifecycle policy, or all
storage lifecycle policies if storage_lifecycle_name is not specified. The output
contains only data for the storage lifecycle. It does not identify the name.
549
550
NetBackup Commands
nbstl
-L
Displays the long output of the specified storage lifecycle, or all storage
lifecycles if storage_lifecycle_name is not specified. It identifies the output
by name.
-M master_server
Specifies the NBU master server. The default is the local server.
-modify
Modifies the specified storage lifecycle policy. This option creates a new
version of the storage lifecycle policy. You can modify information such as
pool volume or retention level.
-modify_current
Modifies the current version of the storage lifecycle policy instead of creating
a new policy. This option cannot be used with the dc, -uf, -source, or
managed options.
-modify_version
Modifies the selected version (nn) of the storage lifecycle policy instead of
creating a new policy. This option cannot be used with the dc, -uf, -source,
or managed options.
-v
Displays only the specified version number (nn) of the storage lifecycle policy
or all storage lifecycle policies if storage_lifecycle_name is not specified.
The following destination options must all specify the same number of parameters,
one for each destination of the storage service. The resulting number of
destinations equals the number of parameters. The parameters are separated by
commas with no blank spaces between them.
-destpri priority1 [,priority2,...priorityn]]
Specifies the job priority for each storage lifecycle policy destination index.
This option can be used only for import destinations. All other destinations
must be set to 0.
-managed m,...
The capacity-managed flag for each destination. The possible values are the
following:
NetBackup Commands
nbstl
Sets the preserve multiplexing flag for duplication copies. This option is not
allowed for backup or snapshot copies. Settings in the policy host and storage
unit properties determine the backup copies multiplexed state. The flag is
only relevant for tape copies. The option is -mpx followed by a set of commas
that are separated by the following values:
Specifies the volume pool for each destination. Volume pools do not apply to
disk copies.
-residence storage_unit1 | __NA__[,storage_unit2 |
__NA__,..storage_unitn | __NA__]
The storage unit that is to be used for each destination. Storage units do not
apply to snapshot destinations (-uf option set to 2) or duplication to remote
master (-uf option set to 3).
-rl retention_level1 [,retention_level,...retention_level]
The alternate read server for each destination. Alternate read servers apply
only to duplication destinations.
-source source1[,source2,...sourcen]
551
552
NetBackup Commands
nbstl
Specifies when each destination is used. Use one of the following values:
0 - backup
1 - duplication
2 - snapshot
4 - import
EXAMPLES
Example 1 - List information on lifecycle1:
# nbstl lifecycle1 -L
Name:
Data Classification:
Duplication job priority:
State:
Destination 1
Use for:
Storage Unit:
Volume Pool:
Server Group:
Retention Type:
Retention Period:
Alternate Read Server:
Preserve Multiplexing:
State:
Source:
lifecycle1
Gold
0
active
backup
adv_dsu1
(none specified)
(none specified)
Fixed
1 (2 hours)
(none specified)
false
inactive
(client)
The storage unit named adv_dsu1 is inactive. Values for "State" in the -L display
are either active or inactive.
Example 2 - Create a lifecycle named HDLifecyle1. This lifecycle has a data
classification of Gold. It contains the following four destinations:
NetBackup Commands
nbstl
A backup destination (-uf value is 0) with storage unit AdvDisk1 which does
not require any source (-source value is 0).
553
Example 3 - Create a lifecycle that does snapshot with backup to disk and then
duplication to tape. The disk storage unit is DskSTU and the tape storage unit is
TpSTU.
# nbstl LCPolicy -dc Gold -uf 0,1,2 -residence DskStU,TpSTU,__NA__
-pool NetBackup,DLP_Pool1,__NA__ -managed 0,0,0 -rel 6,12,1
Example 4 - Change the retention level for existing version 4 of the lifecycle:
# nbstl LCPolicy -modify_version -version 4 -rl 4,6,7,7
The storage lifecycle policy must have four destinations previously defined.
Example 5 - List the condensed contents of version 2 of LCPolicy:
# nbstl LCPolicy -l -version 2
Example 6 - Change the fields in the current version of the storage lifecycle policy
SLP8:
# nbstl SLP8 -modify_current -pool Pool1,Pool2,Pool3 -as __NA__,
AltReadServer2,__NA__ -mpx F,F,T
554
NetBackup Commands
nbstl
SEE ALSO
See nbdc on page 459.
See nbstlutil on page 555.
NetBackup Commands
nbstlutil
nbstlutil
nbstlutil run the NetBackup storage lifecycle policies utility
SYNOPSIS
nbstlutil active | inactive [-wait | -force] [[-lifecycle name
[-destination name] | -backupid value]
nbstlutil cancel [-wait | -force] [[-lifecycle name [-destination
name] [-version number] [-nowarn]] | -backupid value]
nbstlutil diskspaceinfo [-stype name]
nbstlutil list [-l | -U | -b] [-rt I | IC | ICF] [-lifecycle name
[-version number] [-destination name] | -lifecycle_only | -backupid
value] [-client name] [-mediaid value] [-mediaserver name]
[-storageserver name] [-image_state value] | -copy_state value |
-frag_state value | -image_incomplete | -image_inactive |
-copy_incomplete | -copy_inactive] [-copy_type value]
nbstlutil pendimplist
nbstlutil repllist [-l] [-U] [-sincetime timeval]
nbstlutil report [-lifecycle name [-version number]] [-client name]
[-mediaid value] [-mediaserver name] [-storageserver name]
nbstlutil stlilist [-l] [-U] [[[-lifecycle name] [-destination name]]
| -backupid value] [-client name] [-mediaid value] [-mediaserver
name] [-storageserver name] [-image_state value | -image_incomplete
| -image_inactive] [-copy_type value]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbstlutil command provides a way for users to intervene in storage lifecycle
operations. The following are the utility functions:
active
555
556
NetBackup Commands
nbstlutil
copies that are bound for the named destination regardless of lifecycle policy.
Any new work that shows up afterwards is processed normally.
diskspaceinfo
Reports on the space that are used by all disk volumes or only the disk volumes
that the specified type uses.
inactive
Shows the contents of an image list (EMM database). The tables can be listed
that hold the information about the images that lifecycles process. This option
is primarily a debugging tool, but support may use the information to
troubleshoot problems.
Note: When you upgrade to NetBackup 7.1, only the first backup copy is
marked as copy type 0 (backup). All other copies in the storage lifecycle policy
are marked as copy type 1 (duplicate).
pendimplist
OPTIONS
-b
Lists the storage lifecycle policy names and their version numbers.
-backupid value
Restricts the listing of images for storage lifecycle operations to only those
on the client that is specified by name.
NetBackup Commands
nbstlutil
-copy_inactive value
Selects the images for which one or more copies are marked as inactive in
the EMM database. This option is used primarily for debugging.
-copy_incomplete value
Selects the images for which one or more copies are not marked as duplication
complete in the EMM database. This option is used for debugging.
-copy_state value
Selects the images with the specified copy state in the EMM database. This
option is used primarily for debugging. Valid values for copy state are as
follows:
1 - NOT_STARTED
2 - IN_PROCESS
3 - COMPLETE
9 - NOT_STARTED | INACTIVE
10 - IN_PROCESS | INACTIVE
-copy_type value
Selects a copy type filter for the list commands (list and stlilist). Valid
values are the following:
0 - Backup
1 - Duplication
2 - Snapshot
4 - Import
-destination name
Selects the images that are scheduled to be duplicated to the storage unit or
storage unit group that is specified by name.
-force
Selects the images with the specified fragment state in the EMM database.
This option is used for debugging. Valid values for frag state are as follows:
1 - ACTIVE
2 - TO_BE_DELETED
557
558
NetBackup Commands
nbstlutil
3 - ELIGIBLE_FOR_EXPIRATION
-image_inactive value
Selects the images that are marked as inactive in the EMM database. This
option is used for debugging.
-image_incomplete value
Selects the images that are not marked as lifecycle complete in the EMM
database. This option is used for debugging.
-image_state value
Selects the images with the specified image state in the EMM database. This
option is used primarily for debugging. The valid values for image state are
as follows:
1 - NOT_STARTED
2 - IN_PROCESS
3 - COMPLETE
9 - NOT_STARTED | INACTIVE
10 - IN_PROCESS | INACTIVE
-l
Restricts the listing of images for storage lifecycle operations to only those
on the media ID that value specifies.
-mediaserver name
Restricts the listing of images for storage lifecycle operations to only those
on the media that name specifies.
-nowarn
NetBackup Commands
nbstlutil
559
-sincetime timeval
Shows the status of completed replication copies from the specified timeval
to the present. This option is used with the repllist function.
-state value
Selects a state field that value specifies in the EMM database. This option is
used primarily for debugging.
-storageserver name
Restricts the listing of images for storage lifecycle operations to only those
on the storage server that name specifies.
-stype name
Specifies the disk space type to be reported on. Variable name can be
AdvancedDisk, SharedDisk, NearStore, PureDisk, or a vendor-supplied
OpenStorage name.
-U
EXAMPLE
EXAMPLE 1
The following command displays the information about a lifecycle in-process
image.
# nbstlutil -list -backupid
Image:
Master Server
:
Backup ID
:
Client
:
Backup Time
:
Policy
:
Client Type
:
Schedule Type
:
Storage Lifecycle Policy :
Storage Lifecycle State :
Time In Process
:
Data Classification ID
:
dollhouse_1287744229 -U
dollhouse
dollhouse_1287744229
dollhouse
1287744229 (Fri Oct 22 16:13:49 2010)
pol-slp-2bkup-70-level
13
0
slp-pol-2backup-70-level
3 (COMPLETE)
1287744327 (Fri Oct 22 16:15:27 2010)
85AA96DF9781453289A41745DD240A48 (Platinum)
560
NetBackup Commands
nbstlutil
Version Number
OriginMasterServer
OriginMasterServerID
Import From Replica Time
Required Expiration Date
Created Date Time
Copy:
Master Server
Backup ID
Copy Number
Copy Type
Expire Time
Expire LC Time
Try To Keep Time
Residence
Copy State
Job ID
Retention Type
MPX State
Source
Destination ID
Last Retry Time
Fragment:
Master Server
Backup ID
Copy Number
Fragment Number
Resume Count
Media ID
Media Server
Storage Server
Media Type
Media Sub-Type
Fragment State
Fragment Size
Delete Header
Fragment ID
Copy:
Master Server
Backup ID
:
:
:
:
:
:
0
(none specified)
00000000-0000-0000-0000-000000000000
0 (Thu Jan 01 05:30:00 1970)
0 (Thu Jan 01 05:30:00 1970)
1287744297 (Fri Oct 22 16:14:57 2010)
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
dollhouse
dollhouse_1287744229
1
0
1288953829 (Fri Nov 05 16:13:49 2010)
1288953829 (Fri Nov 05 16:13:49 2010)
1288953829 (Fri Nov 05 16:13:49 2010)
PDDE-Stu
3 (COMPLETE)
0
0 (FIXED)
0 (FALSE)
0
*NONE*
0
:
:
:
:
:
:
:
:
:
:
:
:
:
:
dollhouse
dollhouse_1287744229
1
1
0
@aaaad
dollhouse
(none specified)
0 (DISK)
6 (STSDYNAMIC)
1 (ACTIVE)
5120
1
@aaaad
: dollhouse
: dollhouse_1287744229
NetBackup Commands
nbstlutil
Copy Number
Copy Type
Expire Time
Expire LC Time
Try To Keep Time
Residence
Copy State
Job ID
Retention Type
MPX State
Source
Destination ID
Last Retry Time
:
:
:
:
:
:
:
:
:
:
:
:
:
2
1
1288953829 (Fri Nov 05 16:13:49 2010)
1288953829 (Fri Nov 05 16:13:49 2010)
1288953829 (Fri Nov 05 16:13:49 2010)
adv-dsk-stu
3 (COMPLETE)
0
0 (FIXED)
0 (FALSE)
0
*NONE*
0
Fragment:
Master Server
Backup ID
Copy Number
Fragment Number
Resume Count
Media ID
Media Server
Storage Server
Media Type
Media Sub-Type
Fragment State
Fragment Size
Delete Header
Fragment ID
:
:
:
:
:
:
:
:
:
:
:
:
:
:
dollhouse
dollhouse_1287744229
2
1
0
@aaaab
dollhouse
(none specified)
0 (DISK)
6 (STSDYNAMIC)
1 (ACTIVE)
5120
1
@aaaab
EXAMPLE 2
The following command displays the information for a lifecycle incomplete image.
# nbstlutil list -l
V7.0 I abc.min.veritas.com
1225727 *NULL*
V7.0 C abc.min.veritas.com
V7.0 F abc.min.veritas.com
32768 1 @ab
V7.0 C abc.min.veritas.com
abc_1225727 1
abc_1225727 1
abc_1225727 2
561
562
NetBackup Commands
nbstlutil
EXAMPLE 3
The following command displays the information for an incomplete lifecycle
image.
# nbstlutil stlilist -U
Image abc_1225727928 for Lifecycle SLP_Test1 is IN_PROCESS
Copy to abc-tape1 is IN_PROCESS
Copy to AdvDisk3 is NOT_STARTED
EXAMPLE 4
The following command displays the information for an incomplete lifecycle
image.
# nbstlutil stlilist -l
V6.5 I abc_1225727928 SLP_Test1 2
V6.5 C abc-tape1 2
V6.5 C AdvDisk3 1
NetBackup Commands
nbsu
nbsu
nbsu run the NetBackup Support Utility
SYNOPSIS
nbsu [-c] [-d diag] [-debug] [-ftp ###-###-###] [-ftp_host host]
[-ftp_incoming destination] [-ftp_pass password] [-ftp_user user]
[-g diag_group] [-h] [-H] [-i] [-l] [-L] [-mm_e ###] [-nbu_down]
[-nbu_e ###] [-no_nbu] [-nozip] [-r NBU_host_role] [-s diag_group]
[-t] [-use_reg_cmd [32 | 64]] [-v] [-xml]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/support/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\support\
DESCRIPTION
The nbsu command is a Symantec utility that gathers a wide range of diagnostic
information. By default, nbsu gathers the appropriate diagnostic information that
is based on the operating system and NetBackup environment. Several command
line options enable the diagnostic information that is gathered to be customized
as desired.
If necessary, create a bundled support package. nbsu creates the following nbsu
and output directories:
/usr/openv/netbackup/bin/support/nbsu
/usr/openv/netbackup/bin/support/output/nbsu
PREREQUISITES
The following items are needed before you can use the nbsu command:
nbsu is designed for use with NetBackup version 3.4 and greater.
If you use the -no_nbu command line option, nbsu can be run without
NetBackup installed.
For nbsu to create a support package (if required), the path to the tar and gzip
programs must be included in the $PATH (UNIX) environment variable. If gzip
is not available, the utility uses the compress program, if available.
563
564
NetBackup Commands
nbsu
Use the -nbu_down option to select only diagnostics that do not use any
NetBackup or media manager commands.
PROGRAM USAGE
Consider the following items when you program using the nbsu command:
With no command line options, nbsu selects all appropriate diagnostics to run
and gather information.
To view a list of the diagnostic commands that nbsu selects, run nbsu with the
-l command line option.
Use the appropriate command line options for the following items:
OPTIONS
-c
Runs only the diagnostic command or procedure listed. For a list of diagnostic
commands or procedures, run nbsu with the -l command line option. Multiple
-d options may appear in the list. For example:
UNIX and Linux systems: -d OS_general -d OS_env
Windows systems: -d OS_general -d OS_set
-debug
Runs nbsu in debug mode. Debug mode places additional program information
into the file.
-ftp ###-###-###
NetBackup Commands
nbsu
Specifies the host to use with the FTP operation. This option must be used
with -ftp_incoming, -ftp_pass, and -ftp_user command line options to
designate the destination host for the FTP support bundle. It cannot be used
with the -ftp or -nozip options.
-ftp_incoming destination
Specifies an incoming destination to use with the FTP operation. This option
must be used with -ftp_host, -ftp_pass, and -ftp_user command line options
to designation location for the FTP support bundle. It cannot be used with
the -ftp or -nozip options.
-ftp_pass password
Specifies the password to use for the FTP operation. This option must be used
with the -ftp or -ftp_host option. It cannot be used with the -nozip option
-ftp_user user
Specifies the username to use for the FTP operation. This option must be
used with the -ftp or -ftp_host option. It cannot be used with the -nozip option
This option cannot be used with the -ftp_host, -ftp_incoming, or -nozip
command line options.
-g group_name
Runs only the diagnostic commands or procedures that are related to the
group name. Diagnostic groups are "OS", "DEV", "NET", "NBU", and "MM".
Multiple -g options may be listed. For example:
-g OS -g DEV
-h
Lists the diagnostic commands to be selected to run. Use with other command
line options to display the appropriate diagnostic commands or procedures.
565
566
NetBackup Commands
nbsu
-L
Lists all of the nbsu 1.0 diagnostics and commands. Can be used to output a
detailed report of each diagnostic to STDOUT. Includes the selection criteria
and commands to be executed.
-mm_e ###
Runs only the diagnostic commands or procedures that are related to the
Media Manager exit status. Multiple -mm_e options may be listed. For example:
-mm_e 12 -mm_e 20
-nbu_down
Runs only the diagnostic commands or procedures that do not make use of
NetBackup or Media Manager commands. This command line option selects
DEV, NET, and OS diagnostics and a subset of NBU and MM diagnostics.
-nbu_e ###
Runs only the diagnostic commands or procedures that are related to the
NetBackup exit status. Multiple -nbu_e options may be listed. For example:
-nbu_e 25 -nbu_e 41
-no_nbu
Runs only the diagnostic commands or procedures that are related to the
NetBackup host role. The following are the accepted host role parameter
abbreviations:
ma = Master server
me = Media server
d_me = Disk media server
t_me = Tape media server
cl = Client
emm = EMM server
gdm = Global Domain Manager
rah = Remote Administration Host
NetBackup Commands
nbsu
-r ma -r cl
-s name
Runs only the diagnostic commands or procedures that are related to the
NetBackup troubleshooting.
-use_reg_cmd [32 | 64]
EXAMPLES
Example 1 - List the diagnostics to be selected to run on a NetBackup node:
# nbsu -l
Example 3 - Select the network group of diagnostics to run, but skip the
NET_etc_hosts diagnostic:
# nbsu -g NET -s NET_etc_hosts
Example 4 - Select the diagnostics that are associated with the NetBackup exit
status code 41:
# nbsu -nbu_e 41
567
568
NetBackup Commands
nbsu
Example 5 - List the diagnostics that would be selected to run for the network
diagnostic groups and operating system diagnostic groups on a NetBackup node:
# nbsu -l -g NET -g OS
Example 6 - Select an individual diagnostic command to run and to not zip the
resulting support bundle:
# ./nbsu -d NBU_version -nozip
Example 8 - Select the diagnostics that are associated with the NetBackup exit
status codes 21, 25, and 41:
# .nbsu -nbu_e 21 -nbu_e 25 -nbu_e 41
NetBackup Commands
nbsvrgrp
nbsvrgrp
nbsvrgrp manage server groups
SYNOPSIS
nbsvrgrp -add -grpname name [-M master_name] -server
s1:t1:s2:t2:s3:t3...sN:tN -grptype MediaSharing | NOM |
AltServerRestore [-grpstate ACTIVE | INACTIVE] -description text
nbsvrgrp -update -grpname name [-M master_name] [-addsvr
s1:t1:s2:t2:s3:t3...sN:tN] [-remsvr s1:t1:s2:t2:s3:t3...sN:tN]
[-grptype MediaSharing | NOM | AltServerRestore] [-grpstate ACTIVE
| INACTIVE] [-description text]
nbsvrgrp -delete -grpname name [-M master_name]
nbsvrgrp -list [-M master_name] [-grptype MediaSharing | NOM |
AltServerRestore] [-grpname name] [-grpstate ACTIVE | INACTIVE]
[-summary | -verbose | -noverbose]
nbsvrgrp -list_machine_membership [-M master_name] -m machine_name
[-t machine_type] [-summary | -verbose | -noverbose]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The nbsvrgrp command adds, changes, deletes, or lists server groups.
Any authorized user can run nbsvrgrp.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-add
569
570
NetBackup Commands
nbsvrgrp
-change
Deletes a server group. This operation fails if it is a Media Sharing Group and
media is assigned to the group.
-description text
Describes the server group. Use double quote marks if the description contains
any spaces.
-grpname name
Specifies the human readable name that is given to a server group. This name
is case sensitive. It may only contain the characters a-z, A-Z, 0-9, plus(+),
minus(-), underscore(_), and period(.).
-grptype type
Specifies the group type that is used to designate the purpose of a server
group. The current list of group types is MediaSharing, NOM, and
AltServerRead.
-grpstate ACTIVE | INACTIVE
Sets or changes the state of a server group. Allowable states are ACTIVE and
INACTIVE.
-list [-summary | -verbose | -noverbose]
Lists the information about all server groups. The -summary option specifies
a brief format for the server group information. The -verbose option specifies
a detailed format for the server group information. The -noverbose option
specifies a parsable format for the server group information.
-list_machine_membership [-summary | -verbose | -noverbose]
Lists the server groups in which a named machine has membership. The
-summary option specifies a brief format for the server group information.
The -verbose option specifies a detailed format for the server group
information. The -noverbose option specifies a parsable format for the server
group information.
-m machine_name
NetBackup Commands
nbsvrgrp
-server s1:t1:s2:t2:s3:t3...sN:tN
Specifies a list of server (s1, s2,...) and server type (t1, t2,...) pairs to be
configured in the server group. Examples of server types are master, media,
and ndmp.
-t machine_type
The machine type that corresponds to the machine that is named in the -m
option. Examples include master, media server, and ndmp.
NOTES
nbsvrgrp provides only limited validation of the option parameters.
EXAMPLES
Example 1 - Add a new media sharing server group that is called MyServerGroup,
with media servers larry and moe, and ndmp filer myfiler:
# nbsvrgrp -add -grpname MyServerGroup -server
larry:media:moe:media:myfiler:ndmp -grptype MediaSharing -grpstate
ACTIVE -description "my description with spaces"
571
572
NetBackup Commands
restoretrace
restoretrace
restoretrace consolidate debug logs for a restore job
SYNOPSIS
restoretrace [-master_server name] [-job_id number] [-client_name
name] [-start_time hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy ...]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The restoretrace utility consolidates the debug logs for the specified restore
jobs. It copies to standard output the debug log lines relevant to the specified
restore jobs. The messages sort by time. The utility tries to compensate for time
zone changes and clock drift between remote servers and clients. The output is
formatted to easily sort or group by timestamp, program name, server, or function
for the following: bprd on the master server, bpbrm and bptm-bpdm on the media
server, and tar on the client. For best results, set the verbose logging level to 5.
Enable debug logging for bpdbm on the master server and for bpcd on all servers
and clients in addition to already identified processes.
You must have administrator privileges to run this command.
OPTIONS
-master_server name
NetBackup Commands
restoretrace
mmddyy [mmddyy...]
One or more day stamps that identify the log file names (log.mmddyy for
UNIX and Linux, and mmddyy.log for Windows) that are analyzed.
NOTES
Media Manager logs are not analyzed.
EXAMPLE
UNIX and Linux systems:
/usr/openv/netbackup/bin/admincmd/restoretrace -job_id 234
081302 log.234
Windows systems:
C:\Program Files\VERITAS\NetBackup\bin\admincmd\restoretrace
client peony install_path C:\Program Files\VERITAS 071502
log.peony
When you initiate the utility, it consolidates debug logs for all the restore jobs for
the client peony on 071502. Use the start_time/end_time arguments to limit the
window for the jobs are to be evaluated.
573
574
NetBackup Commands
tl4d
tl4d
tl4d Tape library 4MM (TL4) daemon (UNIX and Linux) or process (Windows)
SYNOPSIS
tl4d [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tl4d interfaces with Media Manager to mount and unmount tapes in a tape library
NetBackup Device Manager service on Windows systems. ltid starts tl4d if the
Media and Device Management of the Administration Console shows drives in
the robot. Stopping ltid stops tl4d.
UNIX and Linux systems: You can stop or start tl4d independently of ltid by
using /usr/openv/volmgr/bin/vmps or your servers ps command to identify the
tl4d process ID. Then enter the following commands:
kill tl4d_pid
/usr/openv/volmgr/bin/tl4d [-v] &
tl4d communicates with the robotics through a SCSI interface. When the
connection is established (the path for robotics can be opened), tl4d puts the TL4
robot in the UP state. It then can mount and unmount tapes. If the robotics are
inaccessible, tl4d changes the robot to the DOWN state. In this state, tl4d is still
running and returns the robot to the UP state if it is able to make a connection.
Before you access any tapes, must define the following information: the media ID
and slot number information for 4-mm tapes in a robot in the Enterprise Media
Manager Database.
If a cleaning volume is used, it must be defined in the volume configuration. See
tpclean for information on setting the frequency to clean the drive automatically.
On UNIX and Linux systems, the Internet service port number for tl4d must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
NetBackup Commands
tl4d
OPTIONS
-v
This option applies only to UNIX and Linux systems. It logs debug information
using syslogd. If you start ltid with -v, tl4d also starts with -v.
ERRORS
UNIX and Linux systems:
tl4d returns an error message if a copy of tl4d is in operation.
Media Manager logs any tape library 4MM and robotic errors to syslogd. Log
entries are also made when the state changes between UP and DOWN.
Windows systems:
Media Manager logs any tape library 4MM and robotic errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
SEE ALSO
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
syslogd
See vmadm on page 661.
575
576
NetBackup Commands
tl8d
tl8d
tl8d Tape library 8MM (TL8) daemon (process)
SYNOPSIS
tl8d [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tl8d interfaces with Media Manager to mount and unmount volumes in a Tape
NetBackup Device Manager service on Windows systems. t18d runs on each host
with a drive connection and sends mount and unmount requests to the control
daemon.
On UNIX and Linux systems, tl8d automatically starts and stops when ltid is
started and stopped. To stop or start tl8d independently of ltid, use
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the tl8d
process ID. Then enter the following commands:
kill tl8d_pid
/usr/openv/volmgr/bin/tl8d [-v] &
The control daemon, tl8cd, is on the host that has the robotic control. tl8d on
that host starts it (see EXAMPLES).
On Windows systems, tl8d is started when the NetBackup Device Manager service
is started. They are stopped when this service is stopped. The control process,
tl8cd, is on the host that has the robotic control. tl8d starts it automatically on
that host (see EXAMPLES). tl8cd stops when you stop the NetBackup Device
Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tl8d, and tl8cd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database.
NetBackup Commands
tl8d
The Device Configuration Wizard (if the robotic library and drives support
serialization).
The robotic test utility, or experiment by mounting media and then watch the
operator display.
On UNIX and Linux systems, the Internet service port number for tl8cd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the
/usr/openv/volmgr/database/ports/tl8cd file with a single line that contains
the service port number for tl8cd.
On Windows systems, the Internet service port number for tl8cd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tl8cd file with a single line
that contains the service port number for tl8cd.
The default service port number is 13705.
The following items apply only to NetBackup Enterprise Server:
Tape library 8MM robotic control software permits drives in the same robot
to be configured on different hosts. tl8cd may be running on a different host
than tl8d, depending on where the SCSI connection resides (see EXAMPLES).
When the connection is established (the path for robotics can be opened), tl8d
puts the TL8 robot in the UP state. It then can mount and unmount volumes.
If the robotics are inaccessible, tl8d changes the robot to the DOWN state. In
this state, tl8d is still running and returns the robot to the UP state if tl8cd
is able to make a connection.
577
578
NetBackup Commands
tl8d
OPTIONS
The following options operate only on UNIX and Linux systems.
-v
Logs debug information using syslogd. If you start ltid with -v, tl8d and
tl8cd are also started with -v.
ERRORS
UNIX and Linux systems:
tl8d logs error messages if a copy of the daemon is running.
Media Manager logs any tape library 8MM and robotic errors to syslogd. Log
entries are also made when the state changes between UP and DOWN.
Windows systems:
Media Manager logs any tape library 8MM and robotic errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
EXAMPLES
Example 1 - In the following diagram, the drives and the robotics are connected
to a single host. ltid initiates tl8d, which in turn initiates tl8cd.
Figure A-1
Host A
ltid
lt8d
lt8cd
SCSI
Robotics
drive 1
drive 2
NetBackup Commands
tl8d
In the following diagram, each host is connected to one drive in the robot and the
robotics are connected to host A. ltid on each host initiates tl8d. The tl8d on
host A also initiates tl8cd, since that is where the robotic control is defined.
Requests to mount tapes from host B go to tl8d on host B, which sends the robotic
command to tl8cd on host A.
Figure A-2
Host A
TL8 Robot
ltid
tl8d
tl8cd
Host B
ltid
tl8d
Robotics
SCSI
drive 1
drive 2
SCSI
579
580
NetBackup Commands
tl8cd
tl8cd
tl8cd Tape library 8MM (TL8) control daemon (process)
SYNOPSIS
tl8cd [-v] [-t] [-n]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tl8d and tl8cd interface with Media Manager to mount and unmount volumes
NetBackup Device Manager service on Windows systems. t18d runs on each host
with a drive connection and sends mount and unmount requests to the control
daemon (tl8cd). tl8cd communicates with the robotics through a SCSI interface.
On UNIX and Linux systems, tl8d and tl8cd automatically start and stop when
ltid is started and stopped. To stop or start tl8d independently of ltid, use
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the tl8d
process ID. Then enter the following commands:
kill tl8d_pid
/usr/openv/volmgr/bin/tl8d [-v] &
The control daemon, tl8cd, is on the host that has the robotic control. tl8d on
that host starts it (see EXAMPLES).
On Windows systems, tl8d and tl8cd are started when the NetBackup Device
Manager service is started. They are stopped when this service is stopped. The
control process, tl8cd, is on the host that has the robotic control. tl8d starts it
automatically on that host (see EXAMPLES). tl8cd stops when you stop the
NetBackup Device Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tl8d, and tl8cd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database.
NetBackup Commands
tl8cd
The Device Configuration Wizard (if the robotic library and drives support
serialization).
The robotic test utility, or experiment by mounting media and then watch the
operator display.
On UNIX and Linux systems, the Internet service port number for tl8cd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the
/usr/openv/volmgr/database/ports/tl8cd file with a single line that contains
the service port number for tl8cd.
On Windows systems, the Internet service port number for tl8cd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tl8cd file with a single line
that contains the service port number for tl8cd.
The default service port number is 13705.
The following items apply only to NetBackup Enterprise Server:
Tape library 8MM robotic control software permits drives in the same robot
to be configured on different hosts. tl8cd may be running on a different host
than tl8d, depending on where the SCSI connection resides (see EXAMPLES).
When the connection is established (the path for robotics can be opened), tl8d
puts the TL8 robot in the UP state. It then can mount and unmount volumes.
If the robotics are inaccessible, tl8d changes the robot to the DOWN state. In
this state, tl8d is still running and returns the robot to the UP state if tl8cd
is able to make a connection.
581
582
NetBackup Commands
tl8cd
OPTIONS
The following options operate only on UNIX and Linux systems.
-v
Logs debug information using syslogd. If you start ltid with -v, tl8d and
tl8cd are also started with -v.
-t
Terminates tl8cd.
-n
Causes tl8cd to run with the barcode check function disabled. This option
is useful if all or most of the volumes in the library do not contain bar codes.
With no bar codes, it takes the robot less time to scan volumes.
Note that if the volumes contain bar codes and the -n option is selected, the
bar codes are ignored.
ERRORS
UNIX and Linux systems:
tl8d and tl8cd both log error messages if a copy of the daemon is running.
Media Manager logs any tape library 8MM and robotic errors to syslogd. Log
entries are also made when the state changes between UP and DOWN.
Windows systems:
Media Manager logs any tape library 8MM and robotic errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
EXAMPLES
Example 1 - In the following diagram, the drives and the robotics are connected
to a single host. ltid initiates tl8d, which in turn initiates tl8cd.
NetBackup Commands
tl8cd
Figure A-3
Host A
TL8 Robot
ltid
lt8d
lt8cd
Robotics
drive 1
SCSI
drive 2
Example 2 - The following example applies only to NetBackup Enterprise Server:
In the following diagram, each host is connected to one drive in the robot and the
robotics are connected to host A. ltid on each host initiates tl8d. The tl8d on
host A also initiates tl8cd, since that is where the robotic control is defined.
Requests to mount tapes from host B go to tl8d on host B, which sends the robotic
command to tl8cd on host A.
Figure A-4
Host A
TL8 Robot
ltid
tl8d
tl8cd
Host B
ltid
tl8d
Robotics
SCSI
drive 1
drive 2
SEE ALSO
See tpclean on page 606.
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
See vmadm on page 661.
syslogd
SCSI
583
584
NetBackup Commands
tldd
tldd
tldd Tape library DLT (TLD) daemon/process or control daemon/process.
SYNOPSIS
tldd [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tldd and tldcd interface with Media Manager to mount and unmount volumes
TLD robotic control software permits drives in the same robot to be configured
on different hosts. tldcd may be running on a different host than tldd,
depending on where the interface connection resides (see EXAMPLES). When
the connection is established (the path for robotics can be opened), tldd puts
the TLD robot in the UP state. It then can mount and unmount volumes. If the
robotics are inaccessible, tldd changes the robot to the DOWN state. In this
state, tldd is still running and returns the robot to the UP state if tldcd is able
to make a connection.
On UNIX and Linux systems, tldd and tldcd automatically start and stop when
ltid is started and stopped. To stop or start tldd independently of ltid, use
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the tldd
process ID. Then enter the following commands:
kill tldd_pid
/usr/openv/volmgr/bin/tldd [-v] &
NetBackup Commands
tldd
The control daemon, tldcd, is on the host that has the robotic control. tldd on
that host automatically starts it (see EXAMPLES).
On Windows systems, tldd and tldcd are started when the NetBackup Device
Manager service is started. They are stopped when this service is stopped. The
control process, tldcd, is on the host that has the robotic control. tldd starts it
automatically on that host (see EXAMPLES). tldcd stops when you stop the
NetBackup Device Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tl8d, and tl8cd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database.
If a cleaning volume is used, it must be defined in the volume configuration. See
tpclean for information on setting the frequency to clean the drive automatically.
The drives are logically numbered 1 through n, where n is the number of drives
in the robotic library. Use one or more of the following to determine the correct
robot drive numbers:
The Device Configuration Wizard (if the robotic library and drives support
serialization).
The robotic test utility, or experiment by mounting media and watch the
operator display.
On UNIX and Linux systems, the Internet service port number for tldcd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the
/usr/openv/volmgr/database/ports/tldcd file with a single line that contains
the service port number for tldcd.
On Windows systems, the Internet service port number for tldcd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tldcd file with a single line
that contains the service port number for tldcd.
The default service port number is 13711.
You must have administrator privileges to run this command.
OPTIONS
The following options operate only on UNIX and Linux systems.
585
586
NetBackup Commands
tldd
-v
Logs debug information using syslogd. If you start ltid with -v, tldd and
tldcd are also started with -v.
ERRORS
Media Manager logs any tape library DLT and robotic errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
tldd and tldcd log an error message if another copy of the daemon is in operation.
Media Manager logs any tape library DLT and robotic errors to syslogd. Log
entries are also made when the state changes between UP and DOWN.
EXAMPLES
Example 1 - In the following diagram, the two drives and the robotics connect to
Host A. ltid initiates tldd, which in turn initiates tldcd.
Figure A-5
Host A
ltid
tldd
tldcd
Robotics
SCSI
drive 2
drive 1
NetBackup Commands
tldd
Figure A-6
Host A
TLD Robot
ltid
tldd
tldcd
Host B
ltid
tldd
Robotics
SCSI
drive 3
drive 2
drive 1
SEE ALSO
See tldcd on page 588.
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
syslogd
See vmadm on page 661.
SCSI
587
588
NetBackup Commands
tldcd
tldcd
tldcd Tape library DLT (TLD) control daemon/process
SYNOPSIS
tldcd [-v] [-t]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tldd and tldcd interface with Media Manager to mount and unmount volumes
TLD robotic control software permits drives in the same robot to be configured
on different hosts. tldcd may be running on a different host than tldd,
depending on where the interface connection resides (see EXAMPLES). When
the connection is established (the path for robotics can be opened), tldd puts
the TLD robot in the UP state. It then can mount and unmount volumes. If the
robotics are inaccessible, tldd changes the robot to the DOWN state. In this
state, tldd is still running and returns the robot to the UP state if tldcd is able
to make a connection.
On UNIX and Linux systems, tldd and tldcd automatically start and stop when
ltid is started and stopped. To stop or start tldd independently of ltid, use
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the tldd
process ID. Then enter the following commands:
kill tldd_pid
/usr/openv/volmgr/bin/tldd [-v] &
NetBackup Commands
tldcd
The control daemon, tldcd, is on the host that has the robotic control. tldd on
that host automatically starts it (see EXAMPLES).
On Windows systems, tldd and tldcd are started when the NetBackup Device
Manager service is started. They are stopped when this service is stopped. The
control process, tldcd, is on the host that has the robotic control. tldd starts it
automatically on that host (see EXAMPLES). tldcd stops when you stop the
NetBackup Device Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tl8d, and tl8cd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database.
If a cleaning volume is used, it must be defined in the volume configuration. See
tpclean for information on setting the frequency to clean the drive automatically.
The drives are logically numbered 1 through n, where n is the number of drives
in the robotic library. Use one or more of the following to determine the correct
robot drive numbers:
The Device Configuration Wizard (if the robotic library and drives support
serialization).
The robotic test utility, or experiment by mounting media and watch the
operator display.
On UNIX and Linux systems, the Internet service port number for tldcd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the
/usr/openv/volmgr/database/ports/tldcd file with a single line that contains
the service port number for tldcd.
On Windows systems, the Internet service port number for tldcd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tldcd file with a single line
that contains the service port number for tldcd.
The default service port number is 13711.
You must have administrator privileges to run this command.
OPTIONS
The following options operate only on UNIX and Linux systems.
589
590
NetBackup Commands
tldcd
-v
Logs debug information using syslogd. If you start ltid with -v, tldd and
tldcd are also started with -v.
-t
Terminates tldcd.
ERRORS
Media Manager logs any tape library DLT and robotic errors to the Windows
application event log. Log entries are also made when the state changes between
UP and DOWN.
tldd and tldcd log an error message if another copy of the daemon is in operation.
Media Manager logs any tape library DLT and robotic errors to syslogd. Log
entries are also made when the state changes between UP and DOWN.
EXAMPLES
Example 1 - In the following diagram, the two drives and the robotics connect to
Host A. ltid initiates tldd, which in turn initiates tldcd.
Figure A-7
Host A
ltid
tldd
tldcd
Robotics
SCSI
drive 2
drive 1
NetBackup Commands
tldcd
Figure A-8
Host A
TLD Robot
ltid
tldd
tldcd
Host B
ltid
tldd
Robotics
SCSI
drive 3
drive 2
drive 1
SEE ALSO
See tldd on page 584.
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
syslogd
See vmadm on page 661.
SCSI
591
592
NetBackup Commands
tlhd
tlhd
tlhd Tape library half-inch (TLH) daemon (process on Windows systems)
SYNOPSIS
tlhd [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Note: This command applies only to the NetBackup Enterprise Server.
tlhd and tlhcd interface with Media Manager to mount and unmount tape volumes
which processes all requests and all control functions for the robotic library. TLH
robotic control software permits drives in the same robot to be configured on
different hosts. tlhcd can be running on a different host than tlhd, depending
on where the IBM library control is configured (see EXAMPLES). When
communication with the library is established, tlhd puts the TLH robot in the UP
state and can request volume mounts and unmounts. If the library or the control
daemon is inaccessible, tlhd changes the robot to the DOWN state. In this state,
tlhd is still running and returns the robot to the UP state if tlhcd is able to make
a connection.
Note: If drives are on different hosts, enter the robotic information in the Media
and Device Management of the Administration Console on all machines. The robot
number must be the same on all machines.
On UNIX and Linux systems, tlhd and tlhcd automatically start and stop when
ltid is started and stopped. To stop or start tlhd independently of ltid, use
NetBackup Commands
tlhd
The control daemon, tlhcd,is on the host that has the robotic control. tlhcd on
that host automatically starts it (see EXAMPLES).
On Windows systems, tlhd and tlhcd are started when the NetBackup Device
Manager service is started. They are stopped when this service is stopped. The
control process, tlhcd, is on the host that has the robotic control. tlhd starts it
automatically on that host (see EXAMPLES). tlhcd stops when you stop the
NetBackup Device Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tlhd, and tlhcd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database. Both the
initial EMM database population and future updates can be accomplished by using
Media Manager robotic inventory options.
If a cleaning volume is used, it must be defined in the volume configuration. See
tpclean about how to set the frequency to clean the drive automatically.
The drives are configured by using IBM device names. The robotic test utility,
tlhtest (robtest if the robot is configured), can be used to determine the device
names that are associated with the robot. You can also use this utility along with
IBMs mtlib command-line interface to verify library communications, status,
and functionality.
Configure the drive cleaning operation for the tape library half-inch robotic control
through an IBM library manager console. The cleaning operations are not available
to applications that use the IBM library manager. For this reason, you cannot
define the volumes to clean through Media Manager. In addition, you cannot use
the Media Manager utilities or the tpclean command for cleaning operations on
drives under TLH robotic control.
On UNIX and Linux systems, the Internet service port number for tlhcd must be
in /etc/services. If you use NIS, place the entry in the /etc/services file in the
master NIS server database for services. To override the services file, create the
following file with a single line that contains the service port number for tlhcd
/usr/openv/volmgr/database/ports/tlhcd .
On Windows systems, the Internet service port number for tldcd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tldcd file with a single line
that contains the service port number for tldcd.
593
594
NetBackup Commands
tlhd
OPTIONS
The following options operate only on UNIX and Linux systems.
-v
Logs debug information using syslogd. If you start ltid with -v, tlhd and
tlhcd also start with -v.
ERRORS
tlhd and tlhcd log an error message if a copy of the daemon or process is in
operation. Media Manager logs any tape library half-inch and robotic errors to
syslogd (UNIX and Linux systems) or to the application event log (Windows). Log
entries are also made when the state changes between UP and DOWN.
EXAMPLES
In the following examples the device hosts can be any supported Windows server
or the following UNIX servers: AIX, HP-UX, Solaris (SPARC), and Linux.
Example 1 - In the following diagram, the drives are attached to and the robotics
are controlled from a single host. ltid initiates tlhd, which in turn initiates tlhcd.
lmcpd must be running on Host A. lmcpd is the IBM library manager control-point
daemon on UNIX and Linux systems and the IBM Automated tape library service
on Windows systems.
Figure A-9
Host A
ltid
tlhd
tlhcd
Robotics
lmcpd
devnum1
SCSI
devnum2
devnum3
Example 2 - In the following diagram, each host is connected to at least one drive
and the robotics are controlled from Host A. ltid on each machine initiates tlhd.
NetBackup Commands
tlhd
The tlhd on Host A also initiates tlhcd, since that is where the robotic control is
defined. Requests to mount tapes from Host B go to tlhd on Host B, which sends
the robotic command to tlhcd on Host A.
Figure A-10
Host A
TLH Robot
ltid
tlhd
tlhcd
Host B
ltid
tlhd
Robotics
lmcpd
devnum1
SCSI
devnum2
devnum3
SEE ALSO
See tlhcd on page 596.
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
syslogd
See vmadm on page 661.
SCSI
595
596
NetBackup Commands
tlhcd
tlhcd
tlhcd Tape library half-inch (TLH) control daemon (process on Windows systems)
SYNOPSIS
tlhcd [-v] [-t]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Note: This command applies only to the NetBackup Enterprise Server.
tlhd and tlhcd interface with Media Manager to mount and unmount tape volumes
which processes all requests and all control functions for the robotic library. TLH
robotic control software permits drives in the same robot to be configured on
different hosts. tlhcd can be running on a different host than tlhd, depending
on where the IBM library control is configured (see EXAMPLES). When
communication with the library is established, tlhd puts the TLH robot in the UP
state and can request volume mounts and unmounts. If the library or the control
daemon is inaccessible, tlhd changes the robot to the DOWN state. In this state,
tlhd is still running and returns the robot to the UP state if tlhcd is able to make
a connection.
Note: If drives are on different hosts, enter the robotic information in the Media
and Device Management of the Administration Console on all machines. The robot
number must be the same on all machines.
On UNIX and Linux systems, tlhd and tlhcd automatically start and stop when
ltid is started and stopped. To stop or start tlhd independently of ltid, use
NetBackup Commands
tlhcd
The control daemon, tlhcd,is on the host that has the robotic control. tlhcd on
that host automatically starts it (see EXAMPLES).
On Windows systems, tlhd and tlhcd are started when the NetBackup Device
Manager service is started. They are stopped when this service is stopped. The
control process, tlhcd, is on the host that has the robotic control. tlhd starts it
automatically on that host (see EXAMPLES). tlhcd stops when you stop the
NetBackup Device Manager service.
Before you access any volumes through the NetBackup Device Manager service
(Windows systems), ltid, tlhd, and tlhcd, define the following information: the
media ID and slot number for volumes in a robot in the EMM database. Both the
initial EMM database population and future updates can be accomplished by using
Media Manager robotic inventory options.
If a cleaning volume is used, it must be defined in the volume configuration. See
tpclean about how to set the frequency to clean the drive automatically.
The drives are configured by using IBM device names. The robotic test utility,
tlhtest (robtest if the robot is configured), can be used to determine the device
names that are associated with the robot. You can also use this utility along with
IBMs mtlib command-line interface to verify library communications, status,
and functionality.
Configure the drive cleaning operation for the tape library half-inch robotic control
through an IBM library manager console. The cleaning operations are not available
to applications that use the IBM library manager. For this reason, you cannot
define the volumes to clean through Media Manager. In addition, you cannot use
the Media Manager utilities or the tpclean command for cleaning operations on
drives under TLH robotic control.
On UNIX and Linux systems, the Internet service port number for tlhcd must be
in /etc/services. If you use NIS, place the entry in the /etc/services file in the
master NIS server database for services. To override the services file, create the
following file with a single line that contains the service port number for tlhcd
/usr/openv/volmgr/database/ports/tlhcd .
On Windows systems, the Internet service port number for tldcd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tldcd file with a single line
that contains the service port number for tldcd.
597
598
NetBackup Commands
tlhcd
OPTIONS
The following options operate only on UNIX and Linux systems.
-v
Logs debug information using syslogd. If you start ltid with -v, tlhd and
tlhcd also start with -v.
-t
Terminates tlhcd.
ERRORS
tlhd and tlhcd log an error message if a copy of the daemon or process is in
operation. Media Manager logs any tape library half-inch and robotic errors to
syslogd (UNIX and Linux systems) or to the application event log (Windows). Log
entries are also made when the state changes between UP and DOWN.
EXAMPLES
In the following examples the device hosts can be any supported Windows server
or the following UNIX servers: AIX, HP-UX, Solaris (SPARC), and Linux.
Example 1 - In the following diagram, the drives are attached to and the robotics
are controlled from a single host. ltid initiates tlhd, which in turn initiates tlhcd.
lmcpd must be running on Host A. lmcpd is the IBM library manager control-point
daemon on UNIX and Linux systems and the IBM Automated tape library service
on Windows systems.
Figure A-11
Host A
ltid
tlhd
tlhcd
Robotics
lmcpd
devnum1
SCSI
devnum2
devnum3
NetBackup Commands
tlhcd
Example 2 - In the following diagram, each host is connected to at least one drive
and the robotics are controlled from Host A. ltid on each machine initiates tlhd.
The tlhd on Host A also initiates tlhcd, since that is where the robotic control is
defined. Requests to mount tapes from Host B go to tlhd on Host B, which sends
the robotic command to tlhcd on Host A.
Figure A-12
Host A
TLH Robot
ltid
tlhd
tlhcd
Host B
ltid
tlhd
Robotics
lmcpd
devnum1
SCSI
devnum2
devnum3
SEE ALSO
See tlhd on page 592.
See tpclean on page 606.
See tpconfig on page 609.
See ltid on page 423.
syslogd
See vmadm on page 661.
SCSI
599
600
NetBackup Commands
tlmd
tlmd
tlmd Tape library Multimedia (TLM) daemon-process
SYNOPSIS
tlmd [-v]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
This command applies only to NetBackup Enterprise Server.
tlmd interfaces with Media Manager to automatically mount and unmount tapes
in a tape library multimedia (TLM) robot. ltid is the Media Manager device daemon
on UNIX and Linux systems and the NetBackup Device Manager service on
Windows systems. ltid initiates tlmd if drives are defined to be in a tape library
multimedia robot.
tlmd communicates with the ADIC Distributed AML Server (DAS) that controls
the robot. This client and the server software product are designed to provide
shared access to the family of ADIC Automated Media Libraries (AML). When the
connection is established, tlmd puts the TLM robot in the UP state and can request
inventories as well as media mounts and dismounts. If the connection cannot be
established or DAS errors occur, tlmd changes the robot to the DOWN state but
continues in operation. In this state, tlmd continues in operation and returns the
robot to the UP state when the problem no longer exists.
The DAS server attribute defines the DAS server in the TLM robot entry in the
Media and Device Management of the Administration Console. For each defined
TLM robot, tlmd connects to this DAS server. From the perspective of DAS, tlmd
connects as a DAS client. The host running tlmd establishes communication as
the DAS client that the DAS_CLIENT entry in the Media Manager configuration
file specifies: /usr/openv/volmgr/vm.conf. If no DAS_CLIENT entry exists, the
DAS client name is the standard host name for the host that is running tlmd.
The drives are configured by using DAS drive names, which are based on the
information that is obtained from the DAS server. You can use the robotic test
utility, tlmtest (robtest if the robot is configured), to determine the drive names
that are associated with the robot. You can also use ADICs DASADMIN to verify
library communications, status, and functionality.
NetBackup Commands
tlmd
UNIX and Linux systems: To stop or start tlmd independently of ltid, use
/usr/openv/volmgr/bin/vmps or your servers ps command to identify the tldd
process ID. Then enter the following commands:
kill tlmd_pid
/usr/openv/volmgr/bin/tlmd [-v] &
The control daemon, tldcd, is on the host that has the robotic control. tldd on
that host automatically starts it (see EXAMPLES).
On UNIX and Linux systems, the Internet service port number for tlmd must be
in /etc/services. If you use NIS (Network Information Service), place the entry
in this hosts /etc/services file in the master NIS server database for services.
To override the services file, create the /usr/openv/volmgr/database/ports/tlmd
file with a single line that contains the service port number for tlmd.
On Windows systems, the Internet service port number for tlmd must be in
%SystemRoot%\system32\drivers\etc\services. To override the services file,
create the install_path\Volmgr\database\ports\tlmd file with a single line
that contains the service port number for tlmd.
The default service port number is 13716.
You must have administrator privileges to run this command.
OPTIONS
The following options operate only on UNIX and Linux systems.
-v
Logs debug information using syslogd. If you start ltid with -v, tlmd also
starts with -v.
ERRORS
tlmd returns an error message if a copy of tlmd is in operation.
Media Manager logs TLM and network errors to syslogd (UNIX and Linux systems)
or the Windows application event log. It also logs entries when the state changes
between UP and DOWN.
SEE ALSO
See tpconfig on page 609.
See ltid on page 423.
syslogd
601
602
NetBackup Commands
tlmd
NetBackup Commands
tpautoconf
tpautoconf
tpautoconf discover and configure devices
SYNOPSIS
tpautoconf -get_gdbhost
tpautoconf -set_gdbhost host_name
tpautoconf -verify ndmp_host_name
tpautoconf -probe ndmp_host_name
tpautoconf -report_disc
pautoconf -replace_drive drive_name -path drive_path
tpautoconf -replace_robot robot_number -path robot_path
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
The Device Configuration Wizard normally uses tpautoconf to discover devices.
This wizard calls tpautoconf with a different set of options.
The get and the set options are useful in special situations. For example, use
them to specify a different host as the Enterprise Media Manager (EMM) server.
The EMM server name is automatically defined when NetBackup is installed.
For more information about how to manage the EMM server, refer to "Managing
the EMM server" of the NetBackup Administrators Guide, Volume I.
Use -report_disc, -replace_drive, and -replace_robot to reconfigure the
devices in the EMM database to reflect a serial number change that a configured
device replacement caused. After hardware replacement, the correction process
requires that at least one system is available through the operating system. You
may need to re-map, rediscover, and reboot the system.
After you configure the server or servers, use the -report_disc option to scan
the current hardware and compare it with the configured hardware. A list of
discrepancies appears and shows the replaced hardware and the new hardware.
Note: Not all servers have access to robotic hardware. Even though no access is
expected, these robots are listed as missing.
603
604
NetBackup Commands
tpautoconf
The final step to add replacement hardware is to configure the hardware on all
servers by their operating systems. Then run the Device Configuration Wizard to
configure the new path information.
Refer to "Changing your hardware configuration" in the NetBackup Administrators
Guide, Volume II.
You must have administrator privileges to run this command.
OPTIONS
Note: Only limited validation of the option parameters is done.
-get_gdbhost
Enables the device data to be queried from the EMM server to enable a "diff"
to be run on these data records against those scanned. You can run this
command on reconfigured servers to produce a list of new and missing
hardware. This command scans for new hardware and produces a report that
shows the new and the replaced hardware.
-replace_drive drive_name -path drive_path, -replace_robot
robot_number -path robot_path
The EMM database is used to query or to update robot drives and robot
records.
Note: On Windows systems, drive_path is a non-NDMP Windows device path
for drives and robot_path is a non-NDMP Windows device path for robots.
Use the path in the {p,b,t,l} format (where p -port, b -bus, t -target, and l -lun).
This information is located in the registry.
-verify ndmp_host_name
NetBackup Commands
tpautoconf
EXAMPLES
Example 1 - Return the name of the host where the Enterprise Media Manager
database is stored:
# tpautoconf -get_gdbhost
Example 2 - Set the Enterprise Media Manager Server to be the host server2:
# tpautoconf -set_gdbhost server2
SEE ALSO
See tpconfig on page 609.
605
606
NetBackup Commands
tpclean
tpclean
tpclean manage the cleaning of the tape drive
SYNOPSIS
tpclean -L | -C drive_name [-priority number] | -M drive_name | -F
drive_name cleaning_frequency
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tpclean enables you to monitor Media Manager tape drive usage and optionally
configure tape drives to be cleaned automatically. (This function does not apply
to drives in ACS or TLH robots, or QIC drives.)
Media Manager tracks the total amount of time that volumes have been mounted
in the drives. You can use tpclean to specify a cleaning frequency (in hours) for
a drive.
The drive is cleaned if the following conditions are true:
The Media Manager volume configuration shows a cleaning tape in the robot.
The Comment field in the tpclean -L output contains the message, NEEDS
CLEANING, if the following are true:
The drive is a stand-alone drive or does not have a defined cleaning tape.
Manually clean the drive and reset the mount time by using the -M option.
For the -C, -M, and -F options to operate, the following must occur: ltid must be
running on UNIX or Linux systems, or the NetBackup Device Manager service
must be running on Windows systems.
For more information on TapeAlert and other related drive-cleaning topics, refer
to "Using TapeAlert" in the NetBackup Administrators Guide, Volume II.
NetBackup Commands
tpclean
OPTIONS
-C drive_name
Prints the cleaning statistics. (On UNIX and Linux systems, it prints to stdout.)
-priority number
Specifies a new priority for the job at which tpclean gets a media-drive pair
of resources. The new priority overrides the default job priority.
-M drive_name
Indicates that the drive was manually cleaned. The mount time is reset to
zero. The drive name is the name that was assigned to the drive when it was
added to the device configuration.
-F drive_name cleaning_frequency
NOTES
tpconfig -d, tpconfig -l, and vmoprcmd may truncate long drive names. Use
tpconfig -dl to obtain the full drive name.
tpclean truncates drive names to 22 characters.
EXAMPLES
Example 1 - Display cleaning statistics. An asterisk next to the drive type indicates
that the device is defined as robotic.
# tpclean -L
Drive Name
Type
**********
****
Mount Time
**********
Frequency
**********
Last Cleaned
************
Comment
*******
607
608
NetBackup Commands
tpclean
rob_A_drv1
4mm_drv5
dlt_drv6
8mm*
4mm
dlt
11.4
5.6
3.0
30
10
0
14:33 05/29/92
13:01 06/02/92
N/A
Example 2 - Set the cleaning frequency for the drive named dlt_drv6 to 25 hours.
The drive is flagged as having a need to be cleaned after 25 hours of mount time
has occurred.
# tpclean -F dlt_drv6 25
Example 3 - Reset the mount time for the drive named rob_A_drv1 to zero. You
normally use this command after you manually clean the drive.
# tpclean -M rob_A_drv1
Example 4 - Initiate the cleaning of drive rob_A_drv1. This example assumes that
the drive is a robotic drive with a cleaning tape defined. The mount time is reset
to zero.
You can use the -C option to force the cleaning of a drive before you reach
cleaning_frequency. Normally, robotic drives are cleaned automatically when
their mount time exceeds the cleaning frequency.
# tpclean -C rob_A_drv1
Note: To use a cleaning tape, the Cleanings Remaining for that tape must be greater
than zero. (This value appears in the volume list of the Media node in the
NetBackup Administration Console or from the vmquery command.) This cleaning
count refers to how many more times the cleaning tape can be used. You can
change this count by using the Media node or the vmchange command.
SEE ALSO
See ltid on page 423.
See tpconfig on page 609.
See vmadm on page 661.
NetBackup Commands
tpconfig
tpconfig
tpconfig run tape configuration utility
SYNOPSIS
UNIX and Linux systems: tpconfig [-noverify]
tpconfig -d | -dl | -l
UNIX and Linux systems: tpconfig -add -drive -type drvtype -path
drivepath [-nh ndmp_hostname] [-asciiname asciidrivename] [-index
drvindex]] [-shared [yes|no]] [-cleanfreq hours] [-comment comment]
[-drstatus UP | DOWN | DISABLED] [-scsi_protection [SPR | SR | NONE]
[-robot robnum -robtype robtype] [-noverify] [-robdrnum robdrvnum |
-VendorDrvName venddrvname | -ACS acsnum -LSM lsmnum -PANEL panelnum
-DRIVE drivenum] [000-preview]
Windows systems: <volmgr_dirpath>tpconfig -add -drive -type drvtype
-port port -bus bus -target target -lun lun [-asciiname
asciidrivename] [-index drvindex]] [-shared [yes|no]] [-cleanfreq
hours] [-comment comment] [-drstatus [UP | DOWN | DISABLED]]
[-scsi_protection [SPR | SR | NONE]] [-robot robnum -robtype robtype]
[-noverify] [-robdrnum robdrvnum | -VendorDrvName vendor_drive_name]
[-ACS acsnum -LSM lsmnum -PANEL panelnum -DRIVE drivenum] [preview]
UNIX and Linux systems: tpconfig -update -drive drvindex [-type
drvtype] [-path drivepath] [-nh ndmp_hostname] [-noverify]
[-newasciiname asciidrivename]] [-shared [yes|no]] [-cleanfreq hours]
[-comment comment] [-drstatus [UP|DOWN|DISABLED]] [-robot robnum
-robtype robtype] [-robdrnum robdrvnum | -VendorDrvName venddrvname
| -ACS acsnum -LSM lsmnum -PANEL panelnum -DRIVE drivenum]
Windows systems: tpconfig -update -drive drvindex [-type drvtype]
[-port port -bus bus -target target -lun lun ] [-nh ndmp_hostname
-path drivepath] [-noverify] [-newasciiname asciidrivename]] [-shared
[yes|no]] [-cleanfreq hours] [-comment comment] [-drstatus
[UP|DOWN|DISABLED]] [-robot robnum -robtype robtype] [-robdrnum
robdrvnum | -VendorDrvName vendor_drive_name] [-ACS acsnum -LSM lsmnum
-PANEL panelnum -DRIVE drivenum]
tpconfig -delete -drive drvindex
tpconfig -multiple_delete -drive drvindex1:...:drvindexN
tpconfig -add -disk_array array_hostname -disk_user_id user_ID
-arraytype_name "name:displayname" -requiredport IP_port_number
[-password password [-key encryption_key]]
609
610
NetBackup Commands
tpconfig
NetBackup Commands
tpconfig
tpconfig -dnh
tpconfig -dnh -all_hosts
tpconfig -ddnh
tpconfig -add -nh ndmp_hostname
tpconfig -add -nh ndmp_hostname -user_id | -filer_user_id user ID
[-password password [-key encryption_key]] -snap_vault_filer
tpconfig -update -nh ndmp_hostname -user_id | -filer_user_id user ID
[[-password password [-key encryption_key]]
tpconfig -delete -nh ndmp_hostname -user_id | -filer_user_id user ID
tpconfig -multiple_delete -nh ndmp_hostname_1: ... :ndmp_hostname_N
tpconfig -add -default_user_id user ID [-password password [-key
encryption_key]]
tpconfig -update -default_user_id user ID [-password password [-key
encryption_key]]
tpconfig -delete -default_user_id
tpconfig -add | -update -disk_array disk_array_host_name -disk_user_id
user_ID -arraytype disk_array_type -requiredport IP_port_number
[-password password [-key encryption_key]]
tpconfig -delete -disk_array disk_array_host_name -disk_user_id
user_ID [-arraytype disk_array_type]
tpconfig -ddiskarrays
tpconfig -add | -update -virtual_machine virtual_machine_name
-vm_user_id user_id -vm_type virtual_machine_type -requiredport
IP_port_number [-password password [-key encryption_key]]
tpconfig -delete -virtual_machine virtual_machine_name -vm_user_id
user_id [-vm_type virtual_machine_type]
tpconfig -dvirtualmachines
tpconfig -add -storage_server server_name -stype server_type
-sts_user_id user_ID [-password password] [-st storage_type]
tpconfig -update -storage_server server_name -stype server_type
-sts_user_id user_ID [-password password]
tpconfig -delete -storage_server server_name -stype server_type
-sts_user_id user_ID
tpconfig -dsh [-stype server_type]
tpconfig -dsh -all_hosts
tpconfig -dev_ping [-drive -path drivepath | -robpath robotpath] [-nh
ndmp_hostname]
Windows systems: tpconfig -dev_ping [-drive] -port port -bus bus
-target target -lun lun
tpconfig -emm_dev_list [-noverbose]
611
612
NetBackup Commands
tpconfig
DESCRIPTION
tpconfig configures robots, drives, drive arrays, drive paths, and hosts for use
with NetBackup.
On UNIX and Linux systems, tpconfig [-noverify] starts the Media and Device
Management Utility. This menu-based utility creates and modifies devices in the
EMM database. The EMM database identifies the robotics and drives that are
under control of ltid (the Media Manager device daemon). ltid uses this database
to correlate drives in the operators drive status display to the device files in the
/dev directory.
For example, assume that you want to configure a drive that the system recognizes
as an 8-mm type drive. Look in the /dev directory and locate the no rewind on
close device path for an 8-mm type drive. Then specify this device path for the
drive. tpconfig then records the device path in the appropriate device database.
After you use tpconfig to change your device configuration, use stopltid to stop
the ltid and (automatic volume recognition) daemons (if they are running). Then
use the ltid command to start the daemons again. See ltid for more information.
On Windows systems, when your device configuration changes are complete, stop
and restart the NetBackup Device Manager service.
You must have administrator privileges to run this utility.
OPTIONS
The following four options apply only to NetBackup Enterprise Server. They
specify the configuration for ACS (Automated Cartridge System) robots.
-ACS acsnum, -LSM lsmnum, -PANEL panelnum, -DRIVE drivenum
acsnum specifies the number for the robotic library as configured on the ACS
library software host.
lsmnum specifies the Library Storage Module that has this drive.
panelnum specifies the robot panel where this drive is located.
drivenum specifies the number of this drive.
-add
NetBackup Commands
tpconfig
-all_hosts
Specifies the type of the disk array for which to add, update, or delete
credentials.
The double quote marks (") are required only if name or displayname includes
one or more spaces.
The disk array vendor provides the values for name:displayname. The name
portion is a unique string used internally by NetBackup. The displayname
portion is a more human-readable string that is used in NetBackup
Administration Console displays and menus.
The values depend on the disk array vendor and the provider type that are
used for the array, as follows:
HP_HSV:HP EVA
EMC_CLARIION:EMC CLARiiON
EMC_SYMMETRIX:EMC Symmetrix
NETAPP_LUN:NetApp
Specifies a name for the drive. This name identifies the drive to Media
Manager. If you do not specify a drive name, Media Manager generates a
name. If you add or update shared drives (SharedDisk option), make this name
as descriptive as possible.
-bus bus
Specifies the SCSI bus number to which the robot or drive connects.
613
614
NetBackup Commands
tpconfig
You can find this information in the NetBackup Device Configuration Guide.
-cleanfreq hours
Specifies the number of hours between drive cleanings. When you add a drive,
NetBackup starts to record the amount of time that volumes are mounted in
that drive.
If the drive is in a robot and a cleaning volume is defined in the robot, the
cleaning occurs in the following situation: The accumulated mount time
exceeds the time that you specify for the cleaning frequency. NetBackup
resets the mount time when the drive is cleaned.
If the drive is stand-alone or a cleaning tape is not defined, the following
message appears in the tpclean -L output comment field: NEEDS CLEANING.
To clean the drive, use the tpclean command.
A frequency-based cleaning is not needed if TapeAlert is used.
-cntlhost cntlhost
Adds a comment about the drive. This field is useful for storing SCSI inquiry
data so you can easily check the drive type and firmware level.
-d
Lists the current configuration information. On UNIX and Linux systems, the
listing is sent to stdout). This option may truncate drive names to 22
characters. It can determine if the robot is in a PIRD state (pend if robot down).
"PIRD = yes" means that the robot is in a PIRD state.
-ddiskarrays
NetBackup Commands
tpconfig
-default_user_id user_ID
Configures a user name and password for all media servers and NDMP host
combinations under a given master server. You add a user name and password
only once per filer. Use this option with the -add, -update, or -delete
command to specify the user name and password.
-delete
Specifies the hostname of the disk array. This option can be used only if the
NetBackup Snapshot Client license key has been installed.
-disk_user_id user_ID
Specifies the user name that NetBackup must use to communicate with a disk
array. This option can be used only if the NetBackup Snapshot Client license
key has been installed.
-dl
Displays the credentials on the NDMP host that is on the media server.
-drive
Use this option with the -add option to specify that the action is for a drive.
-drive drvindex
Specifies the drive index. Use this option with the -update, -delete,or the
-multiple_delete command that specifies the action for a drive.
-drpath
Sets the initial status of the tape drive to the UP, DOWN, or DISABLED state.
Discovered drive paths are enabled (UP) by default. An administrator or
operator can disable or configure the drive path up/down. The user can also
perform this action with options in the Device Management window.
A drive status of DISABLED means NetBackup stores the path but never to
use it. In addition, if subsequent discoveries of this drive path occur,
NetBackup does not configure it for use.
615
616
NetBackup Commands
tpconfig
-dvirtualmachines
Lists the complete tape device configuration as seen by the EMM database.
This information includes all media servers, master server, NDMP hosts, and
their credentials.
-filer_user_id user ID
Configures a user name and password for all media servers that are connected
to a filer. You add a user name and password only once per filer. Use this
option with the -add, -update, or -delete command to specify the user name
and password.
-index drvindex
Specifies a drive index, a unique number that is used to identify the drive.
When you add a drive, you are not required to supply a drive index, since
Media Manager uses the next available drive index. Each drive on a particular
host must have a unique index number.
-key encryption_key
Lists the disk array types for which you can add and manage credentials.
To restrict the output to the disk array types that are valid for a specific media
server, specify that media server.
The command output is in a name:displayname format for each array type.
The disk array vendor provides the values for name:displayname. The name
portion is a unique string used internally by NetBackup. The displayname
portion is a more human-readable string that is used in NetBackup
Administration Console displays and menus.
The values depend on the disk array vendor and the provider type that are
used for the array, as follows:
NetBackup Commands
tpconfig
HP_HSV:HP EVA
EMC_CLARIION:EMC CLARiiON
EMC_SYMMETRIX:EMC Symmetrix
NETAPP_LUN:NetApp
Specifies the logical unit number (or SCSI ID) to which the robot or drive
connects.
For information about device paths, see the NetBackup Device Configuration
Guide.
-multiple_delete
Drive paths are not verified. Normally, tpconfig verifies that the no rewind
on close drive path has the correct minor number bits that relate to the
following: no rewind, variable, Berkeley-style, and so on. This option may be
helpful if you use non-standard platform device files, so make sure that your
device files are correct.
-old_bus bus
This option is used on Windows systems. It specifies the SCSI bus number
that a user may want to add, upgrade, or delete.
-old_lun lun
This option is used on Windows systems. It specifies the logical unit number
(or SCSI ID) to which the robot or drive connects. You can find this information
in the registry. Use this command to add, upgrade, or delete an existing logical
unit number.
617
618
NetBackup Commands
tpconfig
-old_path drivepath
When this option is used with the -update command, you can change the
path to one that already exists in the database. If the path does not exist, an
error occurs.
-old_port port
Sets or clears the PIRD state of the robot (pend if the robot is down). If a robot
is in a PIRD state, any storage-unit-related mount requests for this robot
pend when the robotic control is down.
-port port
Specifies the SCSI port number to which the robot or drive connects. You can
find this information in the registry.
-requiredport IP_port_number
Specifies the IP port number on which the disk array accepts a connection
from NetBackup.
-robdrnum robdrvnum
Specifies the physical location (within the robot) of the drive. If you assign
the wrong number, NetBackup does not detect it. An error eventually occurs
because the robotic control tries to mount media on the wrong drive.
You can usually determine the physical location by checking the connectors
to the drives or the vendor documentation.
NetBackup Commands
tpconfig
-robot robnum
A unique number that identifies the robot to NetBackup. You assign the robot
number with the add option.
Robot numbers must be unique for all robots, regardless of the robot type or
the host that controls them.
On NetBackup Enterprise Server, robot numbers must be unique for all robots
that share the same EMM server (and use the same EMM database). This
requirement applies regardless of the robot type or the host that controls
them. For example, the same EMM server but different hosts control two TLD
robots. If so, the robot numbers must be different.
-robpath devfile
Specifies the type of robot that you plan to configure and can be any of the
types that NetBackup supports. Check the support Web site to determine the
robot type to specify for a particular model of robotic library.
Robot type can be any of the following for NetBackup Enterprise Server:
acs for Automated Cartridge System, tl4 for tape library 4mm, tl8 for tape
library 8mm, tld for tape library DLT, tlh for tape library Half-inch, tlm for
tape library Multimedia
Robot type can be any of the following for NetBackup server:
tl4 for tape library 4mm
tl8 for tape library 8mm
tld for tape library DLT
-scsi_protection SPR | SR | NONE
Specifies the access protection that NetBackup uses for SCSI tape drives.
SPR - SCSI Persistent Reserve In / Persistent Reserve Out
SR - SCSI Reserve/Release
NONE - No SCSI access protection
The default condition is SCSI Reserve/Release (SR).
-shared yes|no
619
620
NetBackup Commands
tpconfig
-snap_vault_filer
The -snap_vault_filer flag is used with the NetApp P3 feature. Set this flag
when the user name and password for that filer are stored. If not set, the user
interfaces do not allow the user to add volumes on this filer. If you stash the
user name and password without this flag, do the following: Decide if you
want its functionality, do a tpconfig -delete operation, and then re-add it
with the flag. This flag is used with the NetApp P3 feature when used in the
following context:
tpconfig -add -user_id root -nh mmnetapp2-target target
-snap_vault_filer
-st storage_type
Specifies a numeric value that identifies the storage server properties. The
storage vendor provides this value. Whether the disk is formatted and how
it is attached are mutually exclusive and complementary.
The following are the possible values of storage_type:
formatted disk = 1
raw disk = 2
direct attached = 4
network attached = 8
The storage_type value is the sum of whether the disk is formatted or raw (1
or 2) and how the disk is attached (4 or 8). The default value is 9 (a network
attached, formatted disk).
-storage_server server_name
Specifies the user name that is needed to log into the storage server. If the
storage server does not require logon credentials, enter dummy credentials.
-stype server_type
Specifies a string that identifies the storage server type. The storage vendor
provides the string.
-target target
Specifies the target number (or SCSI ID) to which the robot or drive connects.
You can find this information in the registry (Windows systems) or the
NetBackup Device Configuration Guide.
NetBackup Commands
tpconfig
-tlh_library_name tlh_library_name
, 8mm3 for 8mm tape drive 3, dlt for DLT tape drive, dlt2 for DLT tape drive
2, dlt3 for DLT tape drive 3, dtf for DTF tape drive, qscsi for QIC tape drive,
hcart for Half-inch cartridge drive, hcart2 for Half-inch cartridge drive 2,
hcart3 for half-inch cartridge drive 3. Drive type can be any of the following
for NetBackup server :, 4mm for 4mm tape drive , 8mm for 8mm tape drive, dlt
for DLT tape drive, hcart for Half-inch cartridge drive, qscsi for QIC tape
drive.
-update
Changes the configuration information for a drive or robot. For example, you
can add a drive to a robot.
-user_id user_ID
Specifies the user ID of a particular NDMP host on a media server for which
you add credentials.
Note: A media server is allowed only one user ID per NDMP hostname. If you
try to add a second user ID for a single NDMP hostname fails.
-VendorDrvName venddrvname
This option applies only to NetBackup Enterprise Server. It specifies the IBM
device name for a TLH robotic drive or the DAS drive name for a TLM robotic
drive.
-virtual_machine virtual_machine_name
Specifies the host name of the virtual machine whose credentials are to be
added, updated, or deleted. This option can be used only if the NetBackup
Snapshot Client license key has been installed.
-vm_type virtual_machine_type
Specifies the type of virtual machine. The following are possible values:
1 - VMware VirtualCenter Servers
2 - VMware ESX Servers
3 - VMware Converter Servers
621
622
NetBackup Commands
tpconfig
This option can be used only if the NetBackup Snapshot Client license key
has been installed.
-vm_user_id user_id
Specifies the user name that NetBackup must use to communicate with a
virtual machines disk array. This option can be used only if the NetBackup
Snapshot Client license key has been installed.
You must have administrator privileges to run this command.
NOTES
tpconfig -d may truncate drive names to 22 characters, and tpconfig -l may
truncate drive names to 32 characters. To list the full drive name, use tpconfig
-dl.
The delete multiple NDMP host credentials applies only to credentials that are
specific to this host and the specified filer. In other words, it has no default or no
filer credentials.
SEE ALSO
ltid
SEE ALSO
See ltid on page 423.
EXAMPLES
In the following examples, the command that is entered is shown on multiple
lines because of page limitations. The actual command is entered on one line.
Example 1 - Robotic control on the local Windows server
The following example adds a robot that connects directly to a Windows host, and
also adds drives to that robot.
The following procedure applies only to NetBackup server:
If there are drives in the robot that have not been configured, add them.
NetBackup Commands
tpconfig
The following command configures the drive with the system name of Tape0
under control of the robot that is configured in step 1. ( The server has attached
and recognized Tape0.)
# tpconfig -add -drive -type dlt -port 1 -bus 2 -target 3 -lun 4
-comment "DEC
DLT2000 8414" -index 0 -drstatus up -robot 7
-robtype tld -robdrnum 1 -asciiname DLT2000_D1
The command in this example uses the comment field. This field is useful for
storing the drives SCSI inquiry data so that drive type and firmware level can
be easily checked.
If the robot contains any drives that are currently configured as stand-alone
drives, update the drive configuration to place them under robotic control.
The following commands update the configuration for drives 1 and 2:
# tpconfig -update -drive 1 -type dlt -robot 7 -robtype tld
-robdrnum 1
# tpconfig -update -drive 2 -type dlt -robot 7 -robtype tld
-robdrnum 2
Note: Assign the correct robot drive number to the drives. If robot drive numbers
are incorrect, tape mounts or backups may fail.
Example 2 - Robotic control on the remote host
This example applies only to NetBackup Enterprise Server:
It assumes that one or more tape drives that are in the robot, connect to the
Windows host where you currently manage devices.
The following is a sequence of tpconfig operations that adds a robot that connects
to another host:
Ensure that the robot number matches the one on the control host.
If the robot contains any drives that are currently configured as stand-alone,
update the drive configuration to place them under robotic control.
The following commands update the configuration for drives 1 and 2:
# tpconfig -update -drive 1 -type dlt -robot 9 -robtype tld
-robdrnum 1
623
624
NetBackup Commands
tpconfig
Note: Assigned the correct robot drive number. If robot drive numbers are
incorrect, tape mounts or backups may fail.
If there are drives in the robot that have not been configured, add them now.
The following command configures the drive with the system name of Tape0
under control of the robot that is configured in step 1. (The Windows server
has attached and recognized Tape0.)
# tpconfig -add -drive -type dlt -port 1 -bus 2 -target 3 -lun 4
-comment DEC
DLT2000 8414 -index 3 -drstatus up -robot 9
-robtype tld -robdrnum 3 -asciiname DLT2000_D3
Comment
-
Drive
Name
SONY.SDX-400V.000
IBM.ULTRIUM-TD2.001
IBM.ULTRIUM-TD2.001
IBM.ULTRIUM-TD2.002
IBM.ULTRIUM-TD2.002
IBM.ULTRIUM-TD1.003
IBM.ULTRIUM-TD1.003
IBM.ULTRIUM-TD1.004
IBM.ULTRIUM-TD1.004
Device
Path
{3,1,0,1}
{3,1,0,3}
{3,1,2,0}
{1,0,0,0}
{3,1,0,2}
{3,1,1,2}
{3,1,0,5}
{3,1,1,5}
{3,1,0,6}
{3,1,1,6}
{3,1,0,7}
{3,1,1,7}
NetBackup Commands
tpconfig
drive
drive
5 hcart2
6 hcart2
2
1
UP
UP
IBM.ULTRIUM-TD2.005
IBM.ULTRIUM-TD2.006
{3,1,2,1}
{3,1,2,2}
625
626
NetBackup Commands
tpext
tpext
tpext update EMM database device mappings and external attribute files
SYNOPSIS
tpext -loadEMM
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The tpext command updates the EMM database with new versions of the device
mappings and external attribute files.
EXAMPLE
Before you repopulate this data, make sure that you have the most current support
for new devices. New devices are added approximately every two months.
NetBackup Commands
tpreq
tpreq
tpreq request a tape volume for mounting and assign a file name to the drive
SYNOPSIS
tpreq -m media_id [-a accessmode] [-d density] [-p poolname]
[-priority number] [-f] filename
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
This command initiates a mount request for a tape volume on a removable media
device. The information that you specify with this command identifies and registers
the specified file as a logical identifier for the mount request with Media Manager.
It also manages access to the volume.
Media Manager automatically mounts the media if it is in a robotic drive.
Otherwise, an operator mount request appears in the Device Monitor window.
tpreq does not complete normally in the case of a mount request for a robotic
drive, if operator intervention is required. These requests also appear in the Device
Monitor window.
When the operation is complete, use tpunmount to unmount the volume and
remove the file name from the directory in which the file was created.
On UNIX and Linux systems, when a tpreq command is initiated, a call is made
to the script drive_mount_notify immediately after the media is successfully
placed in a pre-selected drive. This script allows user special handling to occur
now. Control is then returned to tpreq to resume processing. The script is only
called from the tpreq command for the drives that are in robots and is not valid
for stand-alone drives. This script resides in the /usr/openv/volmgr/bin/goodies
directory. To use this script, activate it and copy it into the /usr/openv/volmgr/bin
directory; usage information is documented within the script.
You must have administrator privileges to run this command.
627
628
NetBackup Commands
tpreq
OPTIONS
-m media_id
Specifies the media ID of the volume to be mounted. You can enter the ID in
upper or lowercase; Media Manager converts it to uppercase.
-a accessmode
Specifies the access mode of the volume. Valid access modes are w and r. If
the access mode is w (write), the media must be mounted with write enabled.
The default is r (read), which means the media may be write protected.
-d density
Specifies the density of the drive. This option determines the type of drive
on which the tape volume is mounted. The default density is dlt.
Valid densities for NetBackup Enterprise Server follow:
4mm for 4-mm cartridge, 8mm for 8-mm cartridge, 8mm2 for 8-mm cartridge
2, 8mm3 for 8-mm cartridge 3, dlt for DLT cartridge, dlt2 for DLT cartridge
2, dlt3 for DLT cartridge 3, dtf for DTF cartridge, hcart for 1/2-inch cartridge,
hcart2 for 1/2 Inch cartridge 2, hcart3 for 1/2 Inch cartridge 3, qscsi for
1/4-inch cartridge.
The following applies only to NetBackup Enterprise Server:
The half-inch cartridge densities (hcart, hcart2, and hcart3) can be used to
distinguish between any supported half-inch drive types. However, tape
requests can only be assigned to drives of the associated media type. For
example, it assigns a tape request with density hcart2 that specifies a media
ID with media type HCART2 to an hcart2 drive. Likewise, it assigns a tape
request with density hcart that specifies a media ID with media type HCART
to an hcart drive. The same rules apply to the DLT densities (dlt, dlt2, and
dlt3) and the 8MM densities (8mm, 8mm2, and 8mm3).
Valid densities for NetBackup server follow:
4mm for 4-mm cartridge, 8mm for 8-mm cartridge, dlt for DLT cartridge,
hcart for 1/2 Inch cartridge, qscsi for 1/4-inch cartridge.
The mount request must be performed on a drive type that satisfies the
density.
-p poolname
Specifies the volume pool where the volume resides. poolname is case
sensitive. The default is None.
-priority number
Specifies a new priority for the job that overrides the default job priority.
NetBackup Commands
tpreq
-f filename
Specifies the file to be associated with the volume. The file name represents
a symbolic link to the drive where the volume is mounted.
The file name can be a single name or a complete path. If you specify only a
file name, the file is created in the current working directory. If you specify
a path, the file is created in the directory that is named in the path. filename
cannot be an existing file.
If the tpreq command is successful, Media Manager creates a file with the
name that you specified. This file contains the name of the tape device where
the media is mounted. Do not delete this file. Use the tpunmount command
to remove it.
The specification of -f before filename is optional.
EXAMPLE
The following command creates a file named tape1 in the current working
directory. It links the file to the drive that contains the volume that has media ID
of JLR01. The access mode for the tape file is set to write, and a 1/4-inch cartridge
drive is assigned.
# tpreq -f tape1 -m jlr01 -a w -d qscsi
This command creates a file named tape1 in the current working directory. It
links the file to the drive that contains the volume that has media ID of JLR01.
The access mode for the tape file is set to write, and a 1/4-inch cartridge drive is
assigned.
SEE ALSO
See tpunmount on page 630.
See vmadm on page 661.
629
630
NetBackup Commands
tpunmount
tpunmount
tpunmount remove a tape volume from a drive and a tape file from the directory
SYNOPSIS
tpunmount [-f] filename [-force]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
tpunmount removes a tape file from the directory and physically removes the tape
OPTIONS
-f filename
Specifies the file that is associated with the media. You must specify a file
name. The specification of -f before filename is optional.
-force
NetBackup Commands
tpunmount
EXAMPLE
The following command unmounts the tape volume that is associated with file
tape1 and removes the file from the current directory:
# tpunmount tape1
SEE ALSO
See tpreq on page 627.
631
632
NetBackup Commands
verifytrace
verifytrace
verifytrace trace debug logs for verify jobs
SYNOPSIS
verifytrace [-master_server name] -job_id number [-start_time
hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy _]
verifytrace [-master_server name] -backup_id id [-start_time hh:mm:ss]
[-end_time hh:mm:ss] mmddyy [mmddyy _]
verifytrace [-master_server name] [-policy_name name] [-client_name
name] [-start_time hh:mm:ss] [-end_time hh:mm:ss] mmddyy [mmddyy _]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\admincmd\
DESCRIPTION
The verifytrace command consolidates the debug log messages for the specified
verify jobs and writes them to standard output. The messages sort by time.
verifytrace tries to compensate for time zone changes and clock drift between
remote servers and clients.
At a minimum, you must enable debug logging for the following:
For best results, set the verbose logging level to 5. Enable debug logging for bpdbm
on the master server and bpcd on all servers and clients in addition to already
identified processes.
If you specify either -job_id or -backup_id, verifytrace uses this option as the
sole criteria for selecting the verify jobs it traces. You cannot use the options
-policy_name or -client_name with -job_id or -backup_id. If you do not specify
-job_id or -backup_id, verifytrace selects all the verify jobs that match the
specified selection criteria. If none of the following options is specified,
verifytrace traces all the verify jobs that ran on the days that the day stamps
(mmddyy) specify: -job_id, -backup_id, -policy_name, or -client_name. If
NetBackup Commands
verifytrace
-start_time/-end_time options are used, the debug logs on the specified time
OPTIONS
-master_server
Job ID number of the verify job to analyze. Default is any job ID.
-backup_id
Backup ID number of the backup image that the verify job verified to analyze.
Default is any backup ID.
-policy_name
One or more "day stamps". This option identifies the log file names
(log.mmddyy for UNIX, mmddyy.log for Windows) that are analyzed.
OUTPUT FORMAT
The format of an output line is: daystamp.millisecs.program.sequence machine
log_line
633
634
NetBackup Commands
verifytrace
daystamp
EXAMPLES
EXAMPLE 1
The following example analyzes the log of verify job with job ID 2 that ran on
August 6, 2007.
# verifytrace -job_id 2 080607
EXAMPLE 2
The following example analyzes the verify jobs log that verify backup images with
backup ID pride_1028666945, which ran on 20th August 2007. This command
only analyzes those verify jobs that were ran with option -backupid
pride_1028666945.
# verifytrace -backup_id pride_1028666945 082007
EXAMPLE 3
The following example analyzes the verify jobs log that was ran on policy Pride-Std
and client pride on August 16, 2009 and August 23, 2009. This command only
analyzes those verify jobs that ran with options -policy Pride-Std and -client pride.
# verifytrace -policy_name Pride-Std -client_name pride 081609 082309
EXAMPLE 4
The following example analyzes the verify jobs log that ran on August 5, 2009
and August 17, 2009.
# verifytrace 080509 081709
NetBackup Commands
vltadm
vltadm
vltadm start the NetBackup Vault menu interface for administrators
SYNOPSIS
/usr/openv/netbackup/bin/vltadm [-version]
DESCRIPTION
This command operates only on UNIX and Linux systems.
vltadm is a menu interface utility that an administrator can use to configure
NetBackup Vault. You must have administrator privileges. This command can be
used from any character-based terminal (or terminal emulation window) for which
the administrator has a termcap or terminfo definition.
See the NetBackup Vault Administrators Guide and the vltadm online Help for
detailed operating instructions.
OPTIONS
-version
RETURN VALUES
Vault may exit with a status code greater than 255. Such status codes are called
extended exit status codes. For such a case, the exit status that is returned to the
system is 252. The actual exit status is written to stderr in the format, EXIT status
= exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
FILES
/usr/openv/netbackup/help/vltadm/*
/usr/openv/netbackup/db/vault/vault.xml
/tmp/bp_robots
/tmp/bp_vaults
/tmp/bp_profiles
/tmp/bp_duplicates
/tmp/_tmp
635
636
NetBackup Commands
vltcontainers
vltcontainers
vltcontainers move volumes logically into containers
SYNOPSIS
vltcontainers -run [-rn robot_number]
vltcontainers -run -usingbarcodes [-rn robot_number]
vltcontainers -run -vltcid container_id -vault vault_name -sessionid
session_id
vltcontainers -run -vltcid container_id -f file_name [-rn
robot_number] [-usingbarcodes]
vltcontainers -view [-vltcid container_id]
vltcontainers -change -vltcid container_id -rd return_date
vltcontainers -delete -vltcid container_id
vltcontainers -version
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
vltcontainers logically adds to containers the media that was ejected from one
or more vault sessions. It can view, set, or change the return date of containers
that go off-site or are already at the off-site vault. vltcontainers can also delete
a container from the NetBackup and Media Manager catalogs.
You can add media IDs to containers as follows:
Use the keyboard to enter the container and the media IDs.
Use a keyboard interface bar code reader to scan the container IDs and media
IDs. Keyboard interface readers are also known as keyboard wedge readers
because they connect (or wedge) between the keyboard and the keyboard port
on your computer.
Use an input file that contains the media IDs or numeric equivalents of bar
codes of all the media that are added to one container. To add media to more
than one container, enter the IDs by using the keyboard or a keyboard interface
bar code reader. Or, run the vltcontainers command again and specify
different container and file name options.
NetBackup Commands
vltcontainers
Add all the media that a specific session ejects to one container. To add media
from a single eject session into more than one container, enter IDs using the
keyboard or a keyboard interface bar code reader.
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.
See the "Specifying the locale of the NetBackup installation" topic in the NetBackup
Administrator's Guide, Volume II for more information.
Run the vltcontainers command from a NetBackup master server that is licensed
for Vault.
If the following directory with public-write access exists, vltcontainers writes
to its daily debug log file (log.DDMMYY where DDMMYY is current date):
UNIX and Linux systems: usr/openv/netbackup/logs/vault
Windows systems: install_path\netbackup\logs\vault
Public-write access is required because not all executable files that write to this
file can run as administrator or root user.
OPTIONS
-change
Changes the default return date for the container. The default return date of
a container is the date of the volume in the container that is returned the
latest. It requires the -vltcid container_id option.
-delete
Deletes the container record from the NetBackup and Media Manager catalogs.
You can delete a container only if it contains no media.
-f file_name
Specifies the file from which to read media IDs. All the listed media in the
file are added to the container that the -vltcid option specifies. The file can
be a list of media IDs (one per line). Or it can be the numeric equivalents of
bar codes (one per line) scanned into a file by a bar code reader.
-rd return_date
637
638
NetBackup Commands
vltcontainers
-rn robot_number
Specifies the robot, which is used to determine the EMM Server from which
the vltcontainers command should obtain media information. If -rn
robot_number is not used, the master server is considered as the EMM server.
The only media that can be added to containers is the media in the database
on the EMM server.
-run
Logically adds media to the container. If you specify no other options, you
must enter the container IDs and the media IDs by using the keyboard. To
use a bar code reader to scan the container and the media IDs, specify the
-usingbarcodes option. To add the media that a specific session ejects, use
the -vault vault_name and -sessionid session_id options. To add the
media that is specified in a file, use the -f file_name option. To specify an
EMM server other than the master server, use the -rn robot_number option.
-sessionid session_id
The ID of a vault session. All media that the specified session ejects is added
to the container that the -vltcid option specifies.
-usingbarcodes
Specifies a keyboard interface bar code reader that scans container IDs and
media IDs, or bar code numbers that are used in the file that -f file_name
specifies. Keyboard interface bar code readers (also called keyboard wedge
bar code readers) connect between the keyboard and the keyboard port on
your computer.
-vault vault_name
The name of the vault to which the profile that ejected the media belongs.
You also must specify the ID of the session (-sessionid) that ejected the
media to be added to the container.
-version
Shows the return date that is assigned to all containers. Use the -vltcid
container_id option and argument to show the return date of a
specific container.
-vltcid container_id
NetBackup Commands
vltcontainers
EXAMPLES
EXAMPLE 1
Use the following command to:
Add the volumes that are ejected from robot number 0 to containers
EXAMPLE 2
To view the return date of container ABC123, use the following command:
# vltcontainers -view -vltcid ABC123
EXAMPLE 3
To change the return date of container ABC123 to December 07, 2007, use the
following command:
# vltcontainers -change -vltcid ABC123 -rd 12/07/2007
EXAMPLE 4
To delete container ABC123 from the NetBackup and Media Manager catalogs,
use the following command:
# vltcontainers -delete -vltcid ABC123
EXAMPLE 5
To add all media that was ejected to container ABC123 by session 4 of vault
MyVault_Cntr, use the following command:
# vltcontainers -run -vltcid ABC123 -vault MyVault_Cntr -sessionid 4
EXAMPLE 6
To add the media that is listed in the medialist file that is ejected from robot
number 0 to container ABC123, use the following command:
UNIX and Linux systems: # vltcontainers -run -vltcid ABC123 -f
/home/jack/medialist -rn 0
Windows systems: # vltcontainers -run -vltcid ABC123 -f
C:\home\jack\medialist -rn 0
EXAMPLE 7
Use the following command to:
639
640
NetBackup Commands
vltcontainers
Add media to container ABC123 that was ejected from a robot that is attached
to the master server
Read the bar codes for that media from the medialist file
RETURN VALUES
Vault may exit with a status code greater than 255. Such status codes are called
extended exit status codes. For such a case, the exit status that returned to the
system is 252. The actual exit status is written to stderr in the format EXIT status
= exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
FILES
UNIX and Linux systems:
/usr/openv/netbackup/vault/sessions/cntrDB
/usr/openv/netbackup/db/vault/vault.xml
/usr/openv/netbackup/logs/vault
Windows systems:
install_path\NetBackup\vault\sessions\cntrDB
install_path\NetBackup\db\vault\vault.xml
install_path\netbackup\logs\vault
SEE ALSO
See vltadm on page 635.
See vltoffsitemedia on page 647.
See vltopmenu on page 651.
NetBackup Commands
vlteject
vlteject
vlteject eject media and generate reports for previously run sessions
SYNOPSIS
vlteject
vlteject -eject [-profile profile_name] [-robot robot_name] [-vault
vault_name [-sessionid id]] [-auto y|n] [-eject_delay seconds]
vlteject -report [-profile profile_name] [-robot robot_name] [-vault
vault_name [-sessionid id]] [-legacy]
vlteject -eject -report [-profile profile_name] [-robot robot_name]
[-vault vault_name [-sessionid id]] [-auto y|n] [-eject_delay seconds]
[-version] [-legacy]
vlteject -preview [-vault vault_name [-profile profile_name]]
[-profile robot_no / vault_name / profile_name] [-robot
robot_name][-sessionid id]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
vlteject ejects media and generates the corresponding reports (as configured
in the profiles) for vault sessions for which media have not yet been ejected.
vlteject can process the pending ejects and reports for all sessions, for a specific
robot, for a specific vault, or for a specific profile. To process all pending ejects
and reports, do not use the -profile, -robot, or -vault option.
vlteject operates only on sessions for which the session directory still exists.
641
642
NetBackup Commands
vlteject
By using the NetBackup policy schedule. The policy must be of type Vault, and
the policys file list must consist of a vlteject command.
If the following directory exists and has public-write access, vlteject writes to
its daily debug log file:
UNIX and Linux systems: usr/openv/netbackup/logs/vault
Windows systems: install_path\netbackup\logs\vault
The daily debug log file is log.DDMMYY; the DDMMYY is the current date.
Public-write access is required because not all executable files that write to this
file can run as administrator or root user. The host property "Keep vault logs for
n days" determines how long the vault session directories are retained.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-auto y|n
Ejects media for the indicated sessions. -eject is optional if eject was
completed and you only want to generate reports.
-eject_delay seconds
The number of seconds to delay before the media is ejected. This option is
useful if an operation such as backing up or duplication recently occurred on
the affected media. The default is 0. The maximum is 3600 (one hour).
-legacy
Generates reports by using the old-style consolidation. Valid only with the
-report option.
-preview
Lists the sessions and the media that are ejected for the sessions. Does not
eject the media.
NetBackup Commands
vlteject
Identifies a robot number, vault name, and profile name from which to eject
media and generate reports. All three options must be used with -profile.
To process all pending ejects and reports, use -profile with profile_name
only.
-report
Generates reports for the indicated sessions. If the corresponding eject process
has completed, it generates and distributes any pending reports from the
selected sessions. The reports are not generated again if vlteject is run
again. If the eject has not completed, the subset of reports that do not depend
on completion of eject are generated. These reports are generated again if
vlteject -report is run again after eject has completed.
-robot robot_no
Specifies the robot number that identifies the robot which you want to eject
media and generate reports. All vaults in the robot should use the same off-site
volume group. To process all pending ejects and reports, do not use the
-profile, -robot, or -vault option.
-sessionid id
The vault for which to eject media and generate reports. To process all pending
ejects and reports; do not use the -profile, -robot, or -vault option.
-version
EXAMPLES
EXAMPLE 1
To eject media and generate reports for all robots that have sessions for which
media have not yet been ejected, enter the following:
# vlteject -eject -report
EXAMPLE 2
To eject all media that have not yet been ejected for all sessions for the CustomerDB
vault and to generate corresponding reports, enter the following:
# vlteject -vault CustomerDB -eject -report
643
644
NetBackup Commands
vlteject
RETURN VALUES
Vault may exit with a status code greater than 255. Such status codes are called
extended exit status codes. For such a case, the exit status that is returned to the
system is 252. The actual exit status is written to stderr in the format, EXIT status
= exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
FILES
UNIX and Linux systems:
/usr/openv/netbackup/db/vault/vault.xml
/usr/openv/netbackup/logs/vault/log.mmddyy
/usr/openv/netbackup/vault/sessions/vlt_name/sidxxx/detail.log
/usr/openv/netbackup/vault/sessions/vlt_name/sidxxx/summary.log
/usr/openv/netbackup/vault/sessions/vlt_name/sidxxx/vlteject_status
/usr/openv/netbackup/vault/sessions/vlteject.mstr
/usr/openv/netbackup/bp.conf
Windows systems:
install_path\NetBackup\db\vault\vault.xml
install_path\NetBackup\logs\bpbrmvlt\mmddyy.log
install_path\NetBackup\logs\vault\mmddyy.log
install_path\NetBackup\vault\sessions\vlt_name\sidxxx\detail.log
install_path\NetBackup\vault\sessions\vlt_name\sidxxx\summary.log
install_path\NetBackup\vault\sessions\vlt_name\sidxxx\vlteject.status
install_path\NetBackup\vault\sessions\vlteject.mstr
install_path\NetBackup\bp.conf
SEE ALSO
See vltopmenu on page 651.
NetBackup Commands
vltinject
vltinject
vltinject inject volumes into a robot for a specified vault configuration
SYNOPSIS
vltinject profile|robot/vault/profile [-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
vltinject injects volumes into a robot and updates the Enterprise Media Manager
Database. It runs vmupdate and assigns it the robot number, robot type, and robotic
volume group from the vault configuration that matches the specified profile.
If the following directory exists and has public write access, vltinject writes to
the daily debug log file:
UNIX and Linux systems: usr/openv/netbackup/logs/vault
Windows systems: install_path\netbackup\logs\vault
The daily debug log file is log.DDMMYY; the DDMMYY is the current date.
You then can use this file for troubleshooting. Public-write access is needed because
not all executables that write to this file can run as administrator or root.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
profile|robot/vault/profile
The name of a profile or a robot number, vault, and profile that are nested
within the vault configuration file. If profile is used without robot and vault,
the profile must be unique. vltinject executes vmupdate with the robot
number, robot type, and robotic volume group from this profile's
configuration.
-version
645
646
NetBackup Commands
vltinject
EXAMPLES
EXAMPLE 1
To inject the volumes that the Payroll profile has vaulted and that were returned
from the off site vault, enter the following:
# vltinject Payroll
EXAMPLE 2
To inject the volumes that the Weekly profile (in the Finance vault) vaulted and
that the off-site vault has returned, the user enters the following:
# vltinject 8/Finance/Weekly
RETURN VALUES
0
not = 0
Vault may exit with a status code greater than 255. Such status codes are called
extended exit status codes. For such a case, the exit status that is returned to the
system is 252. The actual exit status is written to stderr in the format, EXIT status
= exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
FILES
UNIX and Linux systems:
/usr/openv/netbackup/logs/vault/log.mmddyy
Windows systems:
install_path\NetBackup\logs\vault\mmddyy.log
NetBackup Commands
vltoffsitemedia
vltoffsitemedia
vltoffsitemedia list off site parameter values for a group of media, or change
SYNOPSIS
vltoffsitemedia -list [-W] [-vault vault_name] [-voldbhost host_name]
vltoffsitemedia -change -m media_id [-voldbhost host_name] [-d
media_description] [-vltname vault_name] [-vltsent date][-vltreturn
date] [-vltslot slot_no] [-vltcid container_id] [-vltsession
session_id]
vltoffsitemedia -version
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
vltoffsitemedia allows the user to change the vault-specific parameters of a
given media. This command lets the user change one or more parameters by using
a single command. It lets the user view the various vault parameters of all media
for a particular EMM server or vault.
If you create the following directory with public-write access, vltoffsitemedia
creates a daily debug log in this directory:
UNIX: /usr/openv/netbackup/logs/vault
Windows: install_path\netbackup\logs\vault
The log is called log.DDMMYY (where DDMMYY is the current date). You then can
use this file that for troubleshooting.
Public-write access is needed because not all executables that write to this file
can run as root.
OPTIONS
-change
647
648
NetBackup Commands
vltoffsitemedia
Lists the off-site parameters for the media in the local EMM database. To
restrict the list to a specific vault for the local EMM database, include the
-vault option with the command. To list the off-site parameters for media for
a specific EMM database, include the -voldbhost option with the command.
-m media_id
Name of the vault for which all media IDs and their vault-specific parameters
are to be listed.
-version
Specifies the name of the logical vault that is configured for the robot that
ejected the volume.
-vltreturn date
Specifies the date and time the media was requested for return from the vault
vendor. For Catalog Backup volumes, this date is the date that the media is
requested for return from the vault vendor.
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
NetBackup Commands
vltoffsitemedia
-vltsent date
Specifies the date and time the media was sent to the off site vault.
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
mm/dd/yyyy [hh[:mm[:ss]]]
-vltsession session_id
Specifies the identifier of the Vault session that ejected this media.
-vltslot slot_no
Specifies the vault vendor's slot number for the slot that this volume occupies.
-voldbhost host_name
Specifies the parsable output format for the media off-site parameters. For
containers, the output includes the length of the container description, the
container description, and the container ID. The output header line is a space
that is separated line of column labels; the output data lines are
space-separated fields.
EXAMPLES
EXAMPLE 1
This command changes the vault name and the vault sent dates of the media with
the ID BYQ:
vltoffsitemedia -change -m BYQ -vltname THISTLE -vltsent 08/01/2009
12:22:00
EXAMPLE 2
The following command changes the vault slot number to 100 for a media with
ID 000012:
vltoffsitemedia -change -m 000012 -vltslot 100
649
650
NetBackup Commands
vltoffsitemedia
EXAMPLE 3
The following command clears out the vault-specific fields for a media:
vltoffsitemedia -change -m 000012 -vltname "" -vltsession 0 -vltslot
0 -vltsent 0 -vltreturn 0
or:
vltoffsitemedia -change -m 000012 -vltname - -vltsession 0 -vltslot
0 -vltsent 00/00/00 -vltreturn 00/00/00
EXAMPLE 4
To clear the container ID and media description of volume ABC123:
vltoffsitemedia -change -m ABC123 -vltcid - -d ""
or:
vltoffsitemedia -change -m ABC123 -vltcid "" -d ""
RETURN VALUES
Vault may exit with a status code greater than 255. Such status codes are called
"extended exit status codes." For such a case, the exit status that is returned to
the system is 252. The actual exit status is written to stderr in the format, EXIT
status = exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
NetBackup Commands
vltopmenu
vltopmenu
vltopmenu start NetBackup Vault menu interface for operators
SYNOPSIS
vltopmenu [-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
Allows the user to activate a menu screen that contains the various options that
an Operator of the NetBackup Vault feature can use. It lets the user eject or inject
media, print various reports individually or collectively. It also consolidates all
reports and ejects for all sessions that have not ejected media yet. This interface
can be used from any character-based terminal (or terminal emulation window)
for which the user has a termcap or a terminfo definition.
See the NetBackup Operators Guide for detailed operating instructions.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-version
RETURN VALUES
Vault may exit with an extended exit status code (greater than 255). For such a
case, the exit status is returned to the system is 252. The actual exit status is
written to stderr in the format, EXIT status = exit status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
651
652
NetBackup Commands
vltopmenu
FILES
UNIX and Linux systems:
/usr/openv/netbackup/vault/sessions/vlteject.mstr
/usr/openv/netbackup/vault/sessions/vlteject_status.log.timestamp
/usr/openv/netbackup/vault/sessions/*/sid*/detail.log
Windows systems:
install_path\NetBackup\vault\sessions\vlteject.mstr
install_path\NetBackup\vault\sessions\vlteject_status.log.ti
mestamp
install_path\NetBackup\vault\sessions\*\sid*\detail.log
NetBackup Commands
vltrun
vltrun
vltrun Run a NetBackup Vault session
SYNOPSIS
vltrun -haltdups -vjobs vault_jobid [profile | robot/vault/profile]
[-preview] [-verbose | -v] [-version]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
vltrun drives a NetBackup Vault session by issuing a sequence of calls to the vault
engine. Optionally, the session can include callouts to user-provided notify scripts.
OPTIONS
profile | robot/vault/profile
Specifies the name of a profile or a nested robot number, vault, and profile
in the vault parameter file. If profile is used without robot and vault, the
profile must be unique within the vault parameter file. This option is required.
-vjob vault_jobid
USAGE
The vltrun session follows this sequence:
653
654
NetBackup Commands
vltrun
Inventory media.
Initialize Media Manager database for the vault media that is returned to the
robot.
Duplicate images.
Inventory images.
Suspend media.
Re-inventory images.
By NetBackup policy scheduling. In this case, the policy must consist of type
Vault, and the policy's file list must consist of a vltrun command.
By running the command Start Session for a profile in the Vault GUI or
vltadm
You can use the profile form of the option if there is no other profile with the same
name in your vault configuration. In this case, the profile name is sufficient to
uniquely identify the configuration information.
NetBackup Commands
vltrun
If there is more than one profile with the same name, then use the
robot/vault/profile form to uniquely identify the configuration.
Do not modify your vault configuration while a vault session is running.
When the session starts, it creates a directory to hold the files that vltrun and
the vault engine create during the session.
The vault session uses the following directory:
UNIX and Linux systems:
/usr/openv/netbackup/vault/sessions/vault_name/sidxxx
Windows systems:
install_path\NetBackup\vault\sessions\vault_name\sidxxx
The xxx variable is an integer uniquely assigned to this session. For each vault
name, session identifiers are sequentially assigned, starting with 1.
If you have configured an email address in your vault properties, then email is
sent to this address at the end of the session. The email reports the results. By
default, email is sent to root.
vltrun produces an overview of the session, called summary.log, in the session
directory.
Control the vault process at several points in the session by installing notify scripts
in the directory for NetBackup binaries, /usr/openv/netbackup/bin. Refer to
the NetBackup Vault Administrators Guide for more information on notify scripts.
You can monitor the progress of your vltrun session in the NetBackup Activity
Monitor.
The Operation field on the main Activity Monitor window shows the progress of
your vault session by using the following statuses:
Choosing Images.
Duplicating Images.
Choosing Media.
Catalog Backup..
Done.
If you create the following directory with public-write access, vltrun creates a
daily debug log on this directory:
UNIX and Linux systems: usr/openv/netbackup/logs/vault
655
656
NetBackup Commands
vltrun
EXAMPLES
EXAMPLE 1
To vault the profile my_profile, enter:
# vltrun my_profile
EXAMPLE 2
The following command vaults the images for robot 0, vault
Financials, and profile Weekly:
# vltrun 0/Financials/Weekly
EXAMPLE 3
To terminate an active vault duplication job with the ID of 1, enter:
# vltrun -haltdups -vjob 1
RETURN VALUES
On UNIX and Linux systems, vault may exit with a status code greater than 255.
For these extended exit status codes, the status that is returned to the system is
NetBackup Commands
vltrun
252. The actual exit status is written to stderr in the format, EXIT status = exit
status
The extended exit status values are documented in the NetBackup Troubleshooting
Guide and in the NetBackup Troubleshooting Wizard.
FILES
UNIX and Linux systems:
/usr/openv/netbackup/vault
/usr/openv/netbackup/bp.conf
/usr/openv/netbackup/logs/bpcd/log.mmddyy
/usr/openv/netbackup/logs/vault/log.mmddyy
/usr/openv/netbackup/db/vault/vault.xml
/usr/openv/netbackup/vault/sessions/vault_name/sidxxx
/usr/openv/netbackup/vault/sessions/vault_name/sidxxx/summar
y.log
/usr/openv/netbackup/vault/sessions/vault_name/sidxxx/detail
.log
Windows systems:
install_path\NetBackup\vault
install_path\NetBackup\bp.conf
install_path\NetBackup\logs\bpbrmvlt\mmddyy.log
install_path\NetBackup\logs\bpcd\mmddyy.log
install_path\NetBackup\logs\vault\mmddyy.log
install_path\NetBackup\db\vault\vault.xml
install_path\NetBackup\vault\sessions\vault_name\sidxxx
install_path\NetBackup\vault\sessions\vault_name\sidxxx\summ
ary.log
install_path\NetBackup\vault\sessions\vault_name\sidxxx\deta
il.log
SEE ALSO
See vltadm on page 635.
See vlteject on page 641.
See vltinject on page 645.
See vltoffsitemedia on page 647.
See vltopmenu on page 651.
657
658
NetBackup Commands
vmadd
vmadd
vmadd add volumes to EMM database
SYNOPSIS
vmadd -m media_id -mt media_type [-h EMM_server |
volume_database_host] [-verbose] [-b barcode] [-rt robot_type] [-rn
robot_number] [-rh robot_host] [-rc1 rob_slot] [-rc2 rob_side] [-p
pool_number] [-mm max_mounts | -n cleanings] [-d "media_description"]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Add volumes to the Enterprise Media Manager (EMM) Database.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-m media_id
Specifies the media ID of the volume to add. The media ID can be a maximum
of 6 ASCII characters. The actual character input is restricted to alpha
numerics and '.', '+', '_', and '-' if they are not the first character.
The following applies only to NetBackup Enterprise Server:
-mt media_type
NetBackup Commands
vmadd
-h EMM_server | volume_database_host
Specifies the robot type of the robot where the volume is located.
Valid robot types for NetBackup Enterprise Server are as follows:
none, acs, tl4, tl8, tld, tlh, tlm.
Valid robot types for NetBackup server are as follows:
none, tl4, tl8, tld.
-rn robot_number
Unique, logical identification number for the robot where the volume is
located.
-rh robot_host
Name of the host that controls the robot, where the volume is located.
-rc1 rob_slot
Robot coordinate 1 is the slot number in the robot where the volume is located.
The following applies only to NetBackup Enterprise Server:
Do not enter slot information for Media Manager API robot types. The robot
software tracks the slot locations for these robots.
-p pool_number
Index of the volume pool that contains this volume. You can use vmpool
-listall to determine the index for a given pool name.
659
660
NetBackup Commands
vmadd
-mm max_mounts
Maximum number of mounts that are allowed for this volume. Only used for
non-cleaning media. When this limit is exceeded, the volume can be mounted
for read operations only.
-n cleanings
The number of cleanings that remain for this volume. Only used for cleaning
media.
-d "media_description
"Media description of the volume. The double quote marks are required if the
description contains any spaces.
EXAMPLES
The following command adds volume AJU244 in the NetBackup volume pool to
the EMM database on the host that is named llama.
The volume has the barcode AJU244 and is in slot 2 of TLD robot 1. For write
operations, the volume may be mounted a maximum of 1000 times.
The following point applies only to NetBackup server :
Only one host (the master) exists, so the -h option is not needed.
Note: This command is usually entered on only one line.
# vmadd -m AJU244 -mt dlt -h llama -b AJU244 -rt tld -rn 1 -rh llama
-rc1 2 -p 1 -mm 1000 -d "vmadd example"
NOTES
Only limited validation of the option parameters is done.
SEE ALSO
See vmchange on page 663.
See vmdelete on page 674.
See vmpool on page 685.
See vmquery on page 688.
NetBackup Commands
vmadm
vmadm
vmadm run character-based media management utility
SYNOPSIS
/usr/openv/volmgr/bin/vmadm [-t]
DESCRIPTION
This command operates only on UNIX and Linux systems.
Use vmadm to manage the volumes and volume pools, the barcode rules, and the
inventory robots that the Media Manager volume daemon (vmd) controls. You
must have superuser privileges to run this utility.
This utility has a character-based user interface and can be used from any terminal.
When this utility runs, the administrator is presented with a menu of operations
that can be performed.
You can also start the tpconfig utility from vmadm.
OPTIONS
-t
ERRORS
If vmd is not running, most vmadm operations fail and the following message
appears:
unable to validate server: cannot connect to vmd (70)
FILES
/usr/openv/volmgr/help/vmadm* (these are help files)
EMM database
SEE ALSO
See ltid on page 423.
See tpconfig on page 609.
661
662
NetBackup Commands
vmadm
NetBackup Commands
vmchange
vmchange
vmchange change media information in EMM database
SYNOPSIS
vmchange [-h EMM_server | volume_database_host] -vg_res -rt robot_type
-rn robot_number -rh robot_control_host -v volume_group
vmchange [-h EMM_server | volume_database_host] -res -m media_id -mt
media_type -rt robot_type -rn robot_number -rh robot_control_host -v
volume_group -rc1 rob_slot
vmchange [-h EMM_server | volume_database_host] -exp date -m media_id
vmchange [-h EMM_server | volume_database_host] -barcode barcode -m
media_id [-rt robot_type]
vmchange [-h EMM_server | volume_database_host] -m media_id -vltcid
vault_container_id
vmchange [-h EMM_server | volume_database_host] -barcode barcode
-vltcid vault_container_id
vmchange [-h EMM_server | volume_database_host] -d "media_description"
-m media_id
vmchange [-h EMM_server | volume_database_host] -p pool_number -m
media_id
vmchange [-h EMM_server | volume_database_host] -maxmounts max_mounts
-m media_id
vmchange [-h EMM_server | volume_database_host] -clean cleanings left
-m media_id
vmchange [-h EMM_server | volume_database_host] -n num_mounts -m
media_id
vmchange [-h EMM_server | volume_database_host] -new_mt media_type
-m media_id
vmchange [-h EMM_server | volume_database_host] -new_rt robot_type
-m media_id -rn robot_number
vmchange [-h EMM_server | volume_database_host] -new_v volume_group
[-m media_id |{-b barcode -mt media_type -rt robot_type}]
vmchange [-h EMM_server | volume_database_host] -vltname vault_name
-m media_id
vmchange [-h EMM_server | volume_database_host] -vltsent date -m
media_id
vmchange [-h EMM_server | volume_database_host] -vltreturn date -m
media_id
663
664
NetBackup Commands
vmchange
DESCRIPTION
Change volume information in the Enterprise Media Manager database.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-h EMM_server | volume_database_host
Specifies the robot type of the robot where the volume is located.
NetBackup Commands
vmchange
Unique, logical identification number for the robot where the volume is
located.
-rh robot_control_host
Name of the host that controls the robot, where the volume is located.
-v volume_group
Robot coordinate 1 is the robot slot number where the volume is located.
The following applies only to NetBackup Enterprise Server:
Do not enter slot information for API robot types. The robot software tracks
the slot locations for these robots.
-exp date
665
666
NetBackup Commands
vmchange
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
-barcode barcode
Media description for the volume. The double quote marks are required if the
description contains any spaces.
-p pool_number
Index of the volume pool that contains this volume. You can get the pool
index using vmpool -listall.
-maxmounts max_mounts
Maximum number of mounts that are allowed for this volume. Only used for
non-cleaning media.
-n num_mounts
For non-cleaning media, num_mounts is the number of times this volume has
been mounted.
-clean cleanings_left
For cleaning media, cleanings_left is the number of cleanings that remain for
this cleaning tape.
-new_mt media_type
Specifies the media type of the volume to change. See the -mt option for a
list of media types.
-new_rt robot_type
Specifies the robot type. See the -rt option for a list of robot types.
-new_v volume_group
NetBackup Commands
vmchange
-vltname vault_name
Specifies the name of the logical vault that is configured for the robot that
ejected the volume.
-vltsent date
Specifies the date the volume was requested for return from the vault vendor.
For catalog backup volumes, this date is the date that the volume is requested
for return from the vault vendor.
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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
-vltslot vault_slot
Specifies the vault vendor's slot number for the slot that this volume occupies.
-vltsession vault_session_id
Eject ACS, TLH, or TLM volumes from the specified robot. For ACS and TLM
robots, the ejection timeout period is one week. For TLH robots, the robot
allows an unlimited period to remove media.
-map map_id:mapid: ...:mapid | any
For ACS robots, this option can specify multiple media access ports (MAPs)
to use for eject operations. The map_id (also known as the CAP ID) can be all
or ALL, which specifies all MAPs in the robot. Or it can be a colon-separated
list of MAP IDs in the format of ACS,LSM,CAP. When the -map option is used,
media are ejected to the MAPs that are specified by using a nearest MAP
algorithm. The algorithm assumes that the LSMs are connected in a line. If
your LSMs connect in a configuration other than a line, see the NetBackup
667
668
NetBackup Commands
vmchange
Administrators Guide: Adjacent LSM Specification for ACS Robots and Media
Access Port Default for ACS Robots.
For TLM robots, use map_id "ANY" to eject to the MAP that is configured for
each media type on the DAS/SDLC server.
For TLH robots, select the "standard" MAP or the "BULK" MAP, depending
on the librarys hardware configuration.
-w
Wait flag. This flag must be used with the eject, multiple eject, and multiple
inject commands.
-verbose
Uses the robotic librarys media access port to eject multiple volumes. This
option is valid only for TL8 and TLD robot types. The ejection timeout period
is 30 minutes.
-multi_inject
Uses the robotic librarys media access port to inject multiple volumes. This
option is valid only for TL8 and TLD robot types. The user must run the
vmupdate command after this operation to update the EMM database.
-robot_info
Retrieves information about a robotic library. This option is valid only for
TLD and TL8 robot types
CAUTIONS
Some robotic libraries implement different functionality for their media access
ports. For example, some libraries have the front-panel inject and the eject features
that conflict with NetBackups use of the media access port. (For example, Spectra
Logic Bullfrog.) Other libraries require front-panel interaction when you use the
media access port (for example, Spectra Logic Gator).
The media is returned to (injected into) the robot in the following situation: you
use an eject option and the media is not removed and a timeout condition occurs.
If this action occurs, inventory the robot and then eject the media that was
returned to the robot.
Make sure that you read the operator manual for your robotic library to gain an
understanding of its media access port functionality. Libraries such as those that
NetBackup Commands
vmchange
are noted may not be fully compatible with NetBackups inject and eject features
if not properly handled. Other libraries may not be compatible at all. In addition,
NetBackup performs limited validation of these option parameters.
EXAMPLES
EXAMPLE 1
The following command changes the expiration date of volume AJS100:
# vmchange -exp 12/31/99 23:59:59 -m AJS100
EXAMPLE 2
The following command changes the pool (which contains volume AJS999) to pool
1 (the NetBackup pool):
# vmchange -p 1 -m AJS999
EXAMPLE 3
The following command ejects volumes abc123 and abc124 from ACS robot number
700. The residences for these two volumes are changed to stand alone.
# vmchange -res -api_eject -w -ml abc123:abc124 -rt acs -rn 700 -rh
verbena -map 0,0,0
EXAMPLE 4
The following command changes the container ID of volume ABC123:
# vmchange -vltcid Container001 -m ABC123
SEE ALSO
See vmadd on page 658.
See vmdelete on page 674.
See vmpool on page 685.
See vmquery on page 688.
669
670
NetBackup Commands
vmcheckxxx
vmcheckxxx
vmcheckxxx report the media contents of a robotic library
SYNOPSIS
vmcheckxxx -rt robot_type -rn robot_number [-rh robot_host] [-h
EMM_server | volume_database_host] [[-if inventory_filter_value] [-if
inventory_filter_value] ...] [-full] [-list]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Report the media contents of a robotic library and optionally compare its contents
with the volume configuration.
If no options are specified, the media contents of the robot and the volume
configuration are listed along with a list of any mismatches detected.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-rt robot_type
Name of the host that controls the robot. If no host is specified, the host where
you execute this command is assumed.
NetBackup Commands
vmcheckxxx
-h EMM_server | volume_database_host
Specifies the full inventory. The -full and -if options cannot be specified
together.
-list
NOTES
Only limited validation of the option parameters is done.
EXAMPLES
EXAMPLE 1
The following command lists the media contents of TLD robot 1 and the volume
configuration for that robot on the host named server2. It also lists any mismatches
that are detected:
# vmcheckxxx -rt tld -rn 1 -rh server2
EXAMPLE 2
The following command lists the contents of TLH robot 2 that is connected to the
host where the vmcheckxxx command was ran:
# vmcheckxxx -rt tlh -rn 2 -list
SEE ALSO
See vmupdate on page 696.
671
672
NetBackup Commands
vmd
vmd
vmd run EMM daemon
SYNOPSIS
/usr/openv/volmgr/bin/vmd [-v]
DESCRIPTION
This command operates only on UNIX and Linux systems.
vmd provides a proxy to the EMM database for pre-NetBackup 6.0 servers that
OPTIONS
-v
NetBackup Commands
vmd
ERRORS
vmd logs an error message using syslogd if there is a copy of vmd in operation.
vmd logs an error message using syslogd if the port that it binds to is in use. If
this message appears, you may need to override the services file by using the
mechanism that is described under DESCRIPTION.
To run vmd in debug mode do the following:
If problems persist, you can obtain more debug information on the requestor by
creating the following directory: /usr/openv/volmgr/debug/reqlib.
One log per day is created in each debug directory. These logs continue to build
until the debug directory is moved or removed, unless you specify a
DAYS_TO_KEEP_LOGS entry in vm.conf. Do not remove the debug directory while
vmd is running. Only run vmd in debug mode when necessary.
FILES
/usr/openv/volmgr/debug/daemon/*
/usr/openv/volmgr/debug/reqlib/*
EMM database
SEE ALSO
See ltid on page 423.
See vmadd on page 658.
See vmadm on page 661.
See vmchange on page 663.
See vmdelete on page 674.
See vmquery on page 688.
673
674
NetBackup Commands
vmdelete
vmdelete
vmdelete delete volumes from EMM database
SYNOPSIS
vmdelete [-h EMM_server | volume_database_host] [-m media_id | -v
volume_group]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Delete volumes from the Enterprise Media Manager database.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-h EMM_server | volume_database_host
Specifies the media id of the volume to delete from the volume database.
-v volume_group
Specifies the volume group to delete. All volumes in this group are deleted
from the volume database.
NOTES
Only limited validation of the option parameters is done.
NetBackup Commands
vmdelete
EXAMPLES
The following command deletes a single volume:
vmdelete -m AJS144
The following command deletes all volumes with the volume group name of
DELETE_ME:
vmdelete -v DELETE_ME
SEE ALSO
See vmadd on page 658.
See vmchange on page 663.
See vmquery on page 688.
675
676
NetBackup Commands
vmoprcmd
vmoprcmd
vmoprcmd perform operator functions on drives
SYNOPSIS
vmoprcmd -devmon [pr | ds | hs] [-h device_host] default_operation
vmoprcmd -dp [pr | ds | ad] [-h device_host]
vmoprcmd -down | -up | -upopr | -reset drive_index [-h device_host]
vmoprcmd -downbyname | -upbyname | -upoprbyname | -path drive_path]
[-nh ndmp_hostname] [-h device_host]
vmoprcmd -resetbyname drive_name [-h device_host]
vmoprcmd -assign drive_index mount_request_id [-h device_host]
vmoprcmd -assignbyname drive_name mount_request_id [-h device_host]
vmoprcmd -deny | -resubmit mount_request_index [-h device_host]
vmoprcmd -comment drive_index ["comment"] [-h device_host]
vmoprcmd -commentbyname drive_name ["comment"] [-h device_host]
vmoprcmd -crawlreleasebyname drive_name [-h EMM_Server]
vmoprcmd [-activate_host | -deactivate_host] [-h device_host]
vmoprcmd -hoststatus [-h device_host]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Perform operator functions on drives. The -h option is not required, but you must
choose only one of the following other options.
Non NDMP Windows device paths appear as {p,b,t,l}: where p is the port, b is the
bus, t is the target, and l is the LUN. When vmoprcmd is run by using the -path
argument, specify the path in the {p,b,t,l} format.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-assign drive_index mount_request_id
NetBackup Commands
vmoprcmd
This option is similar to the -assign option, except the drive name specifies
the drive instead of the drive index.
The following point applies only to NetBackup server:
The device host is the host where Media Manager is installed.
-comment drive_index ["comment"]
Add a comment for the drive. The quotes are required if your comment
contains any spaces. If you do not specify comment, any existing comments
for the drive are deleted.
-commentbyname drive_name ["comment"]
This option is similar to the -comment option, except the drive name specified
the drive instead of drive index.
-crawlreleasebyname drive_name
is normally used only for security reasons. For a drive in a robot, OPR and
AVR are treated identically while the robot daemon or process is running.
-reset Resets the specified drive. Also, it unloads the drive (if not assigned
in the EMM database). You can use the unload capability to unload the media
that is stuck in the drive.
-downbyname | -upbyname | -upoprbyname | -resetbyname drive_name
These options are similar to -down, -up, -upopr, and -reset respectively,
except the drive name specifies the drive instead of the drive index.
-deny | -resubmit mount_request_id
-deny Denying a mount request returns an error message to the user.
677
678
NetBackup Commands
vmoprcmd
a robot, you must correct the problem and resubmit the request that caused
the message.
-dp [pr | ds | ad]
The -dp command lists all of the drive paths that are configured for a given
drive name. If none of the following optional display parameters are specified,
all information is displayed.
pr Displays any pending requests.
ds Displays the status of drives under control of Media Manager.
hs Displays additional status of drives under control of Media Manager.
-h EMM_Server | device host
Name of the Enterprise Media Manager database host where the drives are
attached and configured. If no host option is specified, the device host where
you run the command is default.
The device host is the host where the device is attached and configured.
-hoststatus
Displays the current status of the host. The following states can appear:
DEACTIVATED - This state prevents any new jobs from starting on this host.
ACTIVE - The media server is available to run any jobs.
ACTIVE-DISK - The media server is available to run jobs for disk storage units
only.
ACTIVE-TAPE - The media server is available to run jobs for tape storage
units only.
OFFLINE - The media server is not available to run jobs for either tape storage
units or disk storage units. This state occurs because the media server is not
active for tape or disk, or because the master server cannot communicate
with the media server.
-nh ndmp_hostname
NetBackup Commands
vmoprcmd
-activate_host
Specifies the system name for the drive. For example, /dev/rmt/0cbn.
-setpath drivepath drive_name ndmp_hostname
Specifies the system name and the drive name of the NDMP host.
NOTES
Only limited validation of the option parameters is done.
tpconfig -d, tpconfig -l, and vmoprcmd may truncate long drive names. Please
EXAMPLES
EXAMPLE 1
The following command sets the drive, with a drive index of 0, to UP mode:
# vmoprcmd -up 0
EXAMPLE 2
The following command displays the drive status of all drives:
# vmoprcmd -d ds
EXAMPLE 3
The following command displays pending requests and the drive status of all
drives on the device host named crab:
# vmoprcmd -h crab
EXAMPLE 4
The following command demonstrates how non-NDMP Windows device paths
appear.
# vmoprcmd
HOST STATUS
679
680
NetBackup Commands
vmoprcmd
Host Name
=========================================
hamex
Version
=======
600000
Host Status
===========
ACTIVE
PENDING REQUESTS
<NONE>
DRIVE STATUS
Drive Name
Label
Ready RecMID ExtMID Wr.Enbl. Type
Host
DrivePath
Status
===================================================================
IBM.ULTRIUM-TD2.001
No
No
No
hcart2
hamex
{3,1,0,2}
TLD
hamex
{3,1,1,2}
TLD
IBM.ULTRIUM-TD1.004
hamex
hamex
No
No
{3,1,0,7}
{3,1,1,7}
No
hcart
TLD
TLD
IBM.ULTRIUM-TD2.005
hamex
Yes
Yes
J945L2
{3,1,2,1}
Yes
hcart2
TLD
IBM.ULTRIUM-TD2.006
hamex
No
No
{3,1,2,2}
No
hcart2
TLD
NetBackup Commands
vmphyinv
vmphyinv
vmphyinv inventory media contents of a robotic library or stand-alone drive and
SYNOPSIS
vmphyinv -rn robot_number] [-rh robot_control_host] [-h
device_host][-pn pool_name] [-v volume_group] [-rc1 robot_coord1
-number number] [-drv_cnt count] [-non_interactive] [-mount_timeout
timeout] [-priority number] [-verbose]
vmphyinv -rn robot_number] [-rh robot_control_host] [-h device_host]
-ml media_id:media_id:...:media_id [-drv_cnt count] [-non_interactive]
[-mount_timeout timeout] [-priority number] [-verbose]
vmphyinv -rn robot_number] [-rh robot_control_host] [-h device_host]
[ { { [-slot_range from to] [-slot_list s1:s2:...:sN] } -d density
} { { [-slot_range from to] [-slot_list s1:s2:...:sN] } -d density
} ] [-drv_cnt count] [-non_interactive] [-mount_timeout timeout]
[-priority number] [-verbose]
vmphyinv {-u drive_number | -n drive_name} [-h device_host]
[-non_interactive] [-mount_timeout timeout] [-verbose]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Physically inventory the media contents of a robotic library or stand-alone drive
and update the EMM database. Based on information in the tape header, vmphyinv
mounts each media that the search criterion specifies, reads the tape header, and
updates the EMM database.
For more information about this command, refer to the NetBackup Administrators
Guide, Volume I.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Encryption Guide.
681
682
NetBackup Commands
vmphyinv
OPTIONS
-rn robot_number
Specified the name of the host that controls the robot. If no host is specified,
the host where this command is executed is assumed.
-h device_host
Specifies the device host name. This option is used to obtain the Enterprise
Media Manager Server name. If not specified, the current host is used to
obtain the EMM server name.
-pn pool_name
Specifies a new priority for the inventory job that overrides the default job
priority.
-v volume_group
Specifies the volume group of the volumes, that correspond to the robot that
the -rn option specifies, which need to be inventoried. Valid only when the
-rn option is specified.
-rc1 robot_coord1
Specifies the starting slot of the media that needs to be inventoried. Valid
only when the -rn option is specified.
-number number
Specifies the number of slots that start from robot_coord1 that need to be
inventoried. Valid only when -rn and -rc1 are also specified.
-ml media_id1:media_id2: ... :media_idN
Specifies a list of media, which need to be inventoried. Valid only when -rn
option is specified. If the media ID that is specified does not belong to the
specified robot, the media is skipped.
-slot_range from to
Specifies a range of slots that need to be inventoried. If one or more slots are
empty, those slots are skipped.
NetBackup Commands
vmphyinv
-slot_list s1:s2:...sN
Specifies a list of slots that need to be inventoried. If one or more slots are
empty, those slots are skipped.
-d density
Specifies the density of the media. The user must specify the media density
and inventory the media by slot range or slot list.
-u drive_number
Specifies the drive index that needs to be inventoried. The drive must contain
media and be ready. The number for the drive can be obtained from the Media
and Device Management of the Administration Console.
-n drive_name
Specifies the drive name that needs to be inventoried. The drive must contain
media and be ready. The name for the drive can be obtained from the Media
and Device Management of the Administration Console.
-non_interactive
vmphyinv, in the default mode, displays a list of recommendations and asks
for confirmation before it modifies the volume database and Enterprise Media
Manager Database (if required). If this option is specified, the changes are
applied without any confirmation.
-mount_timeout timeout
Selects the verbose mode. When you specify this option, more information
appears. For example, this information consists of the following: The number
of available drives, what is found on each tape, and catalog identification if
the media is a catalog.
EXAMPLES
EXAMPLE 1
683
684
NetBackup Commands
vmphyinv
The following command updates the EMM database of robot 1 connected to host
shark:
# vmphyinv -rn 1 -rh shark
EXAMPLE 2
The following command updates the EMM database of robot 7 connected to host
whale. Only the media that belongs to the pool name "some_pool" is inventoried:
# vmphyinv -rn 7 -rh whale -pn some_pool
EXAMPLE 3
The following command updates the EMM database of robot 3 connected to host
dolphin. Only the media A00001, A00002, A00003 is inventoried.
# vmphyinv -rn 3 -rh dolphin -ml A00001:A00002:A00003
EXAMPLE 4
The following command updates the EMM database of robot 2 of type TLD that
is connected to host phantom. It only inventories the media in slots 3 to 8.
# vmphyinv -rn 2 -rh phantom -slot_range 3 8 -d dlt
EXAMPLE 5
The following command updates the EMM database of stand-alone drive (drive
index 3) attached to host tigerfish:
# vmphyinv -u 0 -h tigerfish
SEE ALSO
See vmupdate on page 696.
See vmcheckxxx on page 670.
See vmoprcmd on page 676.
NetBackup Commands
vmpool
vmpool
vmpool manage volume pools
SYNOPSIS
vmpool [-h EMM_server | volume_database_host] -list_all [-b|-bx] |
-list_scratch | -list_catalog_backup | -create -pn pool_name
-description description [-mpf mpf_max] | -update -pn pool_name
[-description description] [-reason "string"] [-mpf mpf_max] | -delete
pool_name | -set_scratch pool_name | -unset_scratch pool_name |
-set_catalog_backup pool_name | -unset_catalog_backup pool_name
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Use this command to add, change, delete, or list volume pools.
The -h option is not required, but you must choose one and only one of the other
seven options (for example, -list_scratch).
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-h EMM_server | volume_database_host
Lists the information about all volume pools. Use the -b or -bx option to
specify a brief format for volume pool information.
-list_scratch
Lists all configured scratch pools and the pool index number.
685
686
NetBackup Commands
vmpool
-list_catalog_backup
Adds a new volume pool. Optionally limits the number of partially full media
to be used in this pool by using -mpf. The default value is zero (0), which
indicates that the number of partially full media is unlimited.
The -description option describes the volume pool. Double quote marks are
required if the description contains any spaces.
-update -pn pool_name [-description description] [-mpf mpf_max]
Indicates the reason why you are performing this command action. The reason
text string that you enter is captured and appears in the audit report. The
string must be enclosed by double quotes ("...") and cannot exceed 512
characters. It cannot begin with a dash character (-) nor contain a single
quotation mark (').
-set_scratch pool_name
Specifies the volume pool to back up the NetBackup catalog. You can also
create a dedicated catalog backup pool to be used for catalog policies. A
dedicated catalog volume pool reduces the number of needed tapes during
NetBackup Commands
vmpool
catalog restores since catalog backup media are not mixed with other backup
media.
-unset_catalog_backup_pool pool_name
Defines a volume pool that you do not want to use to back up the NetBackup
catalog.
NOTES
Only limited validation of the option parameters is done.
A pool cannot be both a scratch pool and Catalog Backup pool.
The -add and -change options have been deprecated. They can still be used, but
do not set the mpf value.
EXAMPLES
EXAMPLE 1
The following command adds a new pool named MyPool on the host that is named
llama. It has the default host, user ID, and group ID permissions:
vmpool -create -pn MyPool -description "description with spaces"
-mpf 17
EXAMPLE 2
The following command lists all pools that are configured on the host where the
command is executed:
vmpool -list_all -b
687
688
NetBackup Commands
vmquery
vmquery
vmquery query EMM database, or assign and unassign volumes
SYNOPSIS
vmquery [-h EMM_server | volume_database_host, ... -h EMM_server |
-h volume_database_host, ... -h volume_database_host] [-vltcid
vault_container_id] [-b | -w | -W | l] -a | -m media_id | -v
volume_group | -rn robot_number | -rt robot_type | -mt media_type |
-p pool_number | -pn pool_name | -res robot_type robot_number
robot_control_host robot_coord1 robot_coord2 | -assignbyid media_id
media_type pool_number stat asg_time | -deassignbyid media_id
pool_number stat
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Query the EMM database for volume information. The -h, -b, -W, and -w options
are not required, but you must choose one and only one of the other (twelve)
options.
The -b or -w option can be used with any of the other 11 options, but the -b or -w
options cannot be specified together.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-h EMM_Server | volume_database_host
NetBackup Commands
vmquery
-b
Specifies the brief output format for volume information. This option can be
used with any of the other 11 options.
-w
Specifies the wide output format for volume information. This option includes
any additional information that the -b option does not show and can be used
with any of the other 11 options.
-a
Queries the volumes by the type of robot where the volume is located.
Valid robot types for NetBackup Enterprise Server follow:
none, acs, tl4, tl8, tld, tlh, tlm.
Valid robot types for NetBackup Server follow:
none, tl4, tl8, tld.
-mt media_type
689
690
NetBackup Commands
vmquery
-p pool_number
Queries the volumes by pool number. Pool number is an index into the volume
pool. You can use vmpool -listall to determine the index for a given pool
name.
-pn pool_name
Specifies the host that controls the robot where the volume is located.
rob_slot
Specifies the slot number in the robot (robot coordinate 1) where the volume
resides.
-assignbyid media_id media_type pool_number stat asg_time
Assigns the volume by media ID, pool, and status. This option can only assign
non-NetBackup media. Non-NetBackup media include the media that the
following use: Veritas Storage Migrator, Veritas Data Lifecycle Manager, or
by users that work outside of the NetBackup policy framework (for example,
those using tpreq directly).
The -assignbyid option cannot be used with media of status (stat) 0 (regular
NetBackup tapes) or 1 (NetBackup catalog tapes).
stat
This option applies only to volumes that are assigned to NetBackup or Storage
Migrator.
Specifies the time when the volume was assigned. It is the number of seconds
since 00:00:00 UTC, January 1, 1970. asg_time was originally created by using
the time() call.
NetBackup Commands
vmquery
Unassigns the volume by media ID, pool, and status. This option can only
deassign non-NetBackup media. Non-NetBackup media includes the media
that the following use: Veritas Storage Migrator, Veritas Data Lifecycle
Manager, or the users that work outside of the NetBackup policy framework
(for example, those using tpreq directly). To deassign NetBackup tapes, use
the bpexpdate command.
The -deassignbyid option cannot be used with media of status (stat) 0 (regular
NetBackup tapes) or 1 (NetBackup catalog tapes).
-vltcid vault_container_id
Lists the volumes that are stored in the container. The vault_container_id
variable can be a string of up to 29 alphanumeric characters.
-W
The MediaID field is padded to six characters by adding spaces to the end
of the string.
For Vault containers, the output includes the length of the container
description (DescriptionLength), the container description, and the
container ID. The output header line is a space-separated line of column
labels.
NOTES
Only limited validation of the option parameters is done.
EXAMPLES
EXAMPLE 1
The following command lists all volume information, in brief format from the
Enterprise Media Manager database on the host that is named llama:
# vmquery -h llama -b -a
EXAMPLE 2
691
692
NetBackup Commands
vmquery
EXAMPLE 3
The following command unassigns volume A23456, which is in pool 2 (Storage
Migrator), with a status of 0:
# vmquery -deassignbyid A23456 0
SEE ALSO
See vmadd on page 658.
See vmchange on page 663.
See vmdelete on page 674.
See vmpool on page 685.
NetBackup Commands
vmrule
vmrule
vmrule manage barcode rules
SYNOPSIS
vmrule [-h EMM_server | volume_database_host] -listall [-b] | -add
barcode_tag media_type pool_name max_mounts "description" | -change
barcode_tag media_type pool_name max_mounts "description" | -delete
barcode_tag
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Use vmrule to add, change, delete, or list barcode rules. The -h option is not
required, but you must choose one and only one of the other four options.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-h EMM_server | volume_database_host
Lists information about all barcode rules. You can use the -b option to specify
a brief format for the barcode rule information that is displayed.
-add barcode_tag media_type pool_name max_mounts "description"
693
694
NetBackup Commands
vmrule
-delete barcode_tag
Specifies the media type of the volume, a barcode rule attribute. This option
affects whether the rule is used. It also affects the media type for the volumes
that are added by using a robot inventory update.
Valid media types for NetBackup Enterprise Server follow:
4mm, 8mm, 8mm2, 8mm3, dlt, dlt2, dlt3, dtf, hcart, hcart2, hcart3, qcart,
4mm_clean, 8mm_clean, 8mm2_clean, 8mm3_clean, dlt_clean, dlt2_clean,
dlt3_clean, dtf_clean, hcart_clean, hcart2_clean, hcart3_clean.
Valid media types for NetBackup Server follow:
4mm, 8mm, dlt, hcart, qcart, 4mm_clean, 8mm_clean, dlt_clean, hcart_clean.
pool_name
Maximum number of mounts that are allowed for this volume (when the
volume is added). This option is used only for non-cleaning media. When this
limit is exceeded, the volume can only be mounted for read operations.
Note: Numbers larger than 99999 are stored in the database, but vmrule
displays the max_mounts as 0 if the value is larger than 99999. A value of
zero means that the number of mounts is unlimited.
"description"
Description of the barcode rule. The double quote marks are required if the
description contains any spaces.
NOTES
Only limited validation of the option parameters is done.
EXAMPLES
The following command creates a rule that defines any tape with a barcode that
starts with ABC is a DLT tape in the NetBackup pool. The tape can be mounted up
to 100 times for writes and is given a description.
NetBackup Commands
vmrule
SEE ALSO
See vmupdate on page 696.
695
696
NetBackup Commands
vmupdate
vmupdate
vmupdate inventory media contents of a robotic library and update the EMM
database
SYNOPSIS
vmupdate -rt robot_type -rn robot_number [-rh robot_host] [-h
EMM_Server | volume_database_host] [[-if inventory_filter_value] [-if
inventory_filter_value] ...] [-full] [-recommend] [-interactive]
[-involgrp volume_group] [-outvolgrp volume_group] [-mt media_type]
[-p pool_name] [-use_barcode_rules] [-use_seed] [-mp media_id_prefix]
[-empty_map]
On UNIX and Linux systems, the directory path to this command is
/usr/openv/volmgr/bin/
On Windows systems, the directory path to this command is
<install_path>\Volmgr\bin\
DESCRIPTION
Inventory the media contents of a robotic library and update the Enterprise Media
Manager database. If no options are specified, the volume configuration is updated
to match the robot contents.
Any authorized user can run this command.
For more information about NetBackup authorization, refer to the NetBackup
Security and Encryption Guide.
OPTIONS
-rt robot_type
NetBackup Commands
vmupdate
-rh robot_host
Name of the host that controls the robot. If no host is specified, the host where
you execute this command is assumed.
-h EMM_server | volume_database_host
Specifies full the inventory. The -full and -if options cannot be specified
together.
-recommend
Lists the changes that are required to update the volume configuration.
-interactive
Specifies the volume group for the media that is moved into the robot.
-outvolgrp volume_group
Specifies the volume group for the media that is moved out of the robot.
-mt media_type
697
698
NetBackup Commands
vmupdate
-p pool_name
Specifies the name of the volume pool to which new media are assigned.
-use_barcode_rules
Specifies that barcode rules are used for assigning attributes to new media.
-use_seed
Specifies the automatic generation of media IDs for media with no bar codes.
-mp media_id_prefix
Specifies the prefix that is used as a seed to generate new media IDs for media
with no bar codes. This prefix should be between 1 and 5 characters in length
and contain only valid media ID characters (alpha-num, "+", "_", ".", and "-"
if it is not the first character).
-empty_map
Specifies that volumes in the media access port (map) are moved into the
robot before the robot inventory is started. This option is only valid for TL8,
TLD, or TLM robot types.
NOTES
Only limited validation of the option parameters is done.
EXAMPLES
The following updates the volume configuration on the EMM server named
mymaster to match the contents of TLD robot 7 connected to the host macris:
# vmupdate -rt tld -rn 7 -rh macris -h mymaster
SEE ALSO
See vmcheckxxx on page 670.
NetBackup Commands
vxlogcfg
vxlogcfg
vxlogcfg modify unified logging configuration settings
SYNOPSIS
vxlogcfg -a -p ProductID -c ConfigPath -n Names [-q]
vxlogcfg -a -p ProductID -o OriginatorID -s keyname=value [-q]
vxlogcfg -a -p ProductID -g LogSet -s keyname=value [-q]
vxlogcfg -d -p ProductID
vxlogcfg -l [-p ProductID [-o OriginatorID]] [-q]
vxlogcfg -l [-p ProductID [-g LogSet]] [-q]
vxlogcfg -r -p ProductID [-o OriginatorID] [-s keyname] [-q]
vxlogcfg -r -p ProductID [-g LogSet] [-s keyname] [-q]
vxlogcfg -v
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
Use the vxlogcfg command to change the logging settings for NetBackup unified
logging. It registers and unregisters the product log configurations during
installation and uninstallation.
Unified logging uses a standardized naming format for log files, as follows:
productID-originatorID-hostID-date-rotation.log
For more information about the unified logging naming format, and the logging
originator IDs, refer to the NetBackup Troubleshooting Guide for UNIX, Windows,
and Linux.
OPTIONS
Specify the product log configuration to register or unregister. Use fully-qualified
path names for all directory paths. If a directory name contains spaces, use quotes
around the path name for that directory (for example, "Program Files").
-a, --add
Registers or creates the product log configuration settings. Any existing log
settings are overwritten. Do not use this option to add a product to the list
699
700
NetBackup Commands
vxlogcfg
of those that use unified logging. Instead, use it only to modify existing unified
logging settings. See examples.
-c, --config ConfigPath
Provides the absolute path from which the product log configuration settings
should be read.
On UNIX and Linux systems, use the absolute path to the product log
configuration file (for example, /opt/vrts/ProductA/log.conf.)
On Windows systems, use the path to the product log registry settings (for
example, \\SOFTWARE\VERITAS\PRODUCTA\)
-d, --delete
Unregisters and removes the product log configuration settings from the
main logging configuration file, if there are no originator IDs configured for
the product. The corresponding product log configuration file is also deleted.
-g, --logset LogSet
Creates or modifies log configuration settings for the specified LogSet. LogSet
is supplied as the text string "Default" or the text string "ALL." If the LogSet
is "Default," then the -s configuration settings are the default settings. If the
LogSet is "ALL, then the -s configuration settings are given to all the
originators of a given product ID.
-l, --list
Specifies abbreviated or short names for the product. Separate multiple names
with a comma.
-o, --orgid OrgID
Creates or modifies log configuration settings for the specified originator ID.
The Originator ID can be supplied as a valid originator ID (a number); or, it
can be the text string "Default," or the text string "ALL." If the Originator ID
is "Default," then the -s configuration settings are the default settings. If the
Originator ID is "ALL, then the -s configuration settings are given to all the
originators of a given product ID.
-p, --prodid ProductID
NetBackup Commands
vxlogcfg
-q, --quiet
Unregisters and removes the log configuration settings for the specified OID
and product from the product logging configuration file. Individual settings
can be removed with the "-s, --setting keyname=value" option.
Caution: Always use the -r option with the -o option. Otherwise, all of the
existing NetBackup log settings are removed and no further logging is
performed for all of NetBackup.
-s, --setting keyname=value
Sets individual configuration settings when used with -a (add option). keyname
is the configuration setting's name and value is the value for that setting.
You can use multiple -s keyname=value arguments on the command line.
-s, --setting keyname
Removes a configuration setting when it is used with the -r option. Use only
one keyname with the -r option. To remove multiple settings, provide multiple
-s options. See the KEYNAMES AND VALUES section for particular keynames.
-v, --version
701
702
NetBackup Commands
vxlogcfg
Caution: When you use the LogDirectory keyname to redirect unified logs to
an alternate directory, stop and restart the NetBackup services. This action
makes redirection take effect.
DebugLevel
Sets the verbosity level for the debug log messages. (Debug logs are intended
for Symantec engineers.) Valid values are 0 through 6.
DiagnosticLevel
Sets the verbosity level for the diagnostic log messages. (Diagnostic logs are
intended for NetBackup administrators and users.) Valid values are 0 through
6. Zero (0) means no debug messages.
DynaReloadInSec
Dynamically reloads debug and diagnostic settings. Integers 0-60 reload after
60 seconds. Integers greater than 60 reload at the specified number of seconds.
LogToStdout
Sends all log messages to standard output (by default the terminal) and to
the log file. Valid values are true and false (default value).
LogToStderr
Sends the application log messages to Stderr (by default the terminal) and
to the log file. Valid values are true and false (default value).
LogToOslog
Sends the application log messages to the operating system log (syslog on
UNIX and the event log on Windows). Valid values are true and false (default
value).
RolloverMode
Specifies when log files are rolled over. If you roll over a log file, it closes the
current log file and opens a new one. The purpose is to keep log file size low
and allow older log files to be deleted or archived. Valid values are FileSize,
LocalTime, Periodic, FileSize | LocalTime, FileSize | Periodic and None.
FileSize indicates that the rollover occurs when the log reaches the size
NetBackup Commands
vxlogcfg
FileSize | Periodic indicates that the log files are logged over when FileSize
Specifies the maximum size that is allowed for the log file (in kilobytes) before
rollover occurs, if the RolloverMode is set to FileSize. Valid values are 1
through 4294967295. The default value is 10240 (10 MB).
RolloverPeriodInSeconds
Specifies a period of time in seconds after which the log file is rolled over, if
the RolloverMode is set to Periodic. Valid values are 1 through 2147483648.
The default value is 43200 (12 hours).
RolloverAtLocalTime
Specifies the time of day at which the log file is rolled over, if the RolloverMode
is set to LocalTime. Valid values are 00:00 through 23:59. The default value
is 00:00 (Midnight local time).
NumberOfLogFiles
Specifies the maximum number of files to retain in the log directory for each
unified logging originator. Valid values are 1 through 4294967295.
The vxlogmgr --auto command uses NumberOfLogFiles to determine how
many log files to delete or move that starts with the oldest files. For example,
a log directory contains seven files that a particular originator created.
NumberOfLogFiles is set to 5. The vxlogmgr --auto --del command deletes
the two oldest files that the originator created.
LogRecycle
Valid values are true, false. The default value is false. If true, the number of
log files does not exceed the NumberOfLogFiles.
OIDNames
Specifies one or more alternate names for the unified logging originator that
the -o option specifies. These names can be used in place of Originator IDs
when you perform searches by using the vxlogview command. Each name
can be up to 80 characters in length. Multiple names can be specified,
separated by a space.
L10nLib
Specifies the absolute path and file name of the external localization library.
This option is for Symantec internal use only. Use of this option can disable
unified logging.
703
704
NetBackup Commands
vxlogcfg
L10nResource
An octal number that specifies the UNIX file permissions that are assigned
to log the files that the originator created, which the -o option specified. In
most cases, this option is not needed.
SyslogIdent
Specifies the syslog option value that is passed to the syslog openlog function.
Log messages are directed to the UNIX syslog when LogToSyslog is enabled.
Valid values are 0 through 4294967295. In most cases, this option is not
needed.
SyslogFacility
Specifies the syslog facility value that is associated with log messages directed
to the syslog. Log messages are directed to the syslog when LogToSyslog is
enabled. In most cases, this option is not needed.
Valid values are: LOG_KERN, LOG_USER, LOG_MAIL, LOG_DAEMON,
LOG_AUTH, LOG_LPR, LOG_NEWS, LOG_UUCP, LOG_CRON, LOG_LOCAL0,
LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5,
LOG_LOCAL6, LOG_LOCAL7. The default is LOG_USER.
The following three keynames operate only on Windows systems.
NtEventLogCategory
Specifies the category number that are associated with log messages that are
directed to the Windows Event Log if LogToOslog is enabled. In most cases,
there should be no need to use this option.
LogFileSDDL
NetBackup Commands
vxlogcfg
originator created, which the -o option specified. In most cases, there should
be no need to use this option.
NtEventLogSourceName
Specifies the Windows Event log that log messages are directed to if the
LogToOslog option is enabled on Windows. This option is for internal use
only. Use of this option can disable unified logging.
EXAMPLES
EXAMPLE 1
The following sets the LogDirectory for NetBackup and originator ID 111 on UNIX:
# vxlogcfg -a --prodid 51216 -orgid 111 -s
LogDirectory=/usr/openv/logs
EXAMPLE 2
The following sets the DebugLevel and DiagnosticLevel for all unified logging
originators in NetBackup:
# vxlogcfg -a --prodid 51216 -orgid ALL -s DebugLevel=3 -s
DiagnosticLevel=3
EXAMPLE 3
The following sets the default RolloverMode for product ID 1:
# vxlogcfg -a --prodid 1 -orgid Default -s RolloverMode=FileSize
EXAMPLE 4
The following displays configuration settings for originator 2 for product ID 1.
# vxlogcfg -l --prodid 1 --orgid 2
EXAMPLE 5
The following lists all the originators that are configured for product ID 1.
# vxlogcfg -l --prodid 1
EXAMPLE 6
The following lists all configured products.
# vxlogcfg -l
705
706
NetBackup Commands
vxlogcfg
FILES
UNIX and Linux systems:
/usr/openv/netbackup/nblog.conf
/etc/vx/VxICS/icsul.conf
SEE ALSO
See vxlogmgr on page 707.
See vxlogview on page 712.
NetBackup Commands
vxlogmgr
vxlogmgr
vxlogmgr manages the log files generated by the products that support Unified
Logging
SYNOPSIS
vxlogmgr { -c | -m } -f AbsoluteDir [-a]
vxlogmgr { -d | -F } [-a]
vxlogmgr {-c | -m | -A filename} -f AbsoluteDir [-p ProductID] [-o
OriginatorID] [-n Days] [-t Time] [-b StartDate] [-g LogSet] [-e
EndDate] [-q] [-z]
vxlogmgr {-c | -m | -A filename} -f AbsoluteDir -w QueryString [-q]
[-z]
vxlogmgr {-d | -F | -s} [-p ProductID] [-o OriginatorID] [-n Days]
[-t Time] [-b StartDate] [-g LogSet] [-e EndDate] [-q] [-z]
vxlogmgr {-d | -F | -s} -w QueryString [-q] [-z]
vxlogmgr -v
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The vxlogmgr utility manages the log files generated by unified logging-enabled
applications. Log file management includes actions such as deleting or moving
the log files that are based on log management configuration settings.
Unified logging uses a standardized naming format for log files, as follows:
productID-originatorID-hostID-date-rotation.log
For more information about the unified logging naming format, and the logging
originator IDs, refer to the NetBackup Troubleshooting Guide.
OPTIONS
Specify the log management action to perform.
707
708
NetBackup Commands
vxlogmgr
Creates an archive named FileName for the specified set of conditions. The
compressed zip file requires WinZip and wzzip on Windows to produce a zip
file. On UNIX, a tar utility and GnuZip are required to produce a tar.gzip file.
-a, --auto
Retrieves the log files that are based on individual configuration settings for
NumberOfLogFiles. The actions are taken based on the given action type
(such as move, copy, or delete). When the -a option is specified, the other
options cannot be used.
-b, --stdate 'StartDate'
Copies log files from the folder that is configured by the product to the
specified folder.
-d, --del
Deletes the log files from the folder that the product configures.
-e, --endate 'EndDate'
NetBackup Commands
vxlogmgr
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
This option must be surrounded by single quotes in UNIX or Linux and double
quotes in Windows.
UNIX and Linux: --endate '1/1/2010 12:00:00 PM'
Windows: --stdate "1/1/2010 12:00:00 AM"
-f, --dir AbsoluteDir
Specifies the absolute name of the directory into which the log files are to be
copied. On UNIX or Linux systems, this directory must be on the same device
as the opt/openv/netbackup/logs directory. This option is valid only with
the -c option.
-F, --flush
Deletes all log files for the host that originates this command except the most
current log file. If the host that runs this command uses a shared directory,
all log files for all hosts that use the same directory are removed. Only the
most current file is preserved for the host that originated the flush command.
-m, --mv
Moves log files from the folder that the product that is configured to the
specified folder.
-n --days NumberOfDays
Manages the log files created in last NumberOfDays days for the specified
action.
-o, --origid OriginatorID
Manages the log files identified by a given product ID (ProductID) for the
specified action. Instead of an identifier, the user can provide the product
name.
-q, --quiet
709
710
NetBackup Commands
vxlogmgr
Displays the time zone information along with the log file display.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
-1 An error occurred.
QUERY STRINGS
A query string is a text expression, similar to a database WHERE clause, that is
used to retrieve log entries from the unified logging system. The expression is a
combination of relational operators, constant integers, constant strings, and
names of log fields that evaluate to a single value. Logical operators, such as AND
and OR, are used to group expressions.
Supported relation operators include:
< Less than
> Greater than
<= Less than and equal to
>= Greater than and equal to
= Equal to
!= Not equal to
Supported logical operators include && (logical AND) and || (logical OR).
Predefined log fields include:
PRODID Product identifier (integer or string)
ORGID Originator identifier (integer or string)
STDATE Locale-specific start date (long integer or string [such as mm/dd/yy])
ENDATE Locale-specific end date (long integer or string [such as mm/dd/yy])
PREVTIME Previous time (string [hh:mm:ss])
NetBackup Commands
vxlogmgr
EXAMPLES
EXAMPLE 1
The following automatically moves the older log files that NetBackup created to
the folder /tmp/nblogs. The --auto option depends on the configuration setting
NumberOfLogFiles.
# vxlogmgr -m --auto --dir /tmp/nblogs
EXAMPLE 2
The following deletes log files that NetBackup created 15 days back:
# vxlogmgr -d --prodid NB -n 15
EXAMPLE 3
The following copies the log files created from date 01/22/09 by NetBackup:
# vxlogmgr -c --where "(prodid = NB) && (stdate >= '01/22/09')"
UNIX and Linux systems: --dir /usr/openv/logs
Windows systems: --dir c:\temp\logfiles
EXAMPLE 4
The following copies the log files created between 10/10/09 and 10/28/09 inclusive
by product ID 100:
# vxlogmgr -c --where "(PRODID == 100) && ((STDATE >= '10/10/09')
UNIX and Linux systems: && (ENDATE <= '10/28/09'))" --dir
/usr/openv/logs
Windows systems: && (ENDATE <= '10/28/09'))" --dir c:\temp\logfiles
SEE ALSO
See vxlogcfg on page 699.
See vxlogview on page 712.
711
712
NetBackup Commands
vxlogview
vxlogview
vxlogview display logs generated by the unified logging component
SYNOPSIS
vxlogview[-A] [-b StartDate] [-e EndDate] [-D] [-G Directory] [-g
LogSet] [-I] [-i FileID] [-K HostName] [-L SeverityLevel] [-m Entity]
[-N Level MsgTypes] [-n NumberofDays] [-o OriginatorID] [-P ProcessID]
[-p ProductID] [-r Result] [-s Subject] [-T ThreadID] [-t hh:mm:ss]
[-X ContextToken] [-y]
vxlogview -a [-p ProductID] {[-d DisplayOption,...] [-R
ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -q QueryName -f FileName {[-d DisplayOption,...][-R
ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -p ProductID -g LogSet | -i FileID {[-d DisplayOption,...]
[-R ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -p ProductID -w queryString {[-d DisplayOption,...] [-R
ResourceDirectory] [-z TimeZone] [-l Locale]}
vxlogview -v
On UNIX and Linux systems, the directory path to this command is
/usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is
<install_path>\NetBackup\bin\
DESCRIPTION
The vxlogview utility allows you to view the logs that unified logging generates.
Search criteria can be specified by using command-line options to view specific
logs.
Unified logging uses a standardized naming format for log files, as follows:
productID-originatorID-hostID-date-rotation.log
For more information about the unified logging name format and the logging
originator IDs, refer to the NetBackup Troubleshooting Guide.
OPTIONS
Specify the logs you want to view.
NetBackup Commands
vxlogview
-A, --audit
Displays all log messages from log files that multiple Symantec products
generate.
-b, --stdate StartDate
Displays messages that are logged at the given start date and time.
The required date value 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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
Surround the date by single quotes in UNIX and double quotes in Windows.
For example:
-b 1/1/2010 12:00:00 AM
If the -b option is not specified, messages are displayed from the beginning
of the log file to the given end time (see the -e option).
-D, --debug
713
714
NetBackup Commands
vxlogview
Displays messages that are logged up to a given end day and time.
The required date value 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.
See the "Specifying the locale of the NetBackup installation" topic in the
NetBackup Administrator's Guide, Volume II for more information.
Surround the date with single quotes in UNIX and double quotes in Windows.
For example:
--endate 1/1/2010 12:00:00 PM
If the -e option is not specified, vxlogview displays messages from the given
start date and time (see the -b option) to the end of the log file.
-f, --filename FileName
Specifies the path and filename of a file that contains one or more queries.
Use with the -q option.
NetBackup Commands
vxlogview
Displays logs from the specified directory instead of a configured log directory.
An absolute path must be specified for the directory.
-g, --logset LogSet
Displays messages in the specified locale. The default is English. The messages
are displayed in the current system locale if this option is not given.
-m, --who Entity
Displays messages logged by the given entity method name or function name.
-N, --level Level -D | -I
Displays debug messages (-D) or diagnostic log messages (-I) for a given level
(Level).
-n, --days NumberOfDays
Displays the messages that are logged for the last NumberOfDays days.
715
716
NetBackup Commands
vxlogview
Displays the messages that the specified originator ID has logged. You can
use the ID number or the short name for the originator. For example, the
Policy Execution Manager can be specified by nbpem or by 116, its originator
ID number.
-P, --pid ProcessID
Displays the messages that are logged by the specified process ID.
-p, --prodid ProductID
Displays the messages that the product (identified by a given product ID)
logged. Instead of an identifier, the user can provide the abbreviated name
of product. The NetBackup product ID is 51216, and the PBX product ID is
50936.
-R, --resdir ResourceDirectory
Displays audit messages that have the specified result. Result can be either
0 or 1.
-S, --tailloop
Continuously displays the new messages that are logged by a given product
ID and file ID pair. The product ID (-p ProductID) and file ID (-i FileID) must
accompany the tailloop option (-S) on the command line. The file ID can be
a shared originator ID or an originator ID that is not shared with any other
ID. Tailloop starts by displaying to the console the last 10 messages that have
been logged. It then displays any new log messages. Use Ctrl-C at any time
to stop the loop.
-s, --subject Subject
NetBackup Commands
vxlogview
Specifies a WHERE clause to use when you query the log messages such that
a subset of messages can be displayed. For more detail on QueryString, refer
to the "Using Logs and Reports" in the NetBackup Troubleshooting Guide.
-X, --ctx ContextToken
Displays messages that belong to the given context instance. Context tokens
identify context instances. If the context token is specified as "all," it displays
all of the context names and associated tokens.
-y, --displayhost
Displays the hostname with each displayed log message. Use this option if
the log files come from different hosts and you want to display which message
came from which host.
-z, --timezone GMT+hh:ss | GMT-hh:ss
EXIT STATUS
The following exit values are returned:
0 -- Successful completion.
-1 -- An error occurred.
QUERY STRINGS
A query string is a text expression, similar to a database WHERE clause, that is
used to retrieve log entries from the Unified Logging system. The expression is a
combination of relational operators, constant integers, constant strings, and
names of log fields that evaluate to a single value. Logical operators, such as AND
and OR, are used to group expressions.
Supported relational operators include: < (less than), > (greater than) <= (less than
or equal to, >= (greater than and equal to), = (equal to), and != (not equal to).
Supported logical operators include && (logical AND) and || (logical OR).
Predefined log fields can be in all uppercase or all lowercase (for example: PID |
pid). These fields consist of the following:
CTXTOK -- Context token (string)
ENDATE -- Locale-specific end date (long integer or string)
FILEID -- Shared originator ID (integer)
HOSTNAME -- Name of source host (string with quotes)
717
718
NetBackup Commands
vxlogview
LEVEL -- Debug and diagnostic level. Default is to display all (integer 0-6)
MSGTYPE -- The following message types are supported:
DEBUG | debug
DIAG | diag
APP | app
AUDIT | audit
EXAMPLES
The following examples are valid for UNIX, which uses single quotes to enclose
option arguments. In Windows, use double quotes.
EXAMPLE 1
This example displays the log messages for all the installed products:
# vxlogview -a
EXAMPLE 2
This example displays the log messages for PBX (product ID 50936). You must be
an authorized user with administrator (root) privileges. It displays only the date,
time, message type, and message text:
NetBackup Commands
vxlogview
EXAMPLE 3
This example displays the log messages for NetBackup that were logged between
the dates 11/18/10 and 11/21/10:
# vxlogview --where "(prodid = 'NB') && (stdate >= '11/18/10 0:0:0
AM' && endate <= '11/21/10 10:12:00 AM')"
EXAMPLE 4
This example displays the log messages that were created on or after the date and
time 1/03/06, 11:00:00 a.m.:
# vxlogview -b '1/03/10 11:00:00 AM'
EXAMPLE 5
This example displays the log messages that were logged within the last hour:
# vxlogview --tail 1:00:00
EXAMPLE 6
This example displays the audit log messages that have a result of 0:
# vxlogview --audit -r 0
EXAMPLE 7
This example displays the context log messages for the "job_context" instance:
# vxlogview --ctx 'jobid=4'
SEE ALSO
See vxlogcfg on page 699.
See vxlogmgr on page 707.
719
720
NetBackup Commands
vxlogview
Index
Symbols
576
A
ACS library
Automated Cartridge System 24
acsd command 24
add_media_server_on_clients command 26
ASA database files 450
B
backupdbtrace command 27
backuptrace command 29
Bare Metal Restore (BMR)
bmrc 31
bmrconfig 34
bmrepadm 39
bmrprep 42
bmrs 45
bmrsrtadm 48
BMR client program 31
BMR database 453
bmrc command 31
bmrconfig command 34
bmrepadm command 39
bmrprep command 42
bmrs command 45
bmrsrtadm command 48
bp command 50
bpadm command 52
bparchive command 53
bpbackup command 58
bpbackupdb command 66
bpcatarc command 67
bpcatlist command 68
bpcatres command 71
bpcatrm command 72
bpcd command 73
bpchangeprimary command 75
bpclient command 79
bpclimagelist command 85
bpclntcmd command 88
bpclusterutil command 91
bpcompatd command 95
bpconfig command 97
bpdbjobs command 108
bpdbm command 116
bpdgclone command 119
bpdown 121
bpduplicate command 122
bperror command 131
bpexpdate command 140
bpfis 147
bpgetconfig command 151
bpgetdebuglog command 155
bpimage command 156
bpimagelist command 160
bpimmedia command 168
bpimport command 179
bpinst command
man page 186
recreate a key file 189
bpkeyfile command 193
bpkeyutil command 195
bplabel command 197
bplist command 200
bpmedia command 208
bpmedialist command 212
bpminlicense command 224
bpnbat command 227
bpnbaz command 234
bppficorr command 249
bpplclients command 251
bppldelete command 258
bpplinclude command 260
bpplinfo command 266
bppllist command 278
bpplsched command 280
bpplschedrep command 293
bppolicynew 301
bpps 309, 313
bprd command 314
722
Index
C
cat_convert utility 404
configuring
encryption
using bpinst command 186
create_nbdb command 410
crypt_option 187
crypt_strength option 187
D
DES
keys
generating from bpkeyfile 193
device allocator 493
duplicatetrace command 412
E
Enterprise Media Manager 493
G
generating DES encryption keys 193
I
importtrace command 415
Inline Tape Copy option 126
installation
using bpinst command 186
J
jbpSA 419
jnbSA 421
K
key file 189
pass phrase 189
L
LEGACY_CRYPT option 186
licenses
managing with bpminlicense command 224
ltid command 423
M
Media Contents Report 214
Media Count Report 215
Media List Report 212
Media Manager commands
acsd 24
Media Summary Report 214
N
nbauditreport command 425
nbcatsync command 429
NBCC 432
NBCCR 437
nbcertupdater command 439
nbcplogs command 443
nbdb_admin command 447
nbdb_backup command 450
nbdb_move command 451
nbdb_ping command 453
nbdb_restore command 454
nbdb_unload command 455
nbdc command 459
nbdecommission command 462
nbdelete command 464
nbdeployutil command 467
nbdevconfig command 473
nbdevquery command 484
nbdms_start_server command 457
nbdms_start_stop command 458
nbdna command 489
nbemm command 493
nbemmcmd command 494
nbexecute command 510
nbfirescan command 512
nbftadm command 513
nbftconfig command 514
nbhba command 524
nbjm command 527
Index
P
pass phrase 189
passphrase_prompt option 188
passphrase_stdin option 188
policy_encrypt option 188
policy_names option 188
R
restoretrace command 572
robtest 600
S
scripts
drive_mount_notify 627
stopltid command 423
T
tl4d command 574
tl8cd command 580
tl8d command 576, 580
tldcd command 584, 588
tldd command 584, 588
tlhcd command 592, 596
tlhd command 592, 596
tlmd command 600
tlmtest 600
U
Unified logging 699
vxlogmgr 707
vxlogview 712
V
verifytrace command 632
vltadm command 635
vltcontainers command 636
vlteject command 641
vltinject command 645
vltoffsitemedia 647
vltopmenu command 651
vltrun 653
vmadd command 658
vmadm command 661
vmchange command 663
vmcheckxxx command 670
vmd command 672
vmdelete command 674
vmoprcmd command 676
vmphyinv command 681
vmpool command 685
vmquery command 688
vmrule command 693
vmupdate command 696
vxlogcfg 699
vxlogcfg command 699
vxlogmgr command 707
vxlogview command 712
723