Networker

Re: [Networker] Deleting client entries under /nsr/index

2004-05-04 13:11:05
Subject: Re: [Networker] Deleting client entries under /nsr/index
From: "David E. Nelson" <david.nelson AT NI DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 4 May 2004 11:49:28 -0500
Hi Dave,

I did the following:

#!/bin/sh

#
# Print every client name known to NetWorker
#
# Notes: It's important that there's a <CR> after 'show name'
for x in `echo "show name
print type: nsr client" | nsradmin -i - | sed -e 's/^  *//' -e '/^$/d' -e \
's/name: //' -e 's/;//' | sort -u` ; do
    echo $x
done > /tmp/cliets.dat

#
# Compare the names in /nsr/index to the names in /tmp/clients.dat
#
cd /nsr/index
for x in * ; do
    grep $x /tmp/cliets.dat > /dev/null
    [ $? -ne 0 ] && echo $x
done

### snip ####

Regards,
        /\/elson

On Tue, 4 May 2004, Dave Mussulman wrote:

> On Tue, May 04, 2004 at 11:12:24AM -0500, Tim Mooney wrote:
> > In regard to: [Networker] Deleting client entries under /nsr/index, 
> > David...:
> >
> > >So far, I've been unable to clean out these dirs using conventional 'nsr*'
> > >commands such as 'nsrim' and 'nsrck' as they complain that the client is 
> > >not
> > >registered.  Rather than re-adding them back into DNS and NetWorker, is it 
> > >ok
> > >to stop NW, delete the respective /nsr/index/<client> entries w/o any ill
> > >effects?
> >
> > That's what I've always done, for clients that we've deleted.
>
> Does anyone have a script handy that checks for rogue index entries
> (checks the contents of the index directory against the networker client
> list?)  If so, I'd be interested in seeing that.
>
> Dave
>
> --
> Note: To sign off this list, send a "signoff networker" command via email
> to listserv AT listmail.temple DOT edu or visit the list's Web site at
> http://listmail.temple.edu/archives/networker.html where you can
> also view and post messages to the list.
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
>

--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=