AMDEVCHECK(8)

🌸 AMDEVCHECK(8) β€” aka amdevcheck πŸ’…

okay bestie, welcome to amdevcheck, the little system administration command that goes "hey, is this Amanda device actually alive and does it have a labeled volume or nah" πŸ”βœ¨


✨ NAME ✨

amdevcheck β€” validate an Amanda device and volume, fr fr πŸŽ€


🌈 SYNOPSIS 🌈

amdevcheck [--label] [-properties list] [-o configoption...] config
           [device-name]

like… that's the whole vibe. copy it exactly, don't get creative πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

So amdevcheck is literally your vibe-check tool for an Amanda device. It checks:

  • is this particular Amanda device actually accessible? πŸ‘€
  • does it have a volume in it or not? πŸŽ€
  • and if it does, is that volume labeled? 🏷️

and here's the tea, bestie: some devices are lowkey bad at telling those cases apart. Like, a missing volume and an unlabeled volume might spit out the exact same error code. Not their fault, it's just how the hardware is. So in those messy cases, this tool reports all possible causes of the error instead of guessing. πŸ™ˆ

Optionally, this tool also lists the properties for the device. cute, right?

If you want the whole Amanda lore, go read the amanda(8) man page. And for the device deep-dive, amanda-devices(7) has you covered. πŸ“š


πŸ’… OPTIONS πŸ’…

  • config β€” the Amanda configuration you wanna use, periodt. Heads up tho: amdevcheck ignores any tape changer configuration. Like it simply does not see it. πŸ™ˆ
  • device β€” the Amanda device to use. This one overrides any tapedev configuration you set in the configuration file. main character energy, it wins. πŸ‘‘
  • --label β€” get the device's label. If you pass this, the usual check output is omitted and instead the label of the loaded volume gets printed to stdout. Returns with error if the label is not found. 😭
  • --properties [list] β€” list device properties. If you pass this, the usual check output is omitted, and property values get printed to stdout, one per line, in the format: a property name, then =, then the property value. Returns with error if properties are not available. 😀
    • If list is given, it's treated as a comma-separated list of properties to display. If it's omitted, then all supported properties are displayed. slay ✨
  • -o configoption β€” see the "CONFIGURATION OVERRIDE" section in amanda(8). iykyk πŸ“–

πŸ”₯ OUTPUT πŸ”₯

okay so the exit code tea β˜•:

amdevcheck exits with code 0 if the device is working, or if it gets an expected error β€” in that case go read the MESSAGE line for the deets. It exits with code 1 if it gets an unexpected error. πŸ’€

amdevcheck returns one or more of the following lines. And listen: if multiple lines show up, then at least one, but not necessarily all of the messages apply. That happens when you're dealing with hardware or operating systems that can't tell the difference β€” like between a malfunctioning drive and a functional-but-unloaded drive. literally the worst 😭

  • SUCCESS β€” a tape is ready. we love to see it πŸŽ‰
  • DEVICE_ERROR β€” a device error has occurred. oop 😬
  • DEVICE_BUSY β€” the device is busy. give it a sec bestie ⏳
  • VOLUME_MISSING β€” no tape is loaded in the drive. empty. void. πŸ•³οΈ
  • VOLUME_UNLABELED β€” the tape in the drive is unlabeled. who is she?? πŸ·οΈβ“
  • VOLUME_ERROR β€” a volume error has occurred. πŸ™ƒ
  • MESSAGE text β€” where text provides a human-readable description of the problem. the translator of chaos 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

amanda(8), amanda-devices(7)

The Amanda Wiki: : http://wiki.zmanda.com/ 🌐


🌸 AUTHOR 🌸

Ian Turner <ian@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) πŸ’œ


and that's the whole page bestie, courtesy of Amanda 3.5.4 dated 08/26/2026 β€” AMDEVCHECK(8), out. πŸ’…βœ¨πŸŽ€ stay labeled, stay accessible πŸ¦‹

πŸ“¦ where this page comes from