NetBackup Scripting Sheet
I created a spreadsheet that can generating commands to create and modify NetBackup policy configuration. Now(Mar 24 2013), this sheet is based on NetBackup 7.5, but you can disable each attribute options to fit the commands to your version. I hope this greatly helps you. XLSX:https://docs.google.com/spreadsheet/pub?key=0Au84Otyr1NpndE5GWXhfVzUzX3o4S05QTXd5OFRIdFE&output=xls ODS:https://docs.google.com/spreadsheet/pub?key=0Au84Otyr1NpndE5GWXhfVzUzX3o4S05QTXd5OFRIdFE&output=ods2.6KViews8likes12Commentsbplist 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.6KViews2likes2CommentsSAP/MaxDB backup of transaction logs - status code 6 resolution
If you are backing up transaction logs of SAP/MaxDB you probably have often failed backups with status code 6. But nothing wrong happened. Just no transactions was available for backup. It's a behavior of dbmcli - anything except successful backup returns exit code 1. But parent wrapper script provided by Symantec is not able to distinguish real errors from situation where there are just no transactions to backup. (Read TECH129715). By Symantec we have to wait until SAP will provide dbmcli with more granular exit codes. Seems that we cannot do anything. Or can? What is the standard output of successful backup? Here is one example of stdout log file from bphdb log directory: SAP_SCHEDULED = 1 SAP_USER_INITIATED = 0 SAP_SERVER = master SAP_POLICY = CUSTOMER1-SAP SAP_FULL = 0 SAP_CINC = 0 OK Returncode 0 Date 20131011 Time 00232008 Server SAPDB1 Database DB1 Kernel Version Kernel 7.9.08 Build 008-123-247-140 Pages Transferred 24 Pages Left 0 Volumes 1 Medianame BACKLog Location \\.\pipe\BACKLog Errortext Label LOG_000000662 Is Consistent First LOG Page 1990049 Last LOG Page 1990050 DB Stamp 1 Date 20131011 DB Stamp 1 Time 00230056 DB Stamp 2 Date 20131011 DB Stamp 2 Time 00230056 Page Count 1 Devices Used 1 Database ID SAPDB1:DB1_20130615_201611 Max Used Data Page Converter Page Count DBMCLI successful And now something completely different: SAP_SCHEDULED = 1 SAP_USER_INITIATED = 0 SAP_SERVER = master SAP_POLICY = CUSTOMER1-SAP SAP_FULL = 0 SAP_CINC = 0 ERR -24920,ERR_BACKUPOP: backup operation was unsuccessful The database was unable to fulfill a request (-123, No more log to save). Execution of DBMCLI command failed - exiting This is the example of situation when MaxDB has no transactions available since last backup. I have decided to use string "-123, No more log to save" as detector of this situation. Check whether your version of SAP/MaxDB is working the similar way. And what is the final solution? Just to catch output of dbmcli and seek for the right string. The whole script with colorized changes is available on my page HERE. Please, try it. May it will help you. In case of any troubles, send me a notice (like other string for different versions of MaxDB).1.9KViews2likes0CommentsHow to migrate the Symantec DLO 7.5 SP1 to a new server with different IP and Host Name.
Hi, Actually i have migrated the Symantec DLO 7.5 SP1 to a new server with different IP and Host Name, by restoring the DLO.mdf and DLO.ldf data files but after migration, the clients are not able to communicate with the new server. And after troubleshooting I found the DBServer name on clients in the registry was remain same(Old Server Host Name). If we change the DBServer Name then the Backup runs on Windows XP, but On Windows 7 machine its not working thereafter client get disabled after changing the DBServer Name in registry. So Please help me to get out of it. Is there any other way to migrate the SDLO 7.5 SP1. Thanks, Ashish Agrawal ACPL Systems Pvt. Ltd.1.5KViews2likes7CommentsNetbackup Restores
I am lookimg at automating netbackup restores at user level .. Is there any third party tool which can simplify this ? example - user enters server name date of restore path of data restore path and upon interactive input ..should be able to restore without netbackup administrator help1.1KViews2likes7CommentsBackup Exec 2014 BEMCLI - Exception returning data
Hi guys, I am developing some scripts in Powershell and I found a problem using BEMCLI. I have installed a new Backup Exec 2014 from scratch (first was an upgrade from 2012 to 2014). I execute the following code in Powershell Import-Module BEMCLI $jobs = Get-BEJob | Where-Object {$_.JobType -eq "Backup"} Then when I check the information, the atribute "Taskname" returns this Exception getting "TaskName": "The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter BackupExec.Management.Services:GetSolutionResult. The InnerException message was 'Element 'http://schemas.datacontract.org/2004/07/BackupExec.Management.Objects:TaskDefinition' contains data from a type that maps to the name 'http://schemas.datacontract.org/2004/07/BackupExec.Management.Objects:BackupCustomTaskDefinition'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'BackupCustomTaskDefinition' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.'. Please see InnerException for more details." I a second server following steps I received the correct data insise D for daily jobs W for week jobs I dont understand really the problem. Where the code works I am running W.S 2012 R2 and where it fails is W.S 2008 R2Solved646Views1like1CommentBEMCLI / Powershell /Backup Exec 2014 / Submit-BEFileSystemRestoreJob
My fileserve backup selectionsare done using \\SERVER\ShareName Is there a way restore using BEMCPLILI with Pointing to the share as a Path? As of Now, only wat i found to do a restore is this way (But it means I must change all my jobs) $File=(Get-Childitem -path "\\Server\D$\Folder\Folder" ` | Get-Random -Count 1).FullName.ToUpper().Replace("\\SERVER\D$","D:") Get-BEJob -Name *00058* ` | Get-BEJobHistory -FromLastJobRun ` | Submit-BEFileSystemRestoreJob $file ` -RedirectToPath D:\RestoreTestJobsFolder Looking for a way to restore using a "share path instead" if possible (This does not work) $File=(Get-Childitem -path "\\Server\Share\Folder\Folder" ` | Get-Random -Count 1).FullName Get-BEJob -Name *00058* ` | Get-BEJobHistory -FromLastJobRun ` | Submit-BEFileSystemRestoreJob $file ` -RedirectToPath D:\RestoreTestJobsFolder Thank you for your help!515Views1like0Commentssap oline backup error
Hi ,,, can any one tell me what is the resion of error no 6.. Please give me proper solution for that.. SAP_SCHEDULED = 1 SAP_USER_INITIATED = 0 SAP_SERVER = bkp-srv1 SAP_POLICY = sapprod1_online_backup SAP_SCHED = SAP_SNC_SCHED = Full BR0051I BRBACKUP 7.00 (32) BR0055I Start of database backup: benfdery.anf 2014-02-15 10.56.10 BR0484I BRBACKUP log file: O:\oracle\D12\sapbackup\benfdery.anf BR0280I BRBACKUP time stamp: 2014-02-15 10.56.10 BR0301E SQL error -257 at location BrDbConnect-2, SQL statement: 'CONNECT system/********' ORA-00257: archiver error. Connect internal only, until freed. BR0310E Connect to database instance D12 failed BR0280I BRBACKUP time stamp: 2014-02-15 10.56.10 BR0301E SQL error -257 at location BrDbConnect-2, SQL statement: 'CONNECT system/********' ORA-00257: archiver error. Connect internal only, until freed. BR0310E Connect to database instance D12 failed BR0056I End of database backup: benfdery.anf 2014-02-15 10.56.10 BR0280I BRBACKUP time stamp: 2014-02-15 10.56.10 BR0054I BRBACKUP terminated with errors Execution of BRBACKUP command failed - exiting1.5KViews1like4Commentsnetbackup 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.1KViews1like2Commentsthe same GUID on two computers
I have two computers with the same GUID in Altiris Agent. So I deleted them from SSR-MS, then reset Guid (AeXAgentUtil.exe /resetguid), and then restart agent. But when I checked them it had again the same new GUID. So I've found on Altiris KB some script: 'vbscript Change GUID then force client to update configuratin and send basic inventory Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell" ) Dim TypeLib, sNewGuid Set TypeLib = CreateObject("Scriptlet.TypeLib" ) sNewGUID = TypeLib.Guid Set TypeLib = Nothing sNewGuid = left(sNewGUID, len(sNewGUID)-2) ' wscript.echo " # Guid Generated " + sNewGuid WshShell.RegWrite "HKLM\Software\Altiris\Altiris Agent\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\Client Service\NSMachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\eXpress\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\eXpress\NS Client\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Computing Edge\Notification Server\MachineGuid" ,sNewGuid, "REG_SZ" Dim client Set client=WScript.CreateObject ("Altiris.AeXNSClient" ) ignoreBlockouts=1 sendIfUnchanged = 1 client.SendBasicInventory sendIfUnchanged, ignoreBlockouts client.UpdatePolicies ignoreBlockouts Probably it works well/better. Now in Resource Manager I see both computers. But when I click "Symantec System Recovery Details" in SSR-MS I have information that "The Symantec System Recovery configuration data is not available" What to do with this?2KViews1like13Comments