nsrsgrpcomp stands for NSR SaveGRouP COMPletion I assume. It is something I found while testing NetWorker 8 some 6 months ago and I was very pleased with it.  In short, it give you quick overview of groups and their respective status.  This makes is ideal for early morning reports to you email or mobile phone.  Such messages may tell ypu if you have enough time for morning tea or not.

 

While I was already using my custom solution for that purpose, nsrsgrpcomp caught my attention as I could run this command against NetWorker 7 server and get response in a very quick fashion.  Much faster than my own solution was doing.  I assume some code inside simply communicated better with job daemon.  By running this query from Netherlands against Swedish server which was running NetWorker 7.6.5.x, I could obtain report for all groups (some 300) in 1.2 seconds.  Impressive enough. With that said, I only used -L option which stands for (taken from manual):

 

List the savegroup job records  currently  present  in  the  jobs database.  This is useful if one desires to query savegrp

completion for a previous run of savegrp (see -t option).   By  default nsrsgrpcomp queries the latest run.

 

As I'm not interested in successful runs, I just thought of grepping failed and that's it.  Well, EMC engineering did it again and as those who scripted NSR commands know from job* related commands, there is a way where you can send output to console and you can grep as much as you want, but it won't work.  Worry not, there is simple solution to that. Simply run:

 

nsrsgrpcomp -s <SERVER NAME> -L 2>&1 >/dev/null | egrep 'failed|running'

 

Above command will show all that has failed and it is still running. As I said, for scripted quick reports, this commands comes very handy and it is real small jewel among broad portfolio of NSR commands.