mminfo2html

I’ve started working on a new eBook, Turbocharged EMC NetWorker, aimed squarely at NetWorker administrators who want to get more out of the product from the command line. It’s not designed to be a replacement to the NetWorker Command Line Reference Guide (or the man pages), but instead highlight various techniques I’ve learnt and used over the years to get more out of NetWorker.

One of the examples is to take the XML output from mminfo and render it in a more viewable format, and I whipped it up this morning.

A Perl script, I call it ‘mminfo2html.pl’, and it’s designed to be inserted into the mminfo output stream – i.e., pipe the XML output from mminfo into mminfo2html.pl, and write the resulting output out to a new file. Following is sample invocation:

mminfo2html

The utility comes with a very basic CSS layout for simplified tables, but you can replace the CSS with any design you’d like. The HTML output from the command above, for instance, is:

mminfo2html-output

Obviously in order to run mminfo2html.pl, you’ll need an accessible Perl interpreter – on Linux/Unix/Mac OS X systems you should be set; on Windows, I’d recommend installing ActiveState Perl.

You can download the zipped script here.

 

3 thoughts on “mminfo2html”

  1. Hi Preston,

    a great script! Thank’s!!!
    Unfortunately the mminfo order option gets lost during the html conversion. The entries are ordered in the xml file.

    Regards,
    Hans-Christian

    1. A silly mistake on my part. If you download the zip file again, it’ll contain an updated script which corrects the sorting error.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.