Veritas-bu

[Veritas-bu] help...command

2002-05-14 16:34:27
Subject: [Veritas-bu] help...command
From: MSyed AT xo DOT com (Syed, Mukarram)
Date: Tue, 14 May 2002 15:34:27 -0500
If you have sunsolve account, here are good links to the commonly used
Netbackup commands:

http://sunsolve.sun.com/private-cgi/retrieve.pl?doc=infodoc%2F18650&zone_32=
Netbackup

http://sunsolve.sun.com/private-cgi/retrieve.pl?doc=finfodoc%2F22005&zone_32
=Netbackup

Here they are in text format (sorry for the verbosity)

----------------------------------------------------------------------------
----------------------

INFODOC ID: 18650 
SYNOPSIS: Useful NetBackup info commands 
DETAIL DESCRIPTION: 
bpcoverage -c <clientname> : lists out the filesystems and classes for the
clientname.
bpdbjobs -report: lists out all jobs and status
bpgetconfig : gives a detailed bp.conf listing
bpclclients : lists all clients that are in classes
bpcllist -allclasses -U : lists setup for all configured classes
sgscan -v : gives info on attached scsi devices along with thier firmware
level

bigwillie# bpcoverage -c bigwillie

             File System Backup Coverage Report (UNIX only)
             ----------------------------------------------

       Key:  *         - Class is not active
             UNCOVERED - Mount Point not covered by an active class
             MULTIPLE  - Mount Point covered by multiple active classes


CLIENT: bigwillie

   Mount Point           Device                   Backed Up By Class
Notes
   -----------           ------                   ------------------
-----
   /                     /dev/vx/dsk/rootvol
UNCOVERED
   /copy_test            /dev/vx/dsk/bigdg/vol01
UNCOVERED
   /corrupt              /dev/vx/dsk/bigdg/vol03
UNCOVERED
   /mitch30              /dev/vx/dsk/bigdg/vol05
UNCOVERED
   /mitch31              /dev/vx/dsk/bigdg/vol04
UNCOVERED
   /nbu                  /dev/vx/dsk/bigdg/vol10
UNCOVERED
   /sbu                  /dev/vx/dsk/bigdg/vol09
UNCOVERED
   /usr                  /dev/vx/dsk/usr
UNCOVERED

                       Class Hardware/OS Report
                       ------------------------

       Key:  *         - Class is not active
             CLIENT    - hostname (uname information)
             VERSION   - NetBackup version running on the client


CLIENT:  bigwillie (sun4u/SunOS 5.6 Generic_105181-05)
VERSION: NetBackup-Solaris2.6 3.1.1GA

   Class Name            Hardware/OS
   ----------            -----------
   bigbackup             Sun4/Solaris2.6
   bigbackup1            Sun4/Solaris2.6
   bigbackup2            Sun4/Solaris2.6
____________________________________________________________________________
________
bigwillie# bpdbjobs -report
   12    Backup     Active            bigbackup   full       bigwillie
bigwillie
____________________________________________________________________________
________

bigwillie# bpgetconfig
SERVER = bigwillie
BPBACKUP_CLASS = any
BPBACKUP_SCHED = any
BPARCHIVE_CLASS = any
BPARCHIVE_SCHED = any
CLIENT_NAME = bigwillie
BELIEVE_MOUNTS = No
VERBOSE = 0
MEGABYTES_OF_MEMORY = 0
RESTORE_RETRIES = 0
LOCKED_FILE_ACTION = WAIT
SLAVE_CONNECT_TIMEOUT = 0
CLIENT_CONNECT_TIMEOUT = 300
CLIENT_READ_TIMEOUT = 300
APOLLO_RESTORE_TIMEOUT = 0
BPSTART_TIMEOUT = 300
BPEND_TIMEOUT = 300
LIST_FILES_TIMEOUT = -1
MAX_APOLLO_RESTORE_ARG_CHARS = 9000
ALLOW_MEDIA_OVERWRITE = TAR
KEEP_DATABASE_COMM_FILE = No
DISABLE_STANDALONE_DRIVE_EXTENSIONS = No
ALLOW_MULTIPLE_RETENTIONS_PER_MEDIA = No
DISALLOW_BACKUPS_SPANNING_MEDIA = No
MEDIA_REQUEST_DELAY = 0
MEDIA_UNMOUNT_DELAY = 180
MPX_RESTORE_DELAY = 30
DISABLE_JOB_LOGGING = No
DISALLOW_SERVER_FILE_WRITES = No
DO_NOT_RESET_FILE_ACCESS_TIME = No
USE_CTIME_FOR_INCREMENTALS = No
BUSY_FILE_PROCESSING = No
BUSY_FILE_DIRECTORY = /usr/openv/netbackup
BUSY_FILE_NOTIFY_USER = root
INITIAL_BROWSE_SEARCH_LIMIT = 0
ALLOW_NON_RESERVED_PORTS = No
CRYPT_OPTION = ALLOWED
CRYPT_STRENGTH = DES_40
DISALLOW_CLIENT_LIST_RESTORE = No
ALLOW_BLOCK_INCREMENTALS = No
ALLOW_NDMP = No
ALLOW_ENCRYPTION = No
ALLOW_FLASHBACKUP = No
NFS_ACCESS_TIMEOUT = 0

