Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

82 Posts

2110

November 23rd, 2020 11:00

mminfo savetime parameter

i everyone, i usually use mminfo without savetime parameter and get all de savesets to csv file, then i search  with excel an specific date , but i am trying to split this file by month  iusing  with savetime parameter with this command

 

mminfo -xc; -q "client=server1.fs ,family=tape,savetime<=10/31/2020 23:59:59,savetime>10/01/2020 00:00:00" -r name, group,level,sumflags| findstr cb | findstr full   > D:\RPT\server1fs\server1fs_log_tape_23-11-2020_COMPARE.txt
mminfo -xc; -q "client=server1.fs ,family=disk,savetime<=10/31/2020 23:59:59,savetime>10/01/2020 00:00:00" -r name, group,level,sumflags| findstr cb | findstr full   > D:\RPT\server1fs\server1fslog_disk_23-11-2020_COMPARE.txt

 

I tried several  date format : dd-mm-yyyy,mm-dd-yyyy, dd/mm/yyyy, mm/dd/ yyyy,  dd/mm/yyyy hh:mm:ss, mm/dd/ yyyy   hh:mm:ss and i only get an empty file,

Nw version 19.2

SO: WS 2016

 

Thanks in advance

 

2.4K Posts

December 14th, 2020 02:00

Networker only needs apostrophes if a space character is involved.

Try to bild up the command from a verysimple 'version' and make it more complicated. This will help ...

2.4K Posts

November 23rd, 2020 15:00

I would not use a mix and match of CMD commands within an mminfo command. mminfo has parameters for this purpose as well. However, to find the right ones is a bit tricky. This should work:

mminfo -q "client=server1.fs,family=tape,!recoverable,!ssrecycle,level=full,savetime<=10/31/2020 23:59:59,savetime>10/01/2020 00:00:00" -r "name,group,level,sumflags" -xc; > file

 

You will find all necessary details in the Command Line Reference for mminfo.

1 Rookie

 • 

82 Posts

December 3rd, 2020 10:00

Hi Bingo i still having  some problems: Invalid value for 'savetime'

mminfo -xc; -q "client=srvr.fs,family=disk,!recoverable,!ssrecycle,level=full,savetime<='10/31/2020 23:59:59',savetime>'10/01/2020 00:00:00' -r name, group,level,sumflags > D:\RPT\srvfs\srvfs_log_disk_27-11-2020_COMPARE.txt

 

I was looking the comand guide page 135  but i am kind of confuse (langueaje barrier)

the word recoverable the first definition  for me is  "you can recover that saveset" so the character  "!" is not recoverable (maybe noob question)

 

Thanks in advance.

 

 

 

 

2.4K Posts

December 3rd, 2020 14:00

Be very careful using the 'separators' - you obviously forgot to 'close' the query parameters. The command should read as follows:

mminfo -xc; -q "client=srvr.fs,family=disk,!recoverable,!ssrecycle,level=full,savetime<='10/31/2020 23:59:59',savetime>'10/01/2020 00:00:00'" -r name, group,level,sumflags > D:\RPT\srvfs\srvfs_log_disk_27-11-2020_COMPARE.txt

 

The reason for '!recoverable' simply is that there is no direct attribute named 'browsable'. So you must find another way to express that term.

 

1 Rookie

 • 

82 Posts

December 10th, 2020 06:00

Hi @bingo.1  thanks to check my command, and was my mistake not to do a double check on that. But  i tried again.

Test 1. 
mminfo -xc; -q "client=test,family=disk,!recoverable,!ssrecycle,level=full,savetime<='11/30/2020 23:59:59',savetime>'11/01/2020 00:00:00'" -r name, group,level,sumflags > D:\RPT\test\test_log_disk_10-12-2020_COMPARE.txt

Test 2.(in this one a put all the parameters between single comma)

mminfo -avot -xc; -q "client='paihv03.enami.cl',family='disk',!recoverable,!ssrecycle,level='full',savetime<='11/30/2020 23:59:59',savetime>'11/01/2020 00:00:00'" -r name, group,level,sumflags > D:\RPT\test\test_log_disk_10-12-2020_COMPARE.txt

But for both  the output is:  unknown report constraint: usage: mminfo [-akvV] [-o order] [-s server] [-x exportspec] [report] [query] [volname...] : [ -m | -p | -B | -S | -X | -r reportspec ] : [-c client] [-N name] [-t time] [-q queryspec] Thanks in advance.

No Events found!

Top