Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 922539

Summary: [RFE] ldclt: add timestamp, interval, nozeropad, other improvements
Product: Red Hat Enterprise Linux 7 Reporter: Nathan Kinder <nkinder>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: jgalipea, mkubik, nhosoi
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.1.2-1.el7 Doc Type: Enhancement
Doc Text:
Feature: Added the following options for ldclt: -e timestamp[=strftime format] - add timestamp "|" to the beginning of every ldclt status update line - default is %s which is time_t format -e sampinterval=SECS - print the status update line every SECS seconds - default is 10 seconds -e incr=value increment the RDN value by value instead of the default 1 -e nozeropad ldclt will usually generate random numbers used in RDNs and values padded with 0 e.g. uid=XXXXX is uid=00001 - with the -e nozeropad option, this will turn uid=X or XX or .. into uid=1 - no zero padding in addition, when ldclt hits the randomHigh value in incremental mode, it will loop back around to the randomLow value rather than just exiting. Reason: Makes ldclt give more and better results for doing performance testing. Result (if any):
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:06:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nathan Kinder 2013-03-17 19:08:28 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/613

Need to timestamp the ldclt output
Need to be able to control the output interval
Need to be able to generate values that are not zero padded
Need to be able to specify the increment used to generate new values
Need to have the increment wrap around

Comment 1 Rich Megginson 2013-10-01 23:26:33 UTC
moving all ON_QA bugs to MODIFIED in order to add them to the errata (can't add bugs in the ON_QA state to an errata).  When the errata is created, the bugs should be automatically moved back to ON_QA.

Comment 3 Milan KubĂ­k 2014-02-14 16:57:23 UTC
bindonly (timestamp, sampinterval)

ldclt -b "dc=example,dc=com" -h localhost -p 389 -D "cn=directory manager" -w Secret123 -T 100 -e bindonly -e bindeach -e sampinterval=5 -e timestamp="%m/%d/%Y %H:%M:%S" -W 1 -v
ldclt version 4.23
...
Sampling interval  = 5 sec
ldclt[12236]: Starting at Fri Feb 14 14:01:53 2014

02/14/2014 14:01:58|ldclt[12236]: Average rate:    4.00/thr  (   8.00/sec), total:     40
02/14/2014 14:02:03|ldclt[12236]: Average rate:    5.00/thr  (  10.00/sec), total:     50
02/14/2014 14:02:08|ldclt[12236]: Average rate:    5.00/thr  (  10.00/sec), total:     50
02/14/2014 14:02:13|ldclt[12236]: Average rate:    5.00/thr  (  10.00/sec), total:     50
02/14/2014 14:02:18|ldclt[12236]: Average rate:    5.00/thr  (  10.00/sec), total:     50
02/14/2014 14:02:23|ldclt[12236]: Average rate:    5.00/thr  (  10.00/sec), total:     50

adding users (incr, nozeropad)

ldclt -b "dc=example,dc=com" -h localhost -p 389 -D "cn=directory manager" -w Secret123 -e add,person,noloop -f cn=ldclt_test_XXXX -e incr=2 -r 1 -R 50 -n1 -W 1 -v
ldapsearch -xLLL -z 10 -b "dc=example,dc=com" cn=ldclt* dn
dn: cn=ldclt_test_0002,dc=example,dc=com
dn: cn=ldclt_test_0004,dc=example,dc=com
dn: cn=ldclt_test_0006,dc=example,dc=com
dn: cn=ldclt_test_0008,dc=example,dc=com
dn: cn=ldclt_test_0010,dc=example,dc=com
dn: cn=ldclt_test_0012,dc=example,dc=com
dn: cn=ldclt_test_0014,dc=example,dc=com
dn: cn=ldclt_test_0016,dc=example,dc=com
dn: cn=ldclt_test_0018,dc=example,dc=com
dn: cn=ldclt_test_0020,dc=example,dc=com

ldclt -b "dc=example,dc=com" -h localhost -p 389 -D "cn=directory manager" -w Secret123 -e add,person,noloop -f cn=ldclt_test_XXXX -e incr=2,nozeropad -r 1 -R 50 -n1 -W 1 -v
ldapsearch -xLLL -z 10 -b "dc=example,dc=com" cn=ldclt* dn
dn: cn=ldclt_test_2,dc=example,dc=com
dn: cn=ldclt_test_4,dc=example,dc=com
dn: cn=ldclt_test_6,dc=example,dc=com
dn: cn=ldclt_test_8,dc=example,dc=com
dn: cn=ldclt_test_10,dc=example,dc=com
dn: cn=ldclt_test_12,dc=example,dc=com
dn: cn=ldclt_test_14,dc=example,dc=com
dn: cn=ldclt_test_16,dc=example,dc=com
dn: cn=ldclt_test_18,dc=example,dc=com
dn: cn=ldclt_test_20,dc=example,dc=com

Verified with 389-ds-base-1.3.1.6-18.el7.

Comment 4 Ludek Smid 2014-06-13 12:06:07 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.