____________________________________________________________________________
____
bigwillie# bpcllist -allclasses -U
------------------------------------------------------------

Class Name:        bigbackup

  Class Type:          Standard
  Active:              yes
  Client Compress:     no
  Follow NFS Mounts:   no
  Cross Mount Points:  no
  Collect TIR info:    no 
  Block Incremental:   no
  Class Priority:      0
  Max Jobs/Class:      99
  Residence:           L3500
  Volume Pool:         NetBackup
  Keyword:             (none specified)

  HW/OS/Client:  Sun4          Solaris2.6    bigwillie
                 Sun4          Solaris2.6    little_howie
                 Sun4          Solaris2.6    loko

  Include:  /file2
            /file3
            /file6

  Schedule:          full
    Type:            Full Backup
    Frequency:       every 7 days
    Maximum MPX:     2
    Retention Level: 1 (2 weeks)
    Residence:       (specific storage unit not required)
    Volume Pool:     (same as class volume pool)
    Daily Windows:
          Sunday     08:00:00  -->  Monday     02:00:00
          Monday     08:00:00  -->  Tuesday    02:00:00
          Tuesday    08:00:00  -->  Wednesday  02:00:00
          Wednesday  08:00:00  -->  Thursday   02:00:00
          Thursday   08:00:00  -->  Friday     02:00:00
          Friday     08:00:00  -->  Saturday   02:00:00
          Saturday   08:00:00  -->  Sunday     02:00:00

------------------------------------------------------------

Class Name:        bigbackup1

  Class Type:          Standard
  Active:              yes
  Client Compress:     no
  Follow NFS Mounts:   no
  Cross Mount Points:  no
  Collect TIR info:    no 
  Block Incremental:   no
  Class Priority:      0
  Max Jobs/Class:      99
  Residence:           L3500
  Volume Pool:         NetBackup
  Keyword:             (none specified)

  HW/OS/Client:  Sun4          Solaris2.6    bigwillie
                 Sun4          Solaris2.6    little_howie
                 Sun4          Solaris2.6    loko

  Include:  /file
            /file1
            /file7

  Schedule:          full
    Type:            Full Backup
    Frequency:       every 7 days
    Maximum MPX:     2
    Retention Level: 1 (2 weeks)
    Residence:       (specific storage unit not required)
    Volume Pool:     (same as class volume pool)
    Daily Windows:
          Sunday     08:00:00  -->  Monday     02:00:00
          Monday     08:00:00  -->  Tuesday    02:00:00
          Tuesday    08:00:00  -->  Wednesday  02:00:00
          Wednesday  08:00:00  -->  Thursday   02:00:00
          Thursday   08:00:00  -->  Friday     02:00:00
          Friday     08:00:00  -->  Saturday   02:00:00
          Saturday   08:00:00  -->  Sunday     02:00:00

------------------------------------------------------------

Class Name:        bigbackup2

  Class Type:          Standard
  Active:              yes
  Client Compress:     no
  Follow NFS Mounts:   no
  Cross Mount Points:  no
  Collect TIR info:    no 
  Block Incremental:   no
  Class Priority:      0
  Max Jobs/Class:      99
  Residence:           L3500
  Volume Pool:         NetBackup
  Keyword:             (none specified)

  HW/OS/Client:  Sun4          Solaris2.6    bigwillie
                 Sun4          Solaris2.6    little_howie
                 Sun4          Solaris2.6    loko

  Include:  /file5
            /file4

  Schedule:          full
    Type:            Full Backup
    Frequency:       every 7 days
    Maximum MPX:     2
    Retention Level: 1 (2 weeks)
    Residence:       (specific storage unit not required)
    Volume Pool:     (same as class volume pool)
    Daily Windows:
          Sunday     08:00:00  -->  Monday     02:00:00
          Monday     08:00:00  -->  Tuesday    02:00:00
          Tuesday    08:00:00  -->  Wednesday  02:00:00
          Wednesday  08:00:00  -->  Thursday   02:00:00
          Thursday   08:00:00  -->  Friday     02:00:00
          Friday     08:00:00  -->  Saturday   02:00:00
          Saturday   08:00:00  -->  Sunday     02:00:00

