Dear List,

Not sure if this belongs here as my question is not about programming 
Bacula but more of programming around Bacula. I am writing some bash 
scripts to interact with Bacula and use bconsole as an interface for this.
Doing so I realized it would be great if some features and commands 
would be added to bconsole to facilitate such interactions more easily. 
As I understand the list with requests for 2009 is more than filled and 
already finalized I guess I am out of luck.  A batch parameter to 
bconsole to suppress echoes of "connecting to ...." etc would be nice 
for instance. Now bash scripts get cluttered with sed and awk to get to 
the actual information.

My actual issue:
I have 2 Bacula machines (one running production (Bacula 2.4.1 on Linux 
with MySQL) and one for test purposes (Bacula 2.4.4 on Linux with MySQL).
My object is to get a list of storage devices and to know if a storage 
device is an autoloader or not.

to get this info I considered executing the following commands through 
bconsole:
.storage
show storage
status storage
status all

This resulted in:

Bacula 2.4.4 bconsole
.storage : shows used storage devices
show storage : show extensive info on used storage devices
status storage : show all devices
status all : shows all devices

Bacula 2.4.1 bconsole
.storage : shows all storage devices
show storage : shows extensive info on all storage devices
status storage : requires selection of storage device from menu, then 
gives info on that device only
status all: show devices previously used, not all!

Am I right in the following conclusions:
- show storage & .storage are listing the same although one is richer in 
the information supplied
- "all" devices is relative. It also depends on whether devices were 
previously used or not, if they are mounted or not, etc
- bconsole's "status storage" command interface is not consistent over 
versions
- bconsole's "status all" output is not consistent over versions.
  To be more exact and to verify this I guess I should test it on more 
systems. However I do not have these available.
- there does not seem to be a single command that lists all storage 
devices defined in the configuration regardless if they were used in the 
past, are mounted or not, etc

Regardless of these remarks are correct or not, is there a document on 
changes in bconsole? How can/should I handle changes in bconsole? Does 
bconsole in Bacula 3.x behave differently?
Is there an alternative, more robust, way to accomplish what I want?

The goal eventually is to write a script which predicts which volume 
will be next requested by Bacula. Such a predict command would make life 
easier for those starting with Bacula and can also be used as part of 
more complex scripting around Bacula.
The reason I want this list of devices is of the use of device 
specification in Eric Bollengiers query provided in 
http://www.mail-archive.com/[email protected]/msg13961.html
on which I plan to base part of my prediction script on.

Thanking you in advance,
Olaf





------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to