I need netbackup to run a script, which was created on a Linux server
Hello, I have the following problem. I would like netbackup to run a script, which was created on a Linux server (Redhat) The script is already ready, I just need the netbackup through a schedule to run this script I created. How could I do this, is it possible?Solved1.3KViews0likes4CommentsNeed help on how to script an "alternate location" backup for a specific server (VM) weekly
Hello, this is my first post, I do browse the forums everyweek though. ;) Here's my problem, I do this very manual "restore" to an alternate location for a server that needs a second backup copy every single week, (with different host (VM), different display name, etc). I was wondering if it was possible to script/schedule this sort of backup to happen weekly. Right now it is very time consuming and laborous to do this every week and was wondering if any shortcuts were available. Let me know if its possible to script something like that! Thanks, etn842Views0likes2CommentsAbout bpstart_notify.bat.
Hi all. Iwant to netbackup running to backup and then bpstart_notify script create test folder or file(example -> test.txt)which in C:\etc. What should i add sentence to bpstart_notify.bat file? Help! Let me know... @REM $ Id: bpstart_notify.bat, V 1.3 8 January 2006 PM 08 hour 46 minutes 43 seconds $ @REM ************************************************ *************************** @REM * $ VRTScprght: Copyright (C) 2016 Veritas Technologies LLC. All rights reserved VT25-0977-2658-84-51-3 $ * reserves @REM ************************************************ *************************** @REM Ecpyrght @REM @REM Bpstart_notify.bat @REM @REM This script when bpbkar to have been started on the client is called by NetBackup @REM To do a backup or archive. @REM @REM This script, will receive the six parameters. @ REM% 1 = CLIENT_NAME @ REM% 2 = POLICY_NAME @ REM% 3 = SCHEDULE_NAME @ REM% 4 = SCHEDULE_TYPE, following one: FULL, INCR, CINC, UBAK, UARC @ REM% 5 = STATUS, always 0 @ REM% 6 = RESULT_FILE @REM This script must be present on the inner in the same directory as the other parts of the NetBackup @REM @REM Client binary files (bpstart_notify.bat of install_path \ NetBackup of \ bin \ of). @REM Also, must be the root user can run. @REM Is terminated with a 0 if successful @REM @REM Naming conventions: There are three versions of the name that @REM script can be used. Start notifies a script that can be used 1 version, termination, notification that the script used @REM @REM Another, or they will be able to both use the same version. @REM Use "" that have been NetBackup policies and @REM substitute "of sched policy" @REM Schedule name. "Bpstart" can be replaced with a "bpend". @REM Bpstart_notify.policy.sched.bat @REM Bpstart_notify.policy.bat @REM Bpstart_notify.bat @REM @REM Result file: @REM Result file name, it will be dependent on the script file name. @REM Example: @REM Script name: Result file name: @REM Bpstart_notify.policyA.schedB.bat BPSTART_RES.policyA.schedB @REM Bpstart_notify.policyB.bat BPSTART_RES.policyB BPEND_RES bpend_notify.bat @REM @REM @REM Note: You can write what is the standard output and standard error output, backup problems. @REM Output, you need to redirect the results to a file. @REM @REM ------------------------------------------------ -------------------- @REM Main script starts here @REM Is a simple script that records the type of backup to be performed along the this And @REM with other relevent information (client name, such as policy name) @REM Adds the information to the results file @REM ------------------------------------------------ -------------------- @if "%4" == "FULL" goto FULL @if "%4" == "CINC" goto CINC @if "%4" == "" goto FAIL Backup, full, and since not a cumulative incremental, print @ REM general message @echo backup / restore, and began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1 @echo 0 >>% 6 @GOTO: EOF @REM Exit 0 : FULL @echo full backup, it began BP_RES.txt \ bpres =% 6 >> bottle to schedule% 3 and status% 5 Use the policy% 2% 1 @echo 0 >>% 6 @GOTO: EOF @REM Exit 0 @: CINC @echo cumulative incremental backup, began BP_RES.txt \ bpres =% 6 >> bottle to% 1 using the policy% 2% 3 schedule and status% 5 @echo 0 >>% 6 GOTO: EOF @REM Exit 0 : It will fail @REM No schedule type of information was not sent. Failure has occurred. Writes the status 1 to the result file. @echo 1 >>% 6 @GOTO: EOF @REM Exit 02.7KViews0likes10CommentsConfiguring or getting dbclient log name
Hi, I'm trying to automate SqlServer Backups by executing from control-m, which is a 3rd party schedule software. To do this, I have created a .bat file that call the Netbackup exec file (dbbackex.exe). I use this code to do this: echo "Starting SqlServer Backup on %COMPUTERNAME% " > C:\backuplog.log "C:\Program Files\Veritas\NetBackup\bin\dbbackex" -f C:\bcktest.bch -p nopr_bdd_msql_all -s back -np >> C:\backuplog.log echo %date% %time% >> C:\backuplog.log echo "Backup Finished " >> C:\backuplog.log IF %ERRORLEVEL% GTR 0 echo "Backup Finished with ERROR [%ERRORLEVEL%]" >> C:\backuplog.log IF %ERRORLEVEL% EQU 0 echo "Backup Finished SUCCESSFULLY" >> C:\backuplog.log echo "Review log file: C:\Program Files\Veritas\NetBackup\logs\user_ops\MsSql\Logs" >> C:\backuplog.log I would like to get the ERROR message, not only the code, using this script and if not possible, get dbclient log name to complete the last line and show something like: Review log file: C:\Program Files\Veritas\NetBackup\logs\user_ops\MsSql\Logs\0714115143814-55584-20776-000-000-prg Does anyone know if this is possible and how could I do this? Or is it possible to configure de path and logfile name? Other posibility I'm thinking of is manage error codes on my own, but I would need Error code list and cannot find it. Does anyone know if this exist? I would accept any other suggestion to get error information. I cannot use any other code but cmd/bat. Thanks in Advance, ElenaSolved3.8KViews0likes12CommentsScripted File System Restore - NBU 7.6 (Windows/Linux)
Hi All, Do we have any script available for file system restore using NBU 7.6 Windows/Linux? Customer is looking for script which include command line and performs pre check before restore? bprestore command can preform the activity as mentioned in the document. But enhanced script is what customer is looking for. Please provide inputs. Thanks and Regards Riyas Hussain ASolved729Views0likes1Commentbpstart_notify remote ssh hangs
Hi, I have been using the remote ssh commad execution with AIX hosts running NBU 7.0. Later the applications were migrated to Solaris 11 and with NBU 7.5.0.7. We have ported the same scripts to the new hosts. The scripts run as expected when run mannually on command line but when it is called from the backup job (bpbkar32 process) the remote ssh command hangs at the backup client and the backup fails. But the remote command successfuly completes at the remote host. Is this a bug with the NBU client process or is this not supported by NBU clients? Regards, Mahesh1.4KViews0likes5CommentsORA-19511: Error received from media manager layer, error text: VxBSACreateObject: Failed with error:
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on ch01 channel at 11/06/2014 00:27:30 ORA-19506: failed to create sequential file, name="al_13200_1_862876485", parms="" ORA-27028: skgfqcre: sbtbackup returned error ORA-19511: Error received from media manager layer, error text: VxBSACreateObject: Failed with error: Server Status: Communication with the server has not been initiated or the server status has not been retrieved from the serve master server : solaris10 media server : linux agent : solaris 10 /oracle 10g5.1KViews0likes5Commentsbplist EXIT STATUS 227: no entity was found (Again!)
Dear All, The bplist command lists all you want, and exactly all you ask for (even not being aware of it), as 1E100 counts problems are not rare. Basing on the already noticed and described cave-eats (short summary): https://www-secure.symantec.com/connect/forums/bplist-exit-status-227-no-entity-was-found Remember to choose policy type, if not you are using type == 0 (not Windows, not SQL, not Oracle etc...) https://www-secure.symantec.com/connect/forums/bplist-command As above and provide date range. Nice list of NetBackup policy types http://www.symantec.com/docs/TECH27299 bplist detailed syntax description http://www.symantec.com/docs/HOWTO43668 I would like to propose a set of "golden rules" for bplist command: 1. Always specify policy type (-t). 2. Always provide relevand data range (-s, -d). 3. Mind the listing recursiveness(-R) as it may be too verbose when you just put the "/" or it may not show anything for non-file like backup types. 4. Provide as many other details as possible to speed up the search. Template forgood examples: bplist -C <ClientName> -S <MasterServer> -t <PolicyType> -k <PolicyName> -s MM/DD/YYYY HH:MM:SS -e MM/DD/YYYY HH:MM:SS -R / That may result in something like: bplist -C MyClient -S MyMaster -t 4 -k OraclePolicyName -s 08/08/2014 08:00:00 -e 09/09/2014 08:00:00 -R / Hopefully I will find this article prior loosing few hours solely on bplist syntax refresh ;-)2.6KViews2likes2CommentsTrouble with nbperfchk
Hi! I have a issue with nbperfchk. My write test was successfull. I used the commandnbperfchk -i zero: -o T:\test -s 80g -syncend. Now I want to do the read test and use the command:nbperfchk -i T:\test -bs 1M -o NUL. All i get in the console are the following lines: 9 MB @ 0.0 MB/sec, 0 MB @ 0.0 MB/sec, at 1382082483. The last number counts up every line by 3, the rest stays the same. for over 2 hours now. Am I doing something wrong or is there a hardware/software issue? Thanks for your helpSolved1.8KViews0likes7Commentsnetbackup 7.5.06 , bpdbjobs hangs
Hi, i'm running NetBackup 7.5.0.6 on Solaris 10. With 2 Mediaservers and the Master in a non-Global Solaris Zone. Sometimes i do have a strange behaviour. Everything runs. All jobs are scheduled and processed correctly. (as far as i can see) The only thing that doesn't work is the 'bpdbjobs' CMD. I didnt find another CMD that doesnt work. But this is somewhat important. Lots of scripts/reports depend on the output of 'bpdbjobs' CMD. Does this happen, i "just" have to restart all Netbackup processes and everything is fine for nearly 2 month. Does anyone have a hint for me what i can do ? Where i should have to look for ? cu Ingo F.Solved1.1KViews1like2Comments