------------------------------------------------------------

Class Name:        infx

  Class Type:          Informix-On-BAR
  Active:              yes
  Class Priority:      0
  Max Jobs/Class:      99
  Residence:           (specific storage unit not required)
  Volume Pool:         NetBackup
  Keyword:             (none specified)

  HW/OS/Client:  Sun4          Solaris2.6    loko

  Include:      (none defined)

  Schedule:          Default-Policy
    Type:            Backup Policy
    Maximum MPX:     1
    Retention Level: 3 (1 month)
    Residence:       (specific storage unit not required)
    Volume Pool:     (same as class 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

bigwillie# 

____________________________________________________________________________
____

bigwillie# bpclclients
Hardware         OS               Client
---------------  ---------------  --------------
Sun4             Solaris2.6       bigwillie
Sun4             Solaris2.6       little_howie
Sun4             Solaris2.6       loko

____________________________________________________________________________
____

bigwillie# sgscan -v
s/dev/sg/c0t5l0: Tape (/dev/rmt/0): "EXABYTE EXB-8505SMBANSH20793" 
/dev/sg/c0t6l0: Cdrom: "TOSHIBA XM-4101TASUNSLCD3424"
/dev/sg/c1t0l0: Changer: "ATL     ATL7100  62400902.11"
/dev/sg/c1t1l0: Tape (/dev/rmt/1): "QUANTUM DLT7000         1E48" 
/dev/sg/c1t2l0: Tape (/dev/rmt/2): "QUANTUM DLT7000         1E48" 
/dev/sg/c1t3l0: Tape (/dev/rmt/3): "QUANTUM DLT7000         172D" 
/dev/sg/c1t4l0: Tape (/dev/rmt/4): "QUANTUM DLT7000         172D" 
/dev/sg/c1t5l0: Tape (/dev/rmt/5): "QUANTUM DLT7000         172D" 
/dev/sg/c1t6l0: Tape (/dev/rmt/6): "QUANTUM DLT7000         172D" 
bigwillie#             

APPLIES TO: Storage/NetBackup, AFO Vertical Team Docs/Storage 
ATTACHMENTS: 

----------------------------------------------------------------------------
----------------------

INFODOC ID: 22005 
SYNOPSIS: NetBackup Quick Notes 
DETAIL DESCRIPTION: 
Contents

* NetBackup Files
* Media Manager Files
* NetBackup Daemons
* Daemon Logging
* Media Manager Daemons
* Product Installation
* Useful NetBackup Commands
* Useful Media Manager Commands

** NetBackup Files
******************
(/usr/openv/netbackup/db/)

  o Configuration - bpadm/xbpadm
    class       Class Configuration
    config      NetBackup Global Attributes
    altname     Alternate Client Names for Restores

  o Errors
    error       Daily error logs 

  o Backup Images
    images      File Database 
      \(clientname)
       (classname)_(stime)_(backup_type) - backup image summary file
       (classname)_(stime)_(backup_type).f - full listing  of each file
saved
        
    BackupID recorded as (clientname)_(stime)   

  o Backup/Restore Job Information
    jobs        Completed & current job information             

  o NetBackup Media Use
    media       Media Database (Master & Slave Servers)



** Media Manager Files
**********************
(/usr/openv/volmgr/database/)

  o Configuration - tpconfig/xdevadm
    ltidevs - Device Database (Master & Slave Servers)

  o Volume Tracking - vmadm/xvmadm
    volDB - Volume Database
    poolDB - Pool Database



** NetBackup Daemons
********************

  o bprd    - Request Daemon (Master Server only)
              Responds to requests for restores, backup and archives
              Started by:initbprd Stopped by: bprdreq -terminate

  o bpdbm   - Database Manager (Master Server only)
              Manages config, error and file databases
              Started by: bprd or initbpdbm Stopped by: bpdbm - terminate

  o bpsched - Backup Scheduler (Master Server only)
              Schedules backups, determines Storage Unit
              Started by: bprd

  o bpbrm   - Backup/Restore Manager (Master and Slave Servers)
              Manages client and media manager processes

  o bptm    - Tape Media Manager (Master and Slave Servers)
              Manages transfer of images between client and storage device
 
  o bpbkar  - Backup/Archive Manager (UNIX Clients)
              Generates Backup Images
              Started by: bpbrm

  o bpcd    - NetBackup Client Daemon (UNIX Clients)
              Allows NetBackup server daemons to start client programs  
              Started by: inetd Stopped by: completion  of operation



** Daemon Logging
*****************

  o NetBackup
    To enable daemon logging create a directory with the name of the daemon 
    under /usr/openv/netbackup/logs. See readme in this directory for more 
    details. A restart of NetBackup only required when bprd logging is set.

  o Media Manager
    Create a directory /usr/openv/volmgr/debug/daemon and start Media
Manager 
    daemons with -v flag to commence logging. Remember to check 
    /var/adm/messages to identify problems with robot/tape hardware.



** Media Manager Daemons
************************

  o vmd   - Volume Management Daemon 
            Manages Volume Database, provides ltid with the location of 
            requested volumes
            Started by: vmd Stopped by: vmctrldbm -t

  o ltid  - Device Management Daemon (one per slave server)
            Controls reservation and assignment of volumes
            Started by: ltid Stopped by: stopltid

  o avrd  - Automatic Volume Recognition Daemon
            Controls automatic volume assignment and label scanning
            Started by: avrd Stopped by: kill {pid}

  o txxd  - Tape Device Daemon (one per host/robot)
            Forwards ltid mount/unmount requests to robotic control daemon
            Stopped by: kill {pid}

  o txxcd - Tape Device Control Daemon (one per robot)
            Processes mount/unmount requests from txxd
            Started by: txxcd Stopped by: txxcd -t

  All daemons will be started when ltid starts. stopltid stops only ltid,
avrd
  and the robotics daemons (not vmd or robotics control daemons)



** Product Installation
***********************

  o Unix File Amendments
    /etc/services - NetBackup ports 13720-13783 
                    Volume Manager ports 13701-13718
    /etc/inetd.conf - bpcd & java interface server

  o Driver installation
    The SCSA (Generic SCSI) driver is required for robot control & fast
block 
    locate (DLT devices only). It is located under /kernel/drv/ using the
files
    sg & sg.conf. On installation it also creates it's own device links
under 
    /dev/sg. Confirm correct loading of driver by running:-

        modinfo |grep  SCSA



** Useful NetBackup Commands
****************************

  o Admin
    initbprd - starts bprd & bpdbm
    bpps -a - displays all NetBackup & Media Manager processes
    bp.kill_all - kills all NetBackup & Media Manager processes
    xbpadm (- commands) - X windows administrator interface
    jbpSA - Java adminstrator interaface
    bpbackupdb - Backup NetBackup Databases
    bperror - Report errors
    bpcllist - List classes
    bpclinfo - Report class configuration
    bpstulist - Report Storage Unit configuration
    bpdbjobs - List backup jobs
    support - Listing of System & NBU environment (redirect stdout to file)
    bperrorcode - List short description of NBU error codes

  o Image Reports/Control
    bpimagelist - Report on backed up & archived images
    bplist - Report on backed up & archived files
    bpimmedia - Report on media status of backup image
    bpverify - Verify tape image with File Database contents 
    bpduplicate - Create copy of backup image
    bpexpdate - Image & Media expiration control

  o Media Reports/Control
    available_media - List all volumes in NBU Media Database
    bpmedialist - Report state of media
    bpmedia - Control state of media (freeze/suspend)
    bplabel - Write NBU label on tape media



** Useful Media Manager Commands
********************************

  o Admin
    vmadm/xvmadm - Volume administration interfaces
    vmoprcmd/xdevadm - Device administration interfaces
    tpreq/tpunmount - Request media (un)mount
    vmquery - Query Volume Database
    vmchange - Change media information in Volume Database
    vmadd - Add media to Volume database

  o Configuration
    tpconfig - Tape/Robot configuration
    sgscan (-v) - Report devices responding to SCSI inquire via SCSA driver
    scsi_command - Direct SCSI inquire command to specific device


APPLIES TO: Storage/NetBackup, AFO Vertical Team Docs/Storage 
ATTACHMENTS: 

----------------------------------------------------------------------------
----------------------
-----Original Message-----
From: John Pyle [mailto:PYLE AT wapa DOT gov]
Sent: Tuesday, May 14, 2002 12:44 PM
To: veritas-bu AT mailman.eng.auburn DOT edu; aloui_laila AT yahoo DOT com
Subject: Re: [Veritas-bu] help...command


Most commands have the syntax of <command> -h to get the help for
parameters.
Manpages for some of the commands will give you more detailed info.  This is
in the Admin Guide for Unix and Windows, though not all commands are listed.
If there is a specific, or few commands you are looking for list them and I
tell you what I have found for each.

>>> laila aloui <aloui_laila AT yahoo DOT com> 5/14/2002 10:16:13 AM >>>


Hi,

 where can i find help about netbackup command ?

 thanks in advance

laila



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com 
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu