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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Legato Networker 1

Status
Not open for further replies.

Know1edge

Programmer
Sep 13, 2005
6
US
Is there any way to get the status of backups (ie. Failures, misses, completions) via the command line?

I've read somewhere that you can do it with nsradmin...but im not sure how to get it to work and/or output it to a file... the reason

I'm doing this is to parse the file and insert it into a database for retention and reporting. Any help would be great.

Thanks,

William
 
I think what I need is NSRADMIN
show completions
print type: NSR groups; name: group_name

but im not sure...any help would be great....
could I parse the actual log files in nsr/logs?
 
How about this, first enter the nsradmin prompt, then type
"option hidden" to display hidden attributes, completion being one of those. After that, type "show name;completion" to show only the name of the group and its completion. Then type "print type: NSR group" to list all groups.

Parsing the loggfiles automaticly for this is possible. You could search the daemon.log for "savegroup info: starting group_name" for the start of the group, and then "savegroup notice: group_name completed" to see when the group ended and if any clients failed. Same info is in the /logs/savegrp.log and also /logs/messages, so take a look in those for some more info. Hope it helps!

Cheers!
Maverick
 
Is there an option (ie nsradmin > c:/output.txt ) to output these results to a file?

Or is this stored in a log?

Thanks for your initial response!
-wg
 
nsradmin - i c:/input.txt > output.txt

contents of input.txt:

show option hidden
show name;completion
print type: NSR group


This works great... but damn that datadump is ugly ;)

Is there a nsradmin command to show like...
Savegroup - Result? or
Client - Result ?
 
To my knowledge, you are not able to reformat the output of nsradmin. I agree that the ouput doesn´t exaclty please the eye. You´ll need to script/program it as far as i know.

I´m currently working on a command line application that can list various info about the resources (i.e groups, clients, pools etc), and i´m trying to get the group status included. I´ll try and post it once it´s completed.

Cheers!
Maverick
 
Thanks Mav, I'm getting some headway on this.. ive decided to scrap the whole nsradmin and start to parse the actual savegrp.log file for the current day... I've actually got that working really nicely... just have to setup my arrays to include failures in the save groups to show the exception messages...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top