To generate software usage entries, you must run the swu_rpt command or function with your software applications. You can accomplish this by using any of the following:
You can use the swu_rpt command from the command line. The command line method enables you to start an application program and create a software usage entry. For example, if you want to start the FrameMaker program and create a software usage entry, you can do this at a command line.
You can use the swu_rpt command in a shell script. The shell script method enables you to add the swu_rpt command into an existing shell script. For example, you may have a shell script called "frame" used to start the FrameMaker program. You can create a shell script wrapper by editing the frame script. Within this script, you can add the swu_rpt command before and after the script's program executable. Thus, you wrap the program executable with swu_rpt commands. This creates a Begin and End software usage entry each time the script is run. In addition to the shell script wrapper method, you can modify the shell script executable command line to include the swu_rpt command using the -c option, which will create a Begin and an End entry each time the script is run.
The end record may not be accurate if the command returns after spawning a new process (for example, in the background).
You can embed calls to the swu_rpt() function in an application. The embedded application method enables you to add a call to the software usage library into your application source code. For example, if you or someone else on your computer network has created an application, you can call the software usage library from this application. This causes software usage entries to be created each time the application is run.
To use the embedded application method, you must have access to the application's source code.
How to implement these methods is described in detail in "Generating Software Usage Report Entries".