Forum Discussion

shahzeb1's avatar
shahzeb1
Level 3
6 years ago

Script for checking policy

Hi All, I am looking for a script to get netbackup policy name/s for a set of clients. Regards
  • Marianne's avatar
    Marianne
    6 years ago
    Please have a look at bpimagelist.
    Try both these commands for 1 client to see what the output looks like:
    bpimagelist -client (name) -d (start-date) -L
    bpimagelist -client (name) -d (start-date) -l

    Lowercase output will give info in one line that is easier to parse with awk and grep, but dates are given as Unixtime.
    -L will give formatted output. Maybe easier to parse with egrep and awk.

    I am not aware of any command or script that will only give 'last backup'.
    You will need to add your own 'tweaks' depending on the output that you see in some test commands against a couple of client names.