Re: [Bacula-users] New `mtx-changer-python` Github repository is now public

2023-09-07 Thread Ana Emília M . Arruda
Great job Bill! Thank you!

El jue., 24 ago. 2023 1:33, Bill Arlofski via Bacula-users <
bacula-users@lists.sourceforge.net> escribió:

> Hello everyone,
>
> Several months ago, I asked on this list if anyone who was using Solaris
> with a tape library in Bacula and was interested in
> testing a new mtx-changer script which I was writing as a drop-in
> replacement - with additional features - in Python:
> 8<
> Subject:   [Bacula-users] Anyone using Solaris as a Bacula SD with a
> tape library?
> Link to topic: https://marc.info/?l=bacula-users=168617696107454=2
> 8<
>
> A big thank you to the people who responded - both Solaris users and other
> OS users!
>
> I am happy to report that this new mtx-changer-python.py script is already
> running in a few production environments.
>
> At this point, I feel like I have gotten as far as I can by myself and
> have decided that it would be best to release it to
> the public so that it can have more eyes on it and so that contributions
> can be made to fix bugs, add features, or just help
> make the code more "Pythonic" and just better overall.
>
>
> General Features Summary:
> --
> ---
> - Works with Community and Enterprise Bacula versions
> - Drop-in replacement for the default bash/perl `mtx-changer` script*
> - Easily support multiple tape libraries managed by the same SD*
> - Clear, easy to understand logging (if enabled)
> - Several levels of logging verbosity
> - Multiple libraries may be logged to the same log file with their name in
> each log line, or they may be each logged to their
> own separate log file.
> - Fully supports Linux and FreeBSD
>
>
> New Automatic Tape Drive Cleaning Features:**
> ---
> - If enabled, can check if a tape drive is signalling that it needs to be
> cleaned
> - If enabled, can load and unload a cleaning tape when a drive signals it
> needs to be cleaned
> - Currently, a pseudo-random cleaning tape is selected to be loaded when
> needed***
>
>
> NOTES:
> --
> * Can literally be used out-of-the-box to replace the standard mtx-changer
> script in your Autochangers' "ChangerCommand ="
> set
> ting.
>
> * Comes with a example "INI file" configuration file. There is a global
> [DEFAULT] section, and additional sections may be
> added to override the [DEFAULT] setting and to allow one SD to support
> more than one library using this script.
>
> ** Tape drive cleaning not supported on all OSes yet! This is where some
> (a lot? :) of community assistance will be required
> to add proper support for some of the BSDs, and possibly other Unixes.
>
> *** There are already ideas to keep track of cleaning tapes' usage and
> possibly use a round-robin selection method rather
> than the pseudo-random one as it currently is written. Thank you Arno
> Lehmann for our discussions and your input about this
> feature and the script in general - especially at the beginning stages.
>
>
> Next Steps:
> ---
> - The Github repository is here: https://github.com/waa/mtx-changer-python
> - Feel free to download the script and the example configuration file, or
> just clone the repository
> - Opening issues and/
> or code commits is welcome in the Github repository
>
>
> Thank you in advance for any and all assistance!
>
> Best regards,
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] New `mtx-changer-python` Github repository is now public

2023-08-31 Thread Bill Arlofski via Bacula-users

On 8/31/23 10:40, Radosław Korzeniewski wrote:

Hi,

Great Job!


Hello Radosław,

Thank you!

If you do try this in you environment(s), please let me know what you think. 
Comments and code are welcome! :)



Do you plan to add this script to BC/BEE?

R.


My idea from the start was to have it included at some point after it has been well tested in the Community, and all 
necessary OSes are supported by community feedback. (ie: code)


If/when it does get included, it will probably just be dropped into the /opt/bacula/scripts directory, and our default 
*example* configurations for Autochangers will still point to the bash/perl one.


People would be able to try out this one if they wanted to.

But, because it requires some extra Python modules to be installed (some systems don't even have Python installed by 
default!), it probably won't be able to be the default script we point to in the Autochanger examples.


Possibly, I can imagine a bullet point being added in the SD Autochanger documentation to make people aware of this script, 
its features, and the added dependencies required (Python v3.6+ and some specific modules).


Time will tell. :)


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] New `mtx-changer-python` Github repository is now public

2023-08-31 Thread Radosław Korzeniewski
Hi,

Great Job!

Do you plan to add this script to BC/BEE?

R.

czw., 24 sie 2023 o 01:32 Bill Arlofski via Bacula-users <
bacula-users@lists.sourceforge.net> napisał(a):

