BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: {bb} belog2bb.cmd on Windows 2003 & Veritas V9.1



Replying to my own post - always a bad sign ...

1) On Win2003 & XP, check the Short Date format - Control Panel-Regional
Options-Customize-Date - Make sure it is set to "ddd dd/MM/yyyy" (or
your local variation!)

2) Sorted by the same date format change.

3) Only a problem for Veritas Backup Exec V9 & higher - I had to change
the batch file to look for BEX*.htm instead of .txt and also changed 
	copy "%JOBLOG%" "%BUPLOGPRE%">NUL

to	

	type "%JOBLOG%" > "%BUPLOGPRE%"

to get rid of the unprintable characters.

Still left with all the XML stuff in the BigBrother screen. Anyone know
of a free command-line XML to TXT converter?

Ta,

Andrew
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Andrew
Clarke
Sent: 23 August 2005 13:10
To: bb@bb4.com
Subject: {bb} belog2bb.cmd on Windows 2003 & Veritas V9.1

Has anyone updated the belog2bb external script for Veritas BackupExec
V9 (which logs into XML files) and Windows 2003?

I've had a go but my DOS Batch skills are very rusty!

The main problems I've found so far (after altering the job to look for
BEX*.xml instead of BEX*.txt files) are:

1) The script seems to be expecting the "DATE /T" command to return the
day of the week. On our server it just returns dd/mm/yyyy

2) There's a nasty FOR line in the POST section that should return a
zero but is actually coming back with an errorlevel of 1 (causing the
script to abort). I've pulled this line out & run it in a small test
script & it returns zero :-

	REM Check if there is a BEX*.xml file from today
	FOR /F "Tokens=2" %%f IN ('DATE /T') DO DIR
"%BEDIR%\BEX*.xml"|FIND /I "%%f"
	IF %ERRORLEVEL% GTR 0 GOTO LOGFILENOTFOUND

3) The xml format of the log files also seems to cause problems - the
findstr for "Job completion status:" fails - If I set it to look for
"J", I get - "J.o.b. .c.o.m.p.l.e.t.i.o.n. .s.t.a.t.u.s.: - but looking
for "J.o.b (etc)" also fails.

So, I'm hoping there's a Brother out there who has updated this script
already ...

Many thanks,

Andrew


--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index