! stands for NOT (like & for AND). Simple test on Wintel machine:
C:\>mminfo -av -q volrecycle -r volume
mminfo: no matches found for the query
C:\>mminfo -av -q !volrecycle -r volume
hcrvelin.001
hcrvelin.001.RO
C:\>mminfo -av -q volrecycle=false -r volume
hcrvelin.001
hcrvelin.001.RO
C:\>mminfo -av -q "not volrecycle" -r volume
hcrvelin.001
hcrvelin.001.RO
(I was impressed that !volrecycle worked without double quotes - I know I had troubles with that in the past. On UNIX on the other hands single quotes are recommended)
What I think my problem is, and I did not mention this in the original post, is that the pool that I am trying to get recognized is two words. (Axx xxxx)
When I set the pool to this in the master script, DOS doesn't like two word names.
Unfortunately, I believe that in order for this script to work I'll have to change the pool's name to something without any spaces in between. =(
Thanks for all your replies, suggestions, and effort.
dpinink_silva
2 Intern
•
724 Posts
0
April 25th, 2006 12:00
At least in Linux that's the way it works...
dpinink_silva
2 Intern
•
724 Posts
0
April 25th, 2006 13:00
"!volrecycle" ?
At least in Linux that's the way it works...
!volrecycle, volrecycle=false, etc... different ways
to get the same thing.
Oops, I forgot that... I said that because "!volrecycle" did not work here, but I found that it should have a blank space, like "! volrecycle".
ble1
4 Operator
•
14.4K Posts
0
April 25th, 2006 13:00
"!volrecycle" ?
At least in Linux that's the way it works...
!volrecycle, volrecycle=false, etc... different ways to get the same thing.
ble1
4 Operator
•
14.4K Posts
0
April 25th, 2006 13:00
(I was impressed that !volrecycle worked without double quotes
ble1
4 Operator
•
14.4K Posts
0
April 25th, 2006 13:00
Next, under assumtion that you don't manually label the tapes you can get skip written part in query. If yes, change it slightly.
Last thing, add -s switch just to be safe (and if query is not run from backup server then you are missing that).
So, query should be:
%NSR_HOME%\bin\mminfo -av -s %NSR_SERVER% -q "pool=%POOL%,written>0,location=%CHANGER_NAME%,!volrecycle" -r volume,location
gilbertoe
2 Posts
0
April 26th, 2006 08:00
What I think my problem is, and I did not mention this in the original post, is that the pool that I am trying to get recognized is two words. (Axx xxxx)
When I set the pool to this in the master script, DOS doesn't like two word names.
Unfortunately, I believe that in order for this script to work I'll have to change the pool's name to something without any spaces in between. =(
Thanks for all your replies, suggestions, and effort.