MMINFO Quick Reference Guide

mminfo is the primary NetWorker command for viewing information contained in the media database. The intent of this article is not to show you all of the command options and parameters that you can use with mminfo. Instead, we will look at ways mminfo can be used in the "real world".

For a complete description of all the mminfo options and parameters, please refer to the mminfo(1M) man page

Display the date that a volume was originally labelled

# mminfo -a -r 'volume,olabel'
volume        orig lbl
smurf.001     12/29/00
smurf.002     12/29/00
smurf.003     12/30/00
schlumpf.001  01/01/01
schmlupf.002  01/15/01
schmulpf.019  01/28/01

Show all volumes that are full

# mminfo -a -r 'volume,%used' -q 'full'
volume        (%)
smurf.002     full
smurf.018     full
schmulpf.003  full
schmulpf.004  full
schlumpf.005  full

Show the size of your savesets

# mminfo -q 'client=alpha99' -r 'name,level,sumsize'
name       lvl    size
D:\        full   500 MB
J:\        full   500 MB
D:\        full   500 MB
J:\        full   291 MB
D:\        full   350 MB
bootstrap  full   132 KB
D:\        full   640 MB
J:\        incr  1167 KB
bootstrap  9      122 KB
D:\        incr    50 MB
D:\        inc   1281 KB

Show all savesets for a client performed on a given date

# mminfo -a -c bravo00 -t '10/29/00'
volume    client   date     size   level name
smurf.002 bravo00  10/29/00 149 KB full  /export/home
smurf.002 bravo00  10/29/00   5 MB full  /var
smurf.003 bravo00  10/29/00  47 MB full  /
smurf.003 bravo00  10/29/00 672 MB full  /usr
smurf.007 bravo00  10/29/00   7 MB full  /opt

Show all saveset id's that are not cloned

# mminfo -r ssid -q 'pool=Default, ! incomplete, copies<2'
31417
31425
31433
31416
31423

NOTE: This command is useful to use in a script to obtain the SSID's that are not cloned. These SSID's can then be passwd to nsrclone to perform the cloning process

Variation To make the output more readable try:

# mminfo -r ssid,client,name,savetime' \
    -q 'pool=Default, ! incomplete, copies<2'
31417  bravo00 /            10/26/00
31425  bravo00 /            10/26/00
31433  alpha99 /export/home 10/26/00
31416  alpha99 /export/home 10/27/00
31423  bravo00 /            10/27/00

Variation: Show all savesets that are not cloned since a given date

# mminfo -r ssid,client,name,savetime' \
    -q 'pool=Default, ! incomplete, copies<2, savetime>10/28/00'

Show all savesets for a client

# mminfo -a -c charlie01
volume       client    date     size   level name
smurf.001    charlie01 10/26/00 118 KB full  /export/home
smurf.001    charlie01 10/26/00   4 MB full  /var
smurf.001    charlie01 10/26/00  47 MB full  /
smurf.003    charlie01 10/26/00 672 MB full  /usr
smurf.003    charlie01 10/26/00   7 MB full  /opt
smurf.003    charlie01 10/26/00  36 KB 9     bootstrap
schlumpf.002 charlie01 10/27/00  44 KB incr  /
schlumpf.002 charlie01 10/27/00  46 KB incr  /export/home
schlumpf.002 charlie01 10/27/00   4 B  incr  /opt
schlumpf.002 charlie01 10/27/00 121 KB incr  /var
schlumpf.002 charlie01 10/27/00 121 KB incr  /usr
schlumpf.004 charlie01 10/28/00  47 KB incr  /export/home
schlumpf.004 charlie01 10/28/00   4 B  incr  /opt
schlumpf.004 charlie01 10/28/00   4 B  incr  /

Show savesets are that recycleable

# mminfo -r 'ssid,client,name,savetime' -q 'ssrecycle'
ssid  client  name date
31427 delta98 /opt 10/26/00
31436 delta98 /var 10/27/00
31418 echo01  /usr 10/26/00
31424 echo01  /usr 10/26/00

Show all suspect savesets

# mminfo -r 'ssid,client,name,savetime' -q 'suspect'
ssid  client  name date
31457 golf99  /opt 10/29/00

Show the number of copies of a saveset (number of clones)

# mminfo -r 'ssid,client,name,savetime,copies'
ssid  client    name         date     copies
31455 charlie01 /            10/29/00 1
31461 delta98   /            10/29/00 1
31453 alpha99   /export/home 10/29/00 1
31460 alpha99   /export/home 10/30/00 1

Variation: Restrict the above command to a given client:

# mminfo -c foxtrot97 -r 'ssid,client,name,savetime,copies'

Display all bootstrap information

# mminfo -B
date     time      level ssid  file record volume
10/26/00 11:37:37  full  31422    6  0     smurf.001
10/26/00 12:04:28  9     31431   15  0     smurf.001
10/26/00 13:51:34  9     31438   21  0     smurf.001
10/26/00 14:08:22  9     31445    8  0     smurf.003

Display all savesets on a given volume

# mminfo -q 'volume=smurf.006' -r 'ssid,name'
ssid  name
31439 /export/home
31446 /export/home
31453 /export/home
31460 /export/homr
31444 /export/home/nsr/index/alpha99
31451 /export/home/nsr/index/alpha99