Support:
Customer area
Evaluation request form
Evaluators start here
General request/feedback
NTR Meeting webinar request
GSA schedule
Newsletter archive
Cradle XML documentation
Cradle Security Certificate
Reference
login Register forgot password or username?
Search:         
Cradle from 3SL, the complete Model Based Systems Engineering Toolsuite, specialising in requirements management, requirements capture, model based systems engineering and for systems engineering software, support and consultancy, the logical choice: Cradle from 3SL.
General request/feedback
NTR Meeting webinar request
GSA schedule
Newsletter archive
Cradle XML documentation
Cradle Security Certificate
Reference

February 2010 [Cradle 6.1]

Cradle Licence Usage

The Cradle Database Server (CDS) is the Cradle component through which all users access their Cradle databases. The CDS also maintains several log files in the logs/system directory on the machine where it runs. These log files are:

  • cds_access.log, records all attempts to connect to the CDS, whether a connection was allowed, and if a connection attempt was refused, why it was refused
  • licences.log, records all requests for licences (and whether each request was granted or denied) and all releases of licences
  • logins.log. records all logins and logouts to and from the CDS
  • max_licences.log, records the maximum number of each type of Cradle licence that have ever been in use; these maxima will not have occurred at the same time
  • security.log, records security violations, attempts to connect to the CDS that are not from a Cradle client of the same Cradle version as the CDS, which also includes any piece of software attempting to hack Cradle
  • The logins.log file contains one record for each login to Cradle and each logout. Each record has a date and time stamp. The file will contain many records for each day that the CDS is being used. The licences.log file contains one record for each grant, denial and release of a licence. Each record has a date and time stamp. The file will contain many records for each day that the CDS is being used.

c_usage Utility

3SL provides a utility called c_usage in all Cradle systems (Windows, UNIX and Linux) that can analyse the logins.log and licences.log files and produce CSV output that can be copied and pasted into an Excel file that is supplied with Cradle to produce graphs of the use of Cradle and the use of the licences in your Cradle system.

This utility can only be run on the computer which runs the CDS.

The format of the utility is:

c_ usage.exe [ -from yyyymmdd ] [ -to yyyymmdd ]
[ -period < day | week | month > ]
-file filename

So, for example:

c_usage.exe –period week –file results.csv

runs c_usage to analyse all entries in the licences.log and logins.log files and to produce a set of weekly statistics as CSV data in the output file results.csv.

Alternatively:

c_-usage.exe –from 20080101 –to 20083112 –period month –file results.csv

runs the utility to analyse all entries in the licences.log and logins.log files from 1 st January 2008 through 21 st December 2008 inclusive and to produce a set of monthly CSV statistics in the output file results.csv.

Essentially, the c_usage utility aggregates all of the logins and logouts and the licence usage data over days, weeks or months as specified by the –period option. It considers:

  • The number of logins
  • The number of distinct Windows/UNIX/Linux users who have logged-in
  • The number of distinct host computers from where Cradle logins have occurred (based on the IP addresses from which Cradle clients have connected to the CDS)
  • The maximum number of concurrent Read-Write (RW), Read-Only (RO) and API connections
  • The number of licences of any type that have been granted
  • The maximum number of concurrent licences of each type that have been used
  • The number of times that each type of licence has been granted
  • The number of times that any type of licence has been denied because there are insufficient licences available
  • The number of times that a request for each type of licence has been denied because there are insufficient licences available

One CSV record is generated in the output file for each reporting period (day, week or month). Each CSV record contains values for the quantities listed above.

Spreadsheet

3SL provides a spreadsheet called c_usage.xls in the Cradle distribution as the file:

%CRADLEHOME%\admin\c_usage.xls
$CRADLEHOME/admin/c_usage.xls

in Windows and UNIX/Linux systems respectively. This spreadsheet contains several worksheets. The first worksheet is where the CSV output from the c_usage utility should be pasted. Initially, this spreadsheet looks like this:

When the CSV data from c_usage is pasted into this spreadsheet, then the graphs in the other worksheets will display the corresponding information.

