Mar 092010
 

Description: How to generate a binary log dump

Solution/Workaround/Procedure:

Step 1: From the main NetVault window open the Logs screen.
Step 2: Click on the “Filter” icon to open the “Filter Options” window.
Step 3: Set the warning level to “ALL” and the time range to “First Event” and “Last Event”.
Step 4: Press “OK” to close the “Filter Options” window and apply the filter options.
Step 5: Click on the “Dump Log to File” icon.
Step 6: Click the radio button to set the Format to “Binary”
Step 7: Enter a relevant name for the file (a good example is the Case-ID and date) and click “OK”.

The file will be saved into the “$NV_HOME\logs\dumps\binary” directory on Linux\Unix and in “%NV_HOME%\logs\dumps\binary” on Windows.

Mar 042010
 

‘Copy C:\Backup.Log.File.txt to desktop and add current date and time to the filename.
‘Robert Holland:20100303:

Const ForWriting = 2
strDate = Replace(Date(), “/” ,”_” )
strDate = Now()

‘Now get the parts of the date I want so I can make my own string.
strYear = DatePart(“yyyy”,strDate)
strMonth = DatePart(“m”,strDate)
strDay = DatePart(“d”,strDate)
strHour = DatePart(“h”,strDate)
strMinute = DatePart(“n”,strDate)
strSecond = DatePart(“s”,strDate)

‘Can’t get the two digit month and day to show up so I put a letter after everything.
‘strFileDate = “Y” & strYear & “M” & strMonth & “D” & strDay & “H” & strHour & “m” & strMinute & “s” & strSecond & “.txt”
strFileDate1 = strYear & “Y” & strMonth & “M” & strDay & “D” & strHour & “H” & strMinute & “m” & strSecond & “s” & “.txt”

‘Set objFSO = CreateObject(“Scripting.FileSystemObject”)
‘Set objOutputFile = objFSO.CreateTextFile( _
‘ “c:\Software\DateInFileName ” _
‘ & strFileDate, ForWriting)

Set objShell = WScript.CreateObject(“WScript.Shell”)
Dim oWshEnvironment, FSO
Set oWshEnvironment = objShell.Environment(“Process”)
Set FSO = CreateObject(“scripting.FileSystemObject”)
sCurrentProfile = oWshEnvironment(“USERPROFILE”)

‘Copy the file and append the date.
‘FSO.CopyFile “C:\Backup.Log.File.txt”, sCurrentProfile & “\Desktop\” & “Backup.Log.File.” & strFileDate
‘FSO.CopyFile “C:\Backup.Log.File.txt”, “C:\Software\BackupLog\” & “Backup.Log.File.” & strFileDate
FSO.CopyFile “C:\Backup.Log.File.txt”, sCurrentProfile & “\Desktop\” & “Backup.Log.File.” & strFileDate1
FSO.CopyFile “C:\Backup.Log.File.txt”, “C:\Software\BackupLog\” & “Backup.Log.File.” & strFileDate1