Forum Discussion

swaqar's avatar
swaqar
Level 2
4 years ago

List of net backup clients with backup set

Anyone knows the command to list netbackup clients with their backup set.

i want to run the command in NBU server to generate list

please post or email me "swaqar@tangerine.ca"

  • Are you looking for something like the script check_coverage? This lists clients and the policies/backup selection that they are protected by.

    • swaqar's avatar
      swaqar
      Level 2

      No the script check coverage. Just a simple NBU command to list all the clients and respective backup set. I used the following commands that did not help

      -bppclients ( this did not give you everything even not  all the hosts)

       

      • X2's avatar
        X2
        Moderator

        I haven't seen/heard about any simple command which does this. But you could cook up an easy enough script. Below is something to get you started (in BASH, as my servers are RHEL, syntax not verified):

        get a list of clients

         

        /usr/openv/netbackup/bin/admincmd/bpplclients -allunique -noheader | sort -k 3.1 | awk '{print $3,$1,$2}' > ${CLIENT_LIST}

         

        use the list of clients and loop over each client to get the policy(ies) that protect them

         

        for client in `cat ${CLIENT_LIST}`
        do
          echo "${CLIENT}"
          /usr/openv/netbackup/bin/admincmd/bppllist -byclient ${client} -U | grep "^Policy Name" | awk '{print $3}'
        done

         

        Good luck!

         

         

  • This command will show you all the backups policies configured for all clients

    bppllist -allpolicies -U

    But if what you are looking for is all he backups that have been completed for each client..

    bpimagelist is the command you need.

    • StefanosM's avatar
      StefanosM
      Level 6

      There are several commands to get client/file list.
      The main problem with policies is that If you use filters, you can not get full client list. (VM, databases etc)

      I vote for bpimagelist

  • I am in favor of bpimagelist as well. But output needs formatting

    Command will list all images (backups) made between the -d and -e and extract some information. See the the "How to interpret .." below.

    bpimagelist [-d mm/dd/yyyy hh:mm:ss] [-e mm/dd/yyyy hh:mm:ss] | grep IMAGE | awk '{ print $2" "$7" "$11" "$19}'

    Also see tech note "How to interpret the different fields in "bpimagelist -l" output?"

    https://www.veritas.com/support/en_US/article.100017904