Forum Discussion

Sid1987's avatar
Sid1987
Level 6
11 years ago
Solved

Client addition date

Hi Techiz,

  Is there any command which tells me on what date a particular client was added in Netbackup environment. Or when was the first successful backup of the client happened. So I can trace when was a client added in netbackup environment. 

 

Thanks

Sid

  • Look in netback/db/images folder on the master to see when the client folder was created.
    Another clue may be the 1st 10-digit number folder in the client directory.

    Use 'bpdbm -ctime <10-digit-number>' to translate to normal date/time.

9 Replies

  • There is no such command becuase that information is not saved within Netbackup.

    You have to look for indirect data, like first backup if you have long retention, daily backup status, or NBAC audit logs.

    How long time do you need to look back, days, weeks or months ?

  • Look in netback/db/images folder on the master to see when the client folder was created.
    Another clue may be the 1st 10-digit number folder in the client directory.

    Use 'bpdbm -ctime <10-digit-number>' to translate to normal date/time.

  • if you have nbauditreport enabled you can get it from the audit report... but not sure howmany days this report will be avaliable..

    /usr/openv/netbackup/bin/admincmd/nbauditreport

    it will be something like

    06/18/2014 04:36:32      Username    Client 'XXXXXXXXXX' was added to Policy 'YYYYYYYYYYY'

     

    More info about the audit report

    http://www.symantec.com/docs/HOWTO91455

  • Hi Sid,

     

    It will give you some way to find out Approximate data and time of the client added.

    I believe in set effective date when creating new policy, so it could be a chance to track when policy got updated and what. however below is the way to track it.

    See the example below , I have added a client into test policy.  Netbackup DB stating me test policy was edited and specially Clients tab.

    This will give you an idea.

    /usr/openv/netbackup/db/class/test

    # ls -l test

    total 48

    -rw-------   1 root     root         159 Jun 25 22:36 clients

    -rw-------   1 root     root          44 Apr 18  2013 includes

    -rw-------   1 root     root         923 Jun 25 22:36 info

    drwxr-xr-x   3 root     root          96 Jul 15  2013 schedule

    # date

    Wed Jun 25 22:37:53 PDT 2014

    # cd test

    # more clients

    123 linux redhat 1031485765 0 0 0 *NULL*

     

  • I believe that all of us have given enough info at least get a good idea of when a client was added.

    Maybe Sid can let us know if he came right?

  • Hi Techiz, Marriane's response on calculating the desired date by converting the ctime as nbaudit report needs to pre configured to get the data. The only problem is the folder in images directory means the oldest one doesn't assure that was the date when that client was added, and I guess it depends on your retention, correct me if I am wrong. So no assured way as there is no direct command and nbaudit report needs to be pre configured. Thanks Siddhartha Bose
  • Correct, the oldest ctime is simply the oldest backup that exsists, which may or may not be close to when the client was added.

     

  • If you need an exact date and time - there are no 'standard' reports or commands in NBU. The oldest ctime folder in the client directory is created when the first backup for this client is done. From what I have seen, these folders never get deleted, even if all backups have expired. I have seen empty folders at customer sites where older backups have expired.