> Hello everyone,
>
> Several months ago, I asked on this list if anyone who was using Solaris
> with a tape library in Bacula and was interested in
> testing a new mtx-changer script which I was writing as a drop-in
> replacement - with additional features - in Python:
> 8<
> Subject:   [Bacula-users] Anyone using Solaris as a Bacula SD with a
> tape library?
> Link to topic: https://marc.info/?l=bacula-users=168617696107454=2
> 8<
>
> A big thank you to the people who responded - both Solaris users and other
> OS users!
>
> I am happy to report that this new mtx-changer-python.py script is already
> running in a few production environments.
>
> At this point, I feel like I have gotten as far as I can by myself and
> have decided that it would be best to release it to
> the public so that it can have more eyes on it and so that contributions
> can be made to fix bugs, add features, or just help
> make the code more "Pythonic" and just better overall.
>
>
> General Features Summary:
> --
> ---
> - Works with Community and Enterprise Bacula versions
> - Drop-in replacement for the default bash/perl `mtx-changer` script*
> - Easily support multiple tape libraries managed by the same SD*
> - Clear, easy to understand logging (if enabled)
> - Several levels of logging verbosity
> - Multiple libraries may be logged to the same log file with their name in
> each log line, or they may be each logged to their
> own separate log file.
> - Fully supports Linux and FreeBSD
>
>
> New Automatic Tape Drive Cleaning Features:**
> ---
> - If enabled, can check if a tape drive is signalling that it needs to be
> cleaned
> - If enabled, can load and unload a cleaning tape when a drive signals it
> needs to be cleaned
> - Currently, a pseudo-random cleaning tape is selected to be loaded when
> needed***
>
>
> NOTES:
> --
> * Can literally be used out-of-the-box to replace the standard mtx-changer
> script in your Autochangers' "ChangerCommand ="
> set
> ting.
>
> * Comes with a example "INI file" configuration file. There is a global
> [DEFAULT] section, and additional sections may be
> added to override the [DEFAULT] setting and to allow one SD to support
> more than one library using this script.
>
> ** Tape drive cleaning not supported on all OSes yet! This is where some
> (a lot? :) of community assistance will be required
> to add proper support for some of the BSDs, and possibly other Unixes.
>
> *** There are already ideas to keep track of cleaning tapes' usage and
> possibly use a round-robin selection method rather
> than the pseudo-random one as it currently is written. Thank you Arno
> Lehmann for our discussions and your input about this
> feature and the script in general - especially at the beginning stages.
>
>
> Next Steps:
> ---
> - The Github repository is here: https://github.com/waa/mtx-changer-python
> - Feel free to download the script and the example configuration file, or
> just clone the repository
> - Opening issues and/
> or code commits is welcome in the Github repository
>
>
> Thank you in advance for any and all assistance!
>
> Best regards,
> Bill
>
> --
> Bill Arlofski
> w...@protonmail.com
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
Radosław Korzeniewski
rados...@korzeniewski.net
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] New `mtx-changer-python` Github repository is now public

2023-08-23 Thread Bill Arlofski via Bacula-users

Hello everyone,

Several months ago, I asked on this list if anyone who was using Solaris with a 
tape library in Bacula and was interested in
testing a new mtx-changer script which I was writing as a drop-in replacement - 
with additional features - in Python:
8<
Subject:   [Bacula-users] Anyone using Solaris as a Bacula SD with a tape 
library?
Link to topic: https://marc.info/?l=bacula-users=168617696107454=2
8<

A big thank you to the people who responded - both Solaris users and other OS 
users!

I am happy to report that this new mtx-changer-python.py script is already 
running in a few production environments.

At this point, I feel like I have gotten as far as I can by myself and have 
decided that it would be best to release it to
the public so that it can have more eyes on it and so that contributions can be 
made to fix bugs, add features, or just help
make the code more "Pythonic" and just better overall.


General Features Summary:
--
---
- Works with Community and Enterprise Bacula versions
- Drop-in replacement for the default bash/perl `mtx-changer` script*
- Easily support multiple tape libraries managed by the same SD*
- Clear, easy to understand logging (if enabled)
- Several levels of logging verbosity
- Multiple libraries may be logged to the same log file with their name in each 
log line, or they may be each logged to their
own separate log file.
- Fully supports Linux and FreeBSD


New Automatic Tape Drive Cleaning Features:**
---
- If enabled, can check if a tape drive is signalling that it needs to be 
cleaned
- If enabled, can load and unload a cleaning tape when a drive signals it needs 
to be cleaned
- Currently, a pseudo-random cleaning tape is selected to be loaded when 
needed***


NOTES:
--
* Can literally be used out-of-the-box to replace the standard mtx-changer script in your 
Autochangers' "ChangerCommand ="
set
ting.

* Comes with a example "INI file" configuration file. There is a global 
[DEFAULT] section, and additional sections may be
added to override the [DEFAULT] setting and to allow one SD to support more 
than one library using this script.

** Tape drive cleaning not supported on all OSes yet! This is where some (a 
lot? :) of community assistance will be required
to add proper support for some of the BSDs, and possibly other Unixes.

*** There are already ideas to keep track of cleaning tapes' usage and possibly 
use a round-robin selection method rather
than the pseudo-random one as it currently is written. Thank you Arno Lehmann 
for our discussions and your input about this
feature and the script in general - especially at the beginning stages.


Next Steps:
---
- The Github repository is here: https://github.com/waa/mtx-changer-python
- Feel free to download the script and the example configuration file, or just 
clone the repository
- Opening issues and/
or code commits is welcome in the Github repository


Thank you in advance for any and all assistance!

Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com


signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users