Bacula-users

Re: [Bacula-users] limit client console messages

2009-03-23 06:41:29
Subject: Re: [Bacula-users] limit client console messages
From: Foo <bfoo33 AT yahoo.co DOT uk>
To: "Bacula Users Mailing List" <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 23 Mar 2009 11:36:23 +0100
On Thu, 19 Mar 2009 11:41:01 +0100, Ulrich Leodolter  
<ulrich.leodolter AT obvsg DOT at> wrote:

> How can i limit console messages to specific client?
>
> If i call bconsole on clientxyz i'd like to see
> only messages related to clientxyz-fd

Don't think there is a bconsole command for this, but you could do  
something like this:
echo "autodisplay on" | bconsole >/tmp/foo

Then grep "hostname" on /tmp/foo, make it a pipe for continuous use etc.  
Unfortunately only a part of the lines is prepended by the proper  
hostname, so this is only a quick workaround.

A better way is to use a script instead (or in front) of /sbin/bsmtp for  
the mailcommand facility in the Messages {} resource, since this is  
already splitting output per job.


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>