cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup 6.5 question about Linux client/xinetd

drj003
Level 3

Hello,

If Netbackup 6.5 Linux client use the xinetd service to start necessary Netbackup daemons when needed, what is the nbclient in /etc/init.d there for?  Can someone please explain this for me?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

CRZ
Level 6
Employee Accredited Certified

nbclient is used on SAN clients and I believe also for BMR Boot Server.  If your Linux client isn't a SAN client or BBS, the script will do nothing when it is invoked.  All this stuff was moved into the "netbackup" script in 7.x, I believe.

View solution in original post

5 REPLIES 5

mansoor_sheik
Level 6
Certified

hi,

In Linux Xinetd is eXtended InterNET Daemon, which is used to connect the server with network. This service is noway related with netbackup.When Xinetd service is restarted the entire linux box network service is restarted. nbclient is reastarting the netbackup client serices in that Linux box

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Could you please post contents of nbclient in /etc/init.d?

I don't have access to 6.x clients to check.

As far as I'm aware, it is only from 7.x onwards that bpcd and vnetd are started as 'standalone' background processes.  Up to 6.5 these processes are 'listening' as part of inetd/xinetd.

These processes need to be constantly running or LISTENING in order to respond to Server's backup request.

CRZ
Level 6
Employee Accredited Certified

nbclient is used on SAN clients and I believe also for BMR Boot Server.  If your Linux client isn't a SAN client or BBS, the script will do nothing when it is invoked.  All this stuff was moved into the "netbackup" script in 7.x, I believe.

drj003
Level 3

Hi Marianne,

 

 

The contents of nbclient are-

 

nad2pvdb1:/etc/init.d # vi ./nbclient


                ${NBPATH}/nbftclnt
                echo "NetBackup SAN Client Fibre Transport daemon started."
        else
                RETURN=2
                echo "NetBackup SAN Client Fibre Transport daemon not started."
        fi

        #  See if BMR Boot Server has been installed.  If so, start its
        #  daemon.

        if [ -f ${NBPATH}/rc.bmrbd ] ; then
                ${NBPATH}/rc.bmrbd start >/dev/null 2>&1
                if [ $? -ne 0 ] ; then
                        RETURN=2
                        echo "NetBackup Bare Metal Restore Boot Server daemon not started."
                else
                        echo "NetBackup Bare Metal Restore Boot Server daemon started."
                fi
        fi

        #
        # This locking file is used by LINUX init
        #
        if [ -d /var/lock/subsys ] ; then
                touch /var/lock/subsys/nbclient
        fi
        ;;
stop)
        IS_NETBACKUP_DAEMON=YES
        export IS_NETBACKUP_DAEMON

        NBFTCLNT_PID=`${PS} | grep nbftclnt | grep -v grep | awk '{print $1}'`
        if [ "${NBFTCLNT_PID}" != "" ] ; then
                echo "stopping the NetBackup SAN Client Fibre Transport daemon"
                ${NBPATH}/nbftclnt -terminate 2> /dev/null
        fi

        #  See if BMR Boot Server has been installed.  If so, stop its daemon.
        #  bmrbd blocks SIGTERM so use SIGKILL here, if it won't go
        #  down gracefully.

        BMRBS_PID=`${PS} | grep bmrbd | grep -v grep | awk '{print $1}'`
        if [ "${BMRBS_PID}" != "" -a -f ${NBPATH}/rc.bmrbd ] ; then
                echo "stopping the NetBackup Bare Metal Restore Boot Server daemon"
                ${NBPATH}/rc.bmrbd stop >/dev/null 2>&1

                sleep 2
                BMRBS_PID=`${PS} | grep bmrbd | grep -v grep | awk '{print $1}'`
                if [ "${BMRBS_PID}" != "" ] ; then
                        kill -KILL ${BMRBS_PID} >/dev/null 2>&1
                fi
        fi

        #
        # Lock file used by LINUX init
        #
        rm -f /var/lock/subsys/nbclient
        ;;
start_msg)
        echo "Starting the NetBackup client daemons"
        ;;
stop_msg)
        echo "Stopping the NetBackup client daemons"
        ;;
*)
        echo "usage: $0 { start | stop | start_msg | stop_msg }"
        RETURN=1
        ;;
esac
exit ${RETURN}

 

 

Thanks again.

 

 

 

Hi CRZ,

 

That makes sense that it's a seperate standalone service that is used for SAN clients.

 

Thank you.

Andy_Welburn
Level 6

As this script performs no action on any of our Solaris boxes, on many of them I have prevented it from running on boot as quite often it has been found (for us) that it can 'hang' preventing subsequent start-up scripts from runnning.