The following examples provide a guideline for you to follow when you create your own customized queries. Shortened syntax, wherever acceptable, is shown.
To display all the information about all the volumes managed by the server:
mminfo -m |
To display media information from volumes that are labeled mars.001 and mars.002:
mminfo -m mars.001 mars.002 |
To display all save sets found in the file indexes named /usr:
mminfo -N /usr |
To display save sets named /usr, generated by a client named venus, backed up in the past week:
mminfo -N /usr -c venus |
To display save sets named /usr, generated by a client named venus, on a volume that is labeled mars.001:
mminfo -N /usr -c venus mars.001 |
To display a media report of all volumes written on in the past week:
mminfo -m -t `last week' |
To display a media report of all non-full volumes, showing the percent used, pool name, and location of each volume:
mminfo -a -r `volume,%used,pool,location' -q `!full' |
To display a media report similar to the -m report that shows the barcode instead of the volume label:
mminfo -a -r \ `state,barcode,written,%used,read,space,volexp' \ -r`mounts(5),space(2),capacity' |
To display a verbose list of the instances of all save sets with more than one copy, sorted by save time and client name:
mminfo -otc -v -q `copies>1' |
To display all archive save sets with an annotation of "my project" for the past four months:
mminfo -q'annotation=my project' \ -r"volume,client,savetime,sumsize,ssid,name,annotation" \ -t'four months ago' |