Perforce Public Knowledge Base - How can one tell when a user last accessed Perforce?
× PRODUCTS SOLUTIONS CUSTOMERS LEARN SUPPORT
Downloads Company Partners Careers Contact Free Trials
Menu Search
Perforce
Reset Search
 

 

Article

How can one tell when a user last accessed Perforce?

« Go Back

Information

 
Problem
How can I get information on the recent activity on a Perforce user account?
Solution
The server log records the username and date for login and other Perforce server commands. Since Perforce does not log all user commands by default, you may want to change how the server logs commands. Refer to the knowledge base article "Perforce Server Trace Flags" for more information.

Example:

The p4 changes command can be used with a date revision specifier to find all of the changes submitted by a user. Thus, to find about changes submitted by user bruno since 10 July 2012, enter the command:
p4 changes -u bruno "//...@>=2012/07/10"

Use the -s option to further filter changes which are submitted, pending or shelved. To find the current shelved changes for the same user and time period:

 

p4 changes -s shelved -u bruno "//...@>=2012/07/10"

 

Use the -m option to further limit the number of results returned. If you only wanted to see the latest change from user bruno:

 

p4 changes -u bruno -m1 "//...@>=2012/07/10"

 

To find the last access date of a workspace belonging to the bruno user, you can examine the "Access" field in their workspace specification. As a shortcut you can use the following commands:

Linux

p4 client -o bruno_workspace | grep "^Access:"

Windows

p4 client -o bruno_workspace | findstr /b "Access:"

To find the files synchronized and opened by user bruno, use the p4 have and p4 opened commands:

p4 -c bruno_workspace -H bruno_hostname have
p4 opened -u bruno
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255