Networker

Re: [Networker] How do I get a list of all clients being backed up?

2005-12-16 15:44:00
Subject: Re: [Networker] How do I get a list of all clients being backed up?
From: David Ranieri <DRanieri AT EVERGREENINVESTMENTS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 16 Dec 2005 15:29:50 -0500
Someone posted this script that I have been using and it works pretty 
well.     I run awk against the output to report just the information Im 
looking for. 

root@sunlegato# more showclientbynode
#!/bin/ksh
# showclientsbynode
SERVER=${1:-$(uname -n)}
echo "
        show name; storage nodes
        print type: NSR client
        " | nsradmin -s $SERVER -i - \
| sed 's/;//' | while read LINE; do
        ATT=$(echo $LINE | cut -d: -f1 | sed 's/^ //')
        VAL=$(echo $LINE | cut -d: -f2 | sed 's/^ //')
        if [ "$ATT" = "name" ]; then
                NAME=$VAL
        elif [ "$ATT" = "storage nodes" ]; then
                SNODE=$(echo $VAL | sed 's/,/ /g')
                echo "$SNODE,$NAME"
        fi
done | sort -u







Thanks   - Dave

David M. Ranieri
Evergreen Investments
200 Berkeley st
Boston, Mass. 02116-5034
Phone 617-210-2337
Fax 617-210-3755


The information contained in this e-mail is confidential, proprietary and 
intended only for the recipient on this message.  If you are not the 
intended recipient you are hereby notified that any disclosure, 
dissemination, distribution or unauthorized use is strictly prohibited and 
subject to prosecution to the fullest extent of the law!  If you are not 
the intended recipient please delete this e-mail and DO NOT ACT UPON, 
FORWARD, COPY OR OTHERWISE DISSEMINATE IT OR ITS CONTENTS.






Dave Martini <martini1 AT MAIL.LLNL DOT GOV> 
Sent by: Legato NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU>
12/16/2005 02:12 PM
Please respond to
Legato NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU>; Please 
respond to
Dave Martini <martini1 AT MAIL.LLNL DOT GOV>


To
NETWORKER AT LISTSERV.TEMPLE DOT EDU
cc

Subject
[Networker] How do I get a list of all clients being backed up?






Is there a command line command I can type to have it list the host 
name of the computer that is currently being backed up?

Thanks.
Dave .

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type 
"signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER


To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER