Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading group status from command line

Status
Not open for further replies.

garion42

IS-IT--Management
Jun 15, 2005
29
0
0
DE
Hi all!

I have been playing with mminfo lately and wanted to find a way to report on the status of the backup groups from the command line. So far, I have found no way to do this as mminfo reports only media info. I look for a different command, but did not find anything.

Is there anyway to report on the status of backupgroups from the command line? The best way would be something that I could run from a script.

I would be grateful for any help.

Regards,

garion42
 
Hello,

mminfo accesses the media database : savesets and volume.

But information about group is stored elsewhere, you can get it either with the NMC either with the nsradmin command, or try to see into the daemon.log or into the 'savegroup completion' file described in your savegroup notification resource.

Denis
 
NMC and nsradmin are good way to monitor group status.
I also use nsrwatch to monitor write speed.
 
Thanks! It's always a good day when you learn something.
 
Hi there,

some hints how to use nsradmin for backup status:

nsradmin -i query.txt -s networkerserver > log.txt

Replace "networkerserver" with your NetWorker hostname.

query.txt should look something like (empty lines needed!):

8<---------------------


option hidden: on

show completion; status; work list;

print type: nsr group; name: networkergroup

8<----------------------

Replace "networkergroup" with the group to monitor.

After that you can parse log.txt for errors, status etc.

Regards,
Heiko
 
Servus Heiko!

Thanks a bunch for that tip! I'm slowly getting the hang of things.


Regards,

garion42
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top