2 Intern

 • 

724 Posts

April 25th, 2006 12:00

Shouldn't it be "not volrecycle" instead of "!volrecycle" ?

At least in Linux that's the way it works...

2 Intern

 • 

724 Posts

April 25th, 2006 13:00

Shouldn't it be "not volrecycle" instead of
"!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".

4 Operator

 • 

14.4K Posts

April 25th, 2006 13:00

Shouldn't it be "not volrecycle" instead of
"!volrecycle" ?

At least in Linux that's the way it works...

!volrecycle, volrecycle=false, etc... different ways to get the same thing.

4 Operator

 • 

14.4K Posts

April 25th, 2006 13:00

! 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 :D - I know I had troubles with that in the past. On UNIX on the other hands single quotes are recommended)

4 Operator

 • 

14.4K Posts

April 25th, 2006 13:00

First, make sure that use running the query (and host if other than backup server) have permission to run the query.

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

2 Posts

April 26th, 2006 08:00

Thank you all for your help.

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.
No Events found!

Top