Re: [OT] stenc and library...

Bill Arlofski via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
On 5/27/25 2:19 PM, Marco Gaiarin wrote:
> Mandi! Udo Kaune
>    In chel di` si favelave...
> 
>> Not quite clear what you are trying to accomplish. Stenc does load keys
>> to the drive, not to tapes. Please elaborate.
> 
> Sure, but if bacula-sd is ''locking'' the tape device, stenc cannon enroll
> the key.
> 
> My initial goal was to provide a script that verify if the key are correctly
> enrolled on the tape drive; i've tested it on a (non busy) tape drive, but
> found that does not work on a busy tape drive, or on a tape drive in a tape
> library.
> 
> 
> Probably there's no escape: to check if key is correctly enrolled, stenc
> have to access fully the tape device...

Hello Marco,

It might be possible to modify and add such a key feature to my `mtx-changer-python.py` drop-in replacement script:

https://github.com/waa/mtx-changer-python

...which includes the ability to:

- intercept the unload process
- check if the drive wants to be cleaned
- actual
ly load a cleaning tape
- wait
- then unload it
- and then return control to the SD

Maybe during the load function we can add a call to a new function (yet to be written) which could verify that the keys are 
loaded?

Let me know what you think.

Sounds like an interesting project. :)


Best regards,
Bill

-- 
Bill Arlofski
[email protected]

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc (application/pgp-signature, 583 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsCpBAEBCABdBYJoNjp5CZBIDTDab9XDQDUUAAAAAAAcABBzYWx0QG5vdGF0
aW9ucy5vcGVucGdwanMub3JnBrP0JYWgn51wRS23TokbjhYhBMuLnlBaSQiu
SUbb6UgNMNpv1cNAAAAHSwf+JrIlnwMJ5BOsXzP9D8bB6Vx46Qdeiuhagsik
qN6WkieDwvIuy2T5w/m1hA880aaFG4qj7Uk73p2MmczHJJK+yGR0bWIg8O7i
EqKeDwQLvyA8AYA5HA3IAMyV1q7j04IqKypfe1ZU9kuLDLWzstI+DQGIRns3
rqhoLh5h8BPDOFxnyAI69d6AuA2RjMieSlm0D3ifrkg9nMZ4hmpeEUlV0+0A
gWoRiRVORuGHsUlbIJlBK9cuLiQJabZg9YEfun2Ill13Nd+MI4U0l7krZktO
zsB5ANa1KhA5p1uQWqG34N9PdEjHYykk3tmtTb2P5b4+BOwDm4ZuIZAC9ghf
LjgWtA==
=K7a2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.