code.matx.ca

P5 Archive Tools for macOS

Native applications for Archiware P5 data management and verification

🗄️

P5 Archive Manager

File verification & archive status

nsdchat CLI
Drag-and-drop interface to verify if files have been archived. Get detailed reports with barcodes, volume IDs, and archive dates.
Learn more →
📊

P5 Archive Overview

Archive jobs & pool monitoring

REST API
Query current and historical archive jobs via REST API. Monitor pool usage and track archive operations over time.
Learn more →
🔍

P5 Archive Search

Index inventory browser & search

REST API
Browse and search P5 archive index inventory. Navigate directories, build a local database, and find archived files quickly.
Learn more →
🗄️

P5 Archive Manager

Uses nsdchat CLI

A native macOS application designed to verify which files have been archived by Archiware P5. Simple drag-and-drop interface to check folders against your P5 Archive with detailed reporting.

The app leverages the Archiware nsdchat command-line interface to query archive status, making it ideal for environments where direct CLI access to the P5 server is available.

Quick Verification

Drag-and-drop to check if files are backed up

📊

Detailed Reports

File size, archive date, barcodes, volume ID

🖥️

Multiple Servers

Configure multiple P5 server connections

📝

Comprehensive Logging

Complete execution logs with timestamps

Key Features

  • Custom archive index support
  • Local and remote P5 servers
  • Real-time log monitoring
  • CSV export functionality
  • Secure keychain credential storage
Latest: v2.8
Requires: macOS 14.6+
API: nsdchat CLI
📊

P5 Archive Overview

Uses REST API

A native macOS application designed to query current and recent archives via the P5 REST API. Monitor archive job status, view pool usage, and maintain historical records of archive operations.

Uses the Archiware P5 REST API endpoint /rest/v1/archive/overview to retrieve archive job data, making it accessible from any machine on the network without requiring CLI installation.

📈

Job Monitoring

View current and completed archive jobs

💾

Pool Usage

Monitor storage pool capacity and usage

🕐

Historical Data

SQLite database for historical tracking

📤

Export Options

JSON and CSV export functionality

Key Features

  • Multiple server support
  • Current and historical job views
  • Pool usage monitoring
  • SQLite history database
  • CSV and JSON exports
Latest: v1.6
Requires: macOS 14.0+
API: REST /archive/overview

P5 Archive Bash Scripts

Collection of bash scripts for P5 Archive automation and management

api-archive-overview

Get the overview of recent archive jobs via the API.

api-archive-pool-usage

Check archive pool usage via the API.

jobs-sql2csv

Show all historical system, backup and archive jobs on a P5 server.

jobs-archive-only-sql2csv

Output an Archive only CSV with: Job #, Date, Size, Name.

vol2tsv-all

TSV inventory for all archive volumes without barcode in the filename.

volt2tsv-archive-barcode

TSV inventory for archive volumes with P5 volume and LTO barcode in filename.

volume-archive-full2readonly

Find archive tapes marked "Full" and change mode to "Readonly".

volume-full-vs-appendable

Find tapes by status: Full/Readonly vs Appendable with used size in TiB.

volume-list

Create a P5 volume list as CSV and save to /private/tmp/.

p5-check

CLI predecessor to P5 Archive Manager - verify folder archive status.

Example Usage

All scripts are tested on macOS in the Bash shell. Output is usually set to /private/tmp. With some slight modification these scripts should run in BSD / Linux systems with bash. They expect the Archiware CLI (nsdchat) to be installed where noted.

# Example: write all archive jobs to CSV in /private/tmp/
./jobs-archive-only-sql2csv.sh 

# Example: create per-volume TSV inventory of full archive tapes with barcode
./vol2tsv-archive-barcode.sh /private/tmp/tsv_output

# Example: find full archive tapes and mark them as read only
./volume-archive-full2readonly.sh