The CSV data must be pasted between the two pale blue blocks of rows. That is, the CSV data must be pasted between rows 12 and 15. You must create enough blank rows to hold all of the data that you want to paste. Do not overwrite any of the rows with a pale blue background or you will prevent the graphs working correctly.

Example

This section will illustrate the c_usage utility with data from one of 3SL’s internal servers.

The steps are as follows:

1. Open a shell window and run c_usage to produce the CSV data. In this example, we illustrate collecting data from 2 nd November 2009 through 18 th December 2009 with the data collated daily:
D:\>"\program files\cradle\bin\exe\win32pc\c_usage.exe" -from 20091102
-to 20091218 -period day -file d:\daily.csv

2. Double-click this file to open it in Excel:

3. Scroll down and note that there are 47 rows of data to be displayed:

4. Open the c_usage.xls spreadsheet in Excel:

5. Insert new rows between rows 12 and 15 so that there are enough rows to hold all of the data from the CSV file. It is probably easier to add many extra rows, paste the data and then remove the excess rows later:

6. Copy and paste all of the CSV data from its worksheet into the c_usage.xls spreadsheet, starting at row 13. Note that there are 36 columns (A to AJ) and also note that you do not need to copy the column headings from row 1:

7. Then delete all of the excess rows from the bottom of the worksheet:

8. You can now select each of the other worksheets in turn to see the graphs. The first worksheet shows the number of logins to Cradle in each reporting period (days in this example):

9. The next worksheet provides an analysis of the Cradle logins in each reporting period, by dividing the total number of logins into separate groups, colour coded using a key at the bottom of the graph:

  • The number of distinct Cradle logins, the combination of Cradle username and Cradle project code
  • The number of distinct host users, based on their Windows, UNIX or Linux username
  • The maximum number of concurrent RW connection licences used
  • The maximum number of concurrent RO connection licences used

10. The next worksheet shows the number of module licence requests in each reporting period. Module licence requests occur when users want to use specific Cradle tools, for example to publish a document using the Document Publisher tool or to generate a metric using the Metrics tool:

11. The next worksheet shows the number of times that each type of licence has been granted in each reporting period. In this example, the Cradle system is used to track the progression of changes in the Cradle software development and test process and so only REQ and MET licences are being used:

12. The next worksheet shows the maximum number of concurrent licences of each type that have been used in each reporting period:

13. The next two worksheets show the denials of licences. This situation occurs whenever either:

  • A user tries to login to Cradle and fails as there are no more connection licences available of the desired type (RW or RO)
  • A user tries to start a particular Cradle tool (such as to edit a diagram, run a metric or publish a document) and there are no module licences available of the corresponding type

The first of the two worksheets shows the maximum number of licence denials of all types in each reporting period and the second worksheet shows the number of licence denials for each type of licence. As this example has been created from a 3SL system, it will not be surprising that we do not have any licence denials!

Naturally, 3SL is quite interested to know if you have instances where licence requests have been denied, as this indicates situations where you may need to purchase more licences from us!

14. If you want to save this set of licence analysis results, then select File → Save As in Excel to save the c_usage.xls file that you have created somewhere and possibly change its name at the same time.

In this issue
  1. 3SL Newsletters
  2. Newsletter Contents
  3. 3SL Website
  4. Need Help?
  5. 3SL Available to AMCOM
  6. 3SL on Twitter
  7. 3SL Blog
  8. New Webinar Facility
  9. New 3SL Contact Us Live
  10. Cradle Licence Certificates
  11. REconf 2010
  12. Cradle Roadmap
  13. Password Changes
  14. Named User Licences
  15. Linking Cradle to JIRA
  16. New LDAP Configuration Guide
  17. Cradle Licence Usage
  18. Non Functional Requirements
  19. Non Functional Requirement Graphs
  20. Models and Domains
  21. Model Operation Scopes
  22. Model Hierarchies
  23. Dual Screen Support
  24. Word 2007 Bug
  25. Citrix and Office 2007 Problems
  26. Old Versions of Cradle

Back to the newsletter archive.