cancel
Showing results for 
Search instead for 
Did you mean: 

Post NetBackup notifications to event log on client servers

ricp
Level 4

Is it possible to post NetBackup job start/complete/fail notifications in the windows event log on client servers running a variety of Netbackup clients, mainly version 5.1?

I may have read somewhere it is possible to get this information sent to the master servers event log using scripts, but can't find any info about logging the events on the client.

We don't have full access to the master boxes.

Many thanks,

 

Ric

10 REPLIES 10

Lee_C
Level 5

Blat needs to be set up on the master server.

For start and end you could use the bpstart_notify.bat and bpend_notify.bat scripts in the c:\program files\veritas\netbackup\bin\goodies\

ricp
Level 4

Never heard of Blat, but from reading up there it seems to be some kind of email engine. I don't want logs or alerts emailed, just get the events logged in event viewer on the local client that is being backed up. 

 

Thanks

Lee_C
Level 5

Hi,

Sorry misunderstood.  I'm not sure of the best solution, or whether there is something native in NBU,  but I wonder if you could still use the bpstart_notify.bat and bpend_notify.bat scripts and modify them to use eventcreate.

http://support.microsoft.com/kb/324145

Mark_Solutions
Level 6
Partner Accredited Certified

Hi

Remebered this post from a while ago and just stumbled across the answer.

It lists it as being a Master Server configuration but may be worth a try on a client?

For 5.1 check out page 79 onwards of the troubleshooting guide

For V7.1 check out page 142 onwards of the troubleshooting guide.

Sample details:

V5.1 :

1. Create the following file on the NetBackup master server:
install_path\NetBackup\db\config\eventlog
2. Add an entry (optional) to the eventlog file that specifies the severity and type of
NetBackup messages that are written. The following is an example:
56 255

V7,1:

The following example routes the application and diagnostic messages for nbrb
to the Windows event log:
vxlogcfg -a -o nbrb -p NB -s "LogToOslog=true"

To enable the logging tool, do the following:
1. Create the following file on the NetBackup master serve.
install_path\NetBackup\db\config\eventlog
2. Optionally, add an entry to the eventlog file. The following is an example:
56 255

Lots more to this so take a look at the guides.

Hope this helps

ricp
Level 4

Thanks for that Mark.

I've logged onto the clients though and the path were to create the eventlog file doesn't exist. I don't have access to the master server to check the path there as it's a Unix box.

 

Any ideas?

 

Thanks again

 

Ric

Mark_Solutions
Level 6
Partner Accredited Certified

Just create the folder structure and then put the file into it with which ever entires you need

You will have to see if it works on the clients as generally you would want this on the Master

Hope this helps

ricp
Level 4

Hmmm. Tried that, but then saw that you need to run a cmd 

vxlogcfg -a -o nbrb -p NB -s "LogToOslog=true"

to get it to route the messages to the windows event log.

vxlogcfg doesn't appear to be installed on the netbackup clients. Any ideas? 

 

Also, is the eventlog file at the end of install_path\NetBackup\db\config\eventlog just a text file?

 

Thanks for any input!

Mark_Solutions
Level 6
Partner Accredited Certified

vxlogcfg didnt exist for V5 so dont worry about that part

Create the eventlog as a text file and then remove the .txt so it has no extension.

You can still then open it with notepad (when prompted to use a program) and just put the numbers into it that you want sending to the event log or just leave it as an empty file to send everything.

Let me know how it goes

ricp
Level 4

just taken the .txt extension off so will see how it goes tonight. Will let you know.

 

Thanks

Mark_Solutions
Level 6
Partner Accredited Certified

How did this go?

Keeping us in suspense!