2011-2014ForgeRock ASauthrate1OpenDJauthratemeasure bind throughput and response timeauthrateoptionsfilter format stringattributesDescriptionThis utility can be used to measure bind throughput and response time
of a directory service using user-defined bind or search-then-bind
operations.Format strings may be used in the bind DN option as well as the authid
and authzid SASL bind options. A search operation may be used to retrieve the
bind DN by specifying the base DN and a filter. The retrieved entry DN will
be appended as the last argument in the argument list when evaluating format
strings.OptionsThe following options are supported.Alias dereference policy ('never', 'always', 'search', or 'find')Default value: neverBase DN format stringNumber of connectionsDefault value: 1Calculate max response time for a percentile of operationsKeep connections openArgument used to evaluate the Java style format strings in program
parameters (Base DN, Search Filter). The set of all arguments provided
form the the argument list in order. Besides static string arguments, they
can be generated per iteration with the following functions:"inc({filename})"Consecutive, incremental line from file"inc({min},{max})"Consecutive, incremental number"rand({filename})"Random line from file"rand({min},{max})"Random number"randstr({length},charSet)"Random string of specified length and optionally from
characters in the charSet string. A range of character can be specified
with [start-end] charSet notation. If no charSet is specified,
the default charSet of [A-Z][a-z][0-9] will be used.Display results each specified number of secondsDefault value: 5Percent of bind operations with simulated invalid passwordDefault value: 0Max iterations, 0 for unlimitedDefault value: 0Target average throughput to achieveDefault value: 0Search scope ('base', 'one', 'sub', or 'subordinate')Default value: subUse script-friendly modeLDAP Connection OptionsDN to use to bind to the serverDefault value: cn=Directory ManagerUse the authorization identity controlDirectory server hostname or IP addressDefault value: localhost.localdomainBind password file Certificate key store pathNickname of certificate for SSL client authenticationSASL bind optionsDirectory server port numberDefault value: 389Certificate trust store pathUse StartTLS to secure communication with the serverCertificate trust store PINCertificate key store PIN fileCertificate trust store PIN fileUse the password policy request controlPassword to use to bind to the serverCertificate key store PINTrust all server SSL certificatesUse SSL for secure communication with the serverUtility Input/Output OptionsNo properties file will be used to get default command line
argument valuesPath to the file containing default property values used for
command line argumentsUse verbose modeGeneral OptionsDisplay version informationDisplay usage informationExit Codes0The command completed successfully.89An error occurred while parsing the command-line arguments.ExamplesThe following example demonstrates measuring simple bind
performance.
$ authrate -p 1389 -g "rand(names.txt)" \
-D "uid=%s,ou=people,dc=example,dc=com" -w password -c 10 -f-----------------------------------------------------------------
Throughput Response Time
(ops/second) (milliseconds)
recent average recent average 99.9% 99.99% 99.999% err/sec
-----------------------------------------------------------------
9796.9 9816.6 1.029 1.029 12.413 161.451 161.835 0.0
14201.1 12028.1 0.704 0.835 9.508 161.456 167.573 0.0
14450.0 12835.9 0.692 0.782 8.989 161.835 174.518 0.0
12934.3 12860.6 0.773 0.779 9.253 161.339 174.426 0.0
14154.5 13121.0 0.706 0.764 9.025 161.451 177.101 0.0
^CThe names.txt contains all the user IDs for the
sample suffix, and all user password values have been set to
password for this example.