Thanks for your reply, you have been very helpful. The command didn't quite work but I was able to piece it together to get most of the info I require. Still working on the status...
The command doesn't seem to like the aborted constraint, is there a manual or guide which lists and explains all the possible options? I have the CLI guide but it seems very limited?
What I think it's doing is querying all the backups in the last 24hrs and printing the client name, start and end time, size of the backup, name of the savesets and the associated saveset flags. The flags should tell me if the job finished (F), is incomplete (i ) or still in progress (I).
as you haven't clearly stated what you actually require this for, might NW notifications not be something for you? so that you can send out for instance mails for failed backups?
the NMC reports are not enough for you either?
in our case we redirect group output to a separate logfile for each group, which in its name contains status OK or FAIL, also something we can filter on with scripts to see how many backups have succeeded the last couple of days for instance
or nsrwatch of recent nw8.2.3.x which has been greatly revamped (be aware however that nw8.2.3.x in our case has some issues like not following storage node definitions in a normal way if a client has more than one or that clientnames above 46 characters are regarded as invalid clients).
The command is to be scheduled to run daily and the output will be feed into another application to produce usage and trending reports, similar information form other products eg Disk arrays will also be gathered.
I basically need the above info output as a text or csv file on a daily basis, I know the NW reports can be exported but I don't think they can be scheduled, if you are aware of how to do this please let me know, it would be much appreciated.
I thought the sumsize looked neater in the output as it gave the units. However I see your point so I think I will use the totalsize constraint as suggested.
You have to know the differences between totalsize and sumsize. If you have a big saveset that spans in two or more volumes, you will have several savesets with different size. You can check this adding "sumflags" in your mminfo query.
Sumflags could be t, m, or h, means tail, medium, and header.
Now, if you ask for sumsize, you will obtain the list of parts with its own sizes:
saveset (header) -> size of header
saveset (medium) -> size of medium
saveset (tail) -> size of tail
But if you query about totalsize, each saveset shows the size of the whole saveset:
saveset (header) -> size of saveset
saveset (medium) -> size of saveset
saveset (tail) -> size of saveset
It occurs if you add in your query some parameter thas tells mminfo show every part of the saveset, for example, sscreate (each part of the saveset have its own date of creation). If your query not have this kind of parameters, then totalsize is the same than sumsize.
On the other hand, you can use sumsize(20) and mminfo shows size in bytes... now you can be sure that all values are in the same unit.
bingo.1
1 Rookie
•
2430 Posts
1593
1
Posted June 21st, 2016 14:00
What you need is just mminfo. However, there are some limitations:
- The success is indicated by the entriy in the media db itself. However, the save set could be aborted
To avoid this you should query for non-suspect & non-aborted save sets
- There is no 'duration'. However you could query for 'sscreate(20)' & 'sscomp(20)' . These values are in seconds
(UNIX timestamp). In a later step you can just substract the values and calculate the duration.
Powershell is very handy in automating these steps.
The core command should read like
mminfo -q "... ,!suspect,!aborted" -r "...,sscreate(20),sscomp(20)" [-ot] -xc, > outfile.txt