Start a Conversation

Unsolved

This post is more than 5 years old

M

1801

August 30th, 2017 03:00

NSR PEER INFORMATION

Buenas,

Estoy teniendo bastantes problemas con los clientes y el servidor de Networker. Tengo muchos errores de "nsr peer information". ¿Habría alguna opción de hacer un delete de forma masiva (script) tanto en cliente como en servidor?

delete type: nsr peer information; name: XXXXXXXXXXX

Los errores que dan son los siguientes:

89879 10/07/2017 05:22:27  5 12 10 6948 5416 0 server1.empresa.com nsrexecd GSS critical An authentication request from client1.empresa.com was denied. The 'NSR peer information' provided did not match the one stored by server1.empresa.com. To accept this request, delete the 'NSR peer information' resource with the following attributes from server1.empresa.com's NSRLA database: name: client1.empresa.com; NW instance ID: 2c41e03b-00000004-2849bb37-5579b19d-00011a00-49007664; peer hostname: client1.empresa.com

La versión de Networker es la 8.1.1.2

Un saludo y muchas gracias,

MHA

14.3K Posts

August 31st, 2017 02:00

In old days I used something like this:

#!/bin/ksh

#

#set -x

clear

OUT=$(/usr/bin/nsr_render_log -S 'today 00:00:00' /nsr/logs/daemon.raw | grep "Conflicting NSR peer information resources detected for host" | cut -d\' -f2 | awk '{print $1}' | sort -u)

echo "Following host(s) have been found to have conflicting NSR peer information:"

echo "==========================================================================="

IFS=" "

BZZ=$(print - "$OUT")

echo $OUT

echo ""

unset IFS

if [ "`echo -n`" = "-n" ]; then

        n=""

        c="\c"

else

        n="-n"

        c=""

fi

echo $n "Do you wish to continue? [y/n]: $c"

read ANSWER

if [ "$ANSWER" = "n" -o "$ANSWER" = "N" ]; then

        echo "Screw you guys... I'm going out!"

        exit 0

elif [ "$ANSWER" = "y" -o "$ANSWER" = "Y" ]; then

        for HOST in $BZZ

        do

                echo "Running printf \"delete type: NSR peer information; name: $HOST\\\n\" | /usr/sbin/nsradmin -p 390113 -i -"

                printf "delete type: NSR peer information; name: $HOST\n" | /usr/sbin/nsradmin -p 390113 -i -

                echo "NSR peer record for $HOST removed"

        done

else

        echo "Wrong answer... Bye bye"

        exit 0

fi

In more modern days, you can use nsradmin -p nsrexec -C -y "NSR peer information"  (but I think that switch is not available in 8.1 release you use).

2 Posts

August 31st, 2017 03:00

Many thanks, I gonna try this script. Many thanks!!

No Events found!

Top