apps:netbackup:cli
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apps:netbackup:cli [2015-09-07 07:52] – root | apps:netbackup:cli [2016-07-05 22:53] (current) – root | ||
---|---|---|---|
Line 25: | Line 25: | ||
</ | </ | ||
+ | ==== Show Status Code Recommendations ==== | ||
+ | |||
+ | < | ||
+ | # bperror -S 96 -r | ||
+ | unable to allocate new media for backup, storage unit has none available | ||
+ | The NetBackup Resource Broker (nbrb) did not allocate a new volume for backups. This error indicates that the storage unit has no more volumes available in the volume pool that is specified for this backup. Note that NetBackup does not change storage units during the backup. | ||
+ | |||
+ | Check the NetBackup Problems report to determine the storage unit that is out of media. | ||
+ | * If the storage unit is a robot with empty slots, add more volumes (remember to specify the correct volume pool). | ||
+ | * If there are no empty slots, move some media to nonrobotic and then add new volumes. | ||
+ | ... | ||
+ | The mds unified logging files (OID 143) usually show the NetBackup media selection process. | ||
+ | More troubleshooting information in a wizard format is available for this status code. | ||
+ | http:// | ||
+ | Click here to view technical notes and other information in the Symantec Knowledge Base about this status code. | ||
+ | </ | ||
+ | |||
+ | ==== Expire Tape ==== | ||
+ | |||
+ | < | ||
+ | # bpexpdate -m L30000 -d 0 -force | ||
+ | Media L30000 is due to expire at 01/01/1970 01:00:00 | ||
+ | Are you sure that the data on this media is not critical to | ||
+ | your business, and you are sure you want to delete L30000 y/n (n)? | ||
+ | </ | ||
+ | |||
+ | ==== Show Brief Tape Content ==== | ||
+ | |||
+ | < | ||
+ | # bpimmedia -mediaid L30071 | ||
+ | Backup-ID | ||
+ | Copy Frag KB Type Density FNum Off | ||
+ | ----------------------------------------------------------------------------------------------------- | ||
+ | myNBClient0_1440918059 | ||
+ | myNBClient0_1439708452 | ||
+ | myNBClient1_1439708412 | ||
+ | </ | ||
+ | |||
+ | ==== Show Backed Up Files of a Client Since a Date ==== | ||
+ | |||
+ | < | ||
+ | # bplist -C myNBClient0 -s 01/21/2015 -R -b -l -k myBackupPolicy /tmp | ||
+ | drwxr-xr-x root root 0 Aug 08 04:25 /tmp | ||
+ | -rw-r--r-- root root 49145860K Aug 08 04:25 / | ||
+ | -rw-r--r-- root root 200 Aug 08 04:25 / | ||
+ | </ | ||
+ | |||
+ | ==== Show Backed Up Files by BackupID ==== | ||
+ | |||
+ | < | ||
+ | # bpflist -client myNBClient0 -backupid myNBClient0_1421224742 -d 01/21/2015 -rl 999 -pattern /tmp | ||
+ | FILES 10 0 0 1421224742 0 myNBClient0 myBackupPolicy myNBClient0_1421224742 - *NULL* 19 0 unknown unknown 0 0 *NULL* | ||
+ | 5 0 37 52 138876830 1 0 0 64774 / | ||
+ | 6 0 38 54 138876834 1 0 0 64774 / | ||
+ | </ | ||
+ | |||
+ | ==== Show Retention Levels with According Time ==== | ||
+ | |||
+ | < | ||
+ | # bpretlevel -l | ||
+ | 0 604800 1 week | ||
+ | 1 1209600 2 weeks | ||
+ | 2 1814400 3 weeks | ||
+ | 3 2678400 1 month | ||
+ | 4 5356800 2 months | ||
+ | 5 8035200 3 months | ||
+ | 6 16070400 6 months | ||
+ | 7 24105600 9 months | ||
+ | 8 31536000 1 year | ||
+ | 9 2147483647 infinite | ||
+ | ... | ||
+ | 24 2147483647 infinite | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Get a Client-Policy List ==== | ||
+ | |||
+ | < | ||
+ | # bppllist -allpolicies | awk '/ | ||
+ | myClient00 myPolicy00 | ||
+ | myClient00 myPolicy01 | ||
+ | myClient01 myPolicy00 | ||
+ | myClient03 myPolicy01 | ||
+ | </ | ||
+ | |||
+ | ==== Tape Usage ==== | ||
+ | |||
+ | Get approximate numbers about tape usage of a library. | ||
+ | |||
+ | < | ||
+ | # bpmedialist -l | awk ' | ||
+ | total capacity: 370.917 TB | ||
+ | average data per tape: 566.05 GB | ||
+ | compression ratio: 1.41512 | ||
+ | </ | ||
+ | |||
+ | pro_tape_GB/ | ||
+ | |||
+ | ==== Find by Pattern in Backups ==== | ||
+ | |||
+ | The following example searches for the pattern *tmp* in all files and directories which are backuped by FULL Schedules within the last two weeks. | ||
+ | |||
+ | < | ||
+ | # nbfindfile -c myClient0 -p " | ||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Sun Oct 25 09:00:09 2015 (1445760009) | ||
+ | Backup ID : myClient0_1445760009 | ||
+ | ========================================================== | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | /var/tmp/ | ||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Sun Oct 25 09:00:07 2015 (1445760007) | ||
+ | Backup ID : myClient0_1445760007 | ||
+ | ========================================================== | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== Manage exclude_list of UNIX/Linux clients from the server ==== | ||
+ | |||
+ | If there is a client like " | ||
+ | |||
+ | < | ||
+ | # bpgetconfig -e myClient-exclude_list myClient | ||
+ | </ | ||
+ | |||
+ | The copied file is a normal text file. Entries can be added or removed. This file can be sent back to the server: | ||
+ | |||
+ | < | ||
+ | # bpsetconfig -e myClient-exclude_list -h myClient | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Search in all Backups of a Client ==== | ||
+ | |||
+ | === Windows === | ||
+ | |||
+ | < | ||
+ | # nbfindfile -c myClient0 -only_files -p " | ||
+ | |||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Thu 07 Jan 2016 12:21:20 AM CET (1452122480) | ||
+ | Backup ID : myClient0_1452122480 | ||
+ | ========================================================== | ||
+ | -rwx------ root;Admi root; | ||
+ | -rwx------ root;Admi root; | ||
+ | -rwx------ root;Admi root; | ||
+ | -rwx------ root;MSSQ root; | ||
+ | |||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Mon 28 Dec 2015 12:04:47 AM CET (1451257487) | ||
+ | Backup ID : myClient0_1451257487 | ||
+ | ========================================================== | ||
+ | -rwx------ root;SYST root; | ||
+ | -rwx------ root;SYST root; | ||
+ | -rwx------ root;SYST root; | ||
+ | -rwx------ root;SYST root; | ||
+ | </ | ||
+ | |||
+ | === Linux === | ||
+ | |||
+ | < | ||
+ | # nbfindfile -c myClient1 -only_files -p " | ||
+ | |||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Mon 04 Jan 2016 11:01:43 PM CET (1451944903) | ||
+ | Backup ID : myClient1_1451944903 | ||
+ | ========================================================== | ||
+ | -rwx------ root root 63 Oct 14 15:47:47 / | ||
+ | |||
+ | ========================================================== | ||
+ | Client | ||
+ | Policy | ||
+ | Backup Time : Thu 31 Dec 2015 07:06:14 PM CET (1451585174) | ||
+ | Backup ID : myClient1_1451585174 | ||
+ | ========================================================== | ||
+ | -rwx------ root root 63 Oct 14 15:47:47 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Create a List of all Clients with Client-Version and OS ==== | ||
+ | |||
+ | < | ||
+ | # for client in $(bpplclients -allunique -l | awk '{ print $2 }'); do info=$(bpgetconfig -s " | ||
+ | myClient01; | ||
+ | myClient02; | ||
+ | myClient03; | ||
+ | </ | ||
===== Client ===== | ===== Client ===== | ||
Line 34: | Line 241: | ||
</ | </ | ||
+ | < | ||
+ | lsof -n -P -p $(pgrep " | ||
+ | </ |
apps/netbackup/cli.1441605147.txt.gz · Last modified: 2015-09-07 07:52 by root