# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8773 | Lester Cheung | "p4util" as an importable Python package. | 11 years ago | |
#1 | 8534 | Lester Cheung |
Great artists steal - so I'm stealing Sven's Python library to make it better! |
11 years ago | |
//guest/sven_erik_knop/P4Pythonlib/scripts/CountUsers.py | |||||
#1 | 8452 | Sven Erik Knop | CountUsers, a simple script that allows me to count all unique users on a range of server...s. Useful if you have an enterprise wide license and want to ensure compliance. Needs a config file with the servers, the user to log on with and a password. Format: # P4PORT, P4USER, P4PASSWD localhost:1666, countUsers, userpass ssl:localhost:20101, countUsers, userpass localhost:1667, countUsers, userpass Usage help: usage: CountUsers.py [-h] [-c CONFIG] [-v] CountUsers optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG Default is countUsers.cfg -v, --verbose Provide output on stdout Copyright (C) 2013 Sven Erik Knop, Perforce Software Ltd With the -v option enabled, prints out the (sorted) list of unique users as well as the total count. « |
11 years ago |