which user initiate backup process

Golem's picture

Hi  All, 

Is there utility to find which user (username, not client) initiate the certain process to backup data. Anything from standart NBU instruments?

( I can do that only by parsing log files . This method is not very comfortable for me)

Any suggestion..

Gigabyte's picture

Owner ???

Hey i am not sure whether my answer is correct ...

Open that particular job on the activity monitor , then you can see one field called OWNER , it will show some user name who is running that job.

Golem's picture

Yes, owner ...

Thanks,  Gigabyte for reply!

But  are these data(archive's owner) kept in NBU catalog?  Activity Monitor's data are not stored endlessy (is it truth?)

I'll try to explain my needing...
I have some client machines. Some users from each client backup their data.
Some time later...The user request admin to expire some unwanted archives.

How can admin check that the user request to expire the OWN archive?
Are these data(archives owner) kept in NBU catalog?
I need to find connection between 'backup_id' and 'owner' of archive.

(Sorry,
may be i am wrong thinking in techology NBU. But i try to find suitable instrument for my purposes.)

Nicolai's picture

Can be done (I think)

But it is not straight forward. Let assume a user has requested you to expire a backup. You have found the backup id to be "congo_1246864162". You can the issue the command bpflist to find the user who did the backup/archive

Usage : bpflist -l -client {hostname} -ut {epoch time} -option GET_ALL_FILES -rl 999

{hostname} = Replace with you’re own Netbackup client name
{Epoch time} = UNIX time when the backup stared (number portion of image name)

# bpflist -L -client congo -ut 1246864162 -option GET_ALL_FILES -rl 999 | more

and that will return a list like this

Client: congo
Peername: -
Policy: CLIENT_INITIATED
Backup ID: congo_1246864162
Backed up: Mon Jul 6 09:09:22 2009 (1246864162)
Software Version: ?
Policy Type: Standard (0)
Schedule Type: UBAK (2)
Version: 8
Num Files: 50
User Name: unknown
Group Name: unknown
Raw Partition: 0
JobID: 0
Keyword: ?
Files:
FN=3 L=0 PL=18 DL=52 BK=5 II=1 RS=0 GB=0 DN=64768 P=/home/nma/.viminfo D=33152 nma users 741 1230631420 1230631420 1246639838
FN=4 L=0 PL=24 DL=53 BK=8 II=1 RS=0 GB=0 DN=64768 P=/home/nma/ESX_install.sh D=33188 root root 6569 1216124186 1216124186 1246639838

The FN line will contain the permission of the file, in this example "viminfo" owned by nma and group users, but the next example "ESX_install.sh"  is owned by "root" and group "root" (but with read permission to user "nma").

Hope this help answer you're question.