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.6KViews8likes12CommentsVBA: Extracting mail attachements from archived mails
Like many others, i had a problem extracting attachement from archived mail items. The name of the attachement is "@" instead of the actual file name. It was suggested in a particular mail to use the API, but you need EVAdmin to do so. (CreateObject("EnterpriseVault.ContentManagementAPI") failed) Another suggestion was to read the HTMLbody of the mail and search for the filename. After a little research, i found that, if you "Display" the mailitem, it will be accessible as any other mailitem, including the attachements. Here's the code: Private Function GetSelectedMailAttach() As String Dim olApp As Outlook.Application Dim olExp As Outlook.Explorer Dim olSel As Outlook.Selection Dim olItem As Outlook.MailItem Dim olAtt As Outlook.Attachment Dim olInsp As Outlook.Inspector Dim olSelItem As Outlook.MailItem Dim olOpnItem As Outlook.MailItem Dim i As Long Dim strRet As String On Error GoTo ErrorHandler Set olApp = GetObject("", "Outlook.Application") Set olExp = olApp.ActiveExplorer Set olSel = olExp.Selection If olSel.Count = 0 Then MsgBox "No mailitems selected!", vbExclamation GoTo Finalize End If For i = 1 To olSel.Count Set olInsp = Nothing Set olSelItem = olSel.item(i) olSelItem.Display Do While olInsp Is Nothing Set olInsp = olApp.ActiveInspector Loop Set olOpnItem = olInsp.CurrentItem For Each olAtt In olOpnItem.Attachments If olAtt.Type <> olOLE Then olAtt.SaveAsFile Environ("TEMP") & "\" & olAtt.DisplayName If strRet = "" Then strRet = Environ("TEMP") & "\" & olAtt.FileName Else strRet = strRet & vbCrLf & Environ("TEMP") & "\" & olAtt.FileName End If End If Next olOpnItem.Close olDiscard Next If strRet = "" Then MsgBox "No attachements found in selected mails!", vbExclamation End If GetSelectedMailAttach = strRet GoTo Finalize ErrorHandler: MsgBox Err.Description, vbCritical Finalize: Set olAtt = Nothing Set olItem = Nothing Set olSel = Nothing Set olExp = Nothing Set olApp = Nothing Set olInsp = Nothing Set olSelItem = Nothing Set olOpnItem = Nothing End FunctionSolved3.7KViews4likes5CommentsAfter PST Migration Completed End User Can't Open Outlook
Enterprise Vault 11.0.1 CHF1, On Windows 2008 R2, Exhange 2013 CU8, End user uses outlook 2013. After PST migration completed when end user trys to open his outlook he faces with error which PST Outlook data file can not be found. By manuelly I can remove PST file which is migrated and solve this issue. But this is "Server driven pst migration" method and more than thousand end users. Are there any settings, policy or parameters on Enterprise Vault side to solve this issue automatically.Solved668Views2likes2Commentsbplist 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 for good 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.6KViews2likes2CommentsProvisioning API Failing
Hi, I have been using a vbscript for a number of years that uses the evpm to prevent archiving the "DoNotArchive" folder in a users mailbox. I think that this stopped working around the time we moved to Windows 2008 R2 and EV10SP4 but I can't be sure. When the script runs now I get the error: An error occurred replacing the script parameters I have now used the example in the EV utilities guide (About using the Provisioning API to run Policy Manager Scripts, p253) as per below: option explicit Dim ArrayOfParameters(0) ArrayOfParameters(0) = "true" Dim Enabler Set Enabler = CreateObject("EnterpriseVault.ExchangeArchivePoint") Enabler.Directory = "MACHINE1" Enabler.Site = "site1" '(Entry Id or Site Name) Enabler.ExchangeServer = "DITTO" '(Entry Id or Exchange Name) Enabler.SystemMailbox = "EnterpriseVault-DITTO" Enabler.MailboxDN = "/o=Eng2000/ou=First Administrative Group/cn=Recipients/cn=Bruiser" Enabler.SetScriptFile "C:\MyScripts\Script1.ini", ArrayOfParameters Enabler.ExecuteScript ' runs the EVPM script against the script1.ini file after making the substitutions in the strings. and I get the same error. I did amend the values relevant to my site but that was it. I raised a call with Symantec and they said I had missed the brackets on the line: Enabler.SetScriptFile "C:\Program Files (x86)\Enterprise Vault\Scripts\EVPM\EnableScript_DONOTARCHIVETest2.ini", ArrayOfParameters So I added them in: Enabler.SetScriptFile ("C:\Program Files (x86)\Enterprise Vault\Scripts\EVPM\EnableScript_DONOTARCHIVETest2.ini", ArrayOfParameters) But then got the error: Cannot use parentheses when calling a Sub Symantec support said that they get the same errors (with their own script out of the the utilities guide) but cannot help me any further as they don't support scripts. Does anyone else use vbscript for EVPM on Windows 2008 R2 EV10SP4 and if so have you had the same issues and overcome them. Symantec support couldn't offer an alternative for me other than I would have to manually use evpm for each of our mailboxes. We have thousands. Any help would be greatly appreciated. MattSolved726Views2likes3CommentsSAP/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.1KViews2likes7CommentsTrying to connect to Discovery Accelerator API
Hello Everyone, I'm trying to connect to the Discovery Accelerator API but keep getting the following error when I call the GetConfigurationData() method. Here is the code i'm using to connect. DiscoverySoapClient c = new DiscoverySoapClient(); c.ClientCredentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials; c.Open(); try { var con = c.GetConfigurationData(); int offset = 0; int count = con.MaximumItemChunkSizeBytes; string temp = Path.GetTempFileName(); using (FileStream fs = File.OpenWrite(temp)) { while (true) { byte[] data = c.GetItem(28390389021, offset, count, out contentInfo); fs.Write(data, 0, data.Length); offset += data.Length; if (data.Length < count) break; } } FileInfo fi = new FileInfo(temp); fi.MoveTo(fn); Assert.IsTrue(File.Exists(fn)); } catch { c.Close(); } Here is my web.config file; <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="DiscoverySoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="false"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" /> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding> </bindings> <client> <endpoint address=http://NAME.OF.THE.SERVER/generalsearch/discovery.asmx binding="basicHttpBinding" bindingConfiguration="DiscoverySoap" contract="SymantecWS.DiscoverySoap" name="DiscoverySoap" /> </client> </system.serviceModel> </configuration> The error I'm getting is the following;697Views2likes1Comment