Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Client addition date

Created: 24 Jun 2014 • Updated: 07 Jul 2014 | 9 comments
Sid1987's picture
This issue has been solved. See solution.

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

Operating Systems:

Comments 9 CommentsJump to latest comment

Nicolai's picture

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 ?

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Marianne's picture

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.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
RamNagalla's picture

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

Nicolai's picture

Default value is 6 month.

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

NBU_nbu's picture

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*

NbU

Marianne's picture

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?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Sid1987's picture

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

mph999's picture

Correct, the oldest ctime is simply the oldest backup that exsists, which may or may not be close to when the client was added.

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Marianne's picture

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.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links