The following example shows the software usage monitoring commands added to a shell script called dir_script that lists the directory in which it was called, the files in the directory, and the current date and time.
swu_rpt -p dir_script -I 295833 -s sherlock -a \ "Command1=pwd,Command2=ls,Options=-la,Command3=date" -b pwd ls -la date swu_rpt -p dir_script -I 295833 -s sherlock -a \ "Command1=pwd,Command2=ls,Command3=date" -e |
In this example, two software usage report entries are created and look like the following.
|
Report Entry 1 |
|
Report Entry 2 |
|
|---|---|---|---|
|
Type |
Admin/Usage |
Type |
Admin/Usage |
|
Product |
dir_script |
Product |
dir_script |
|
SubType |
begin |
SubType |
end |
|
Time |
8444845890 |
Time |
8444845892 |
|
UserID |
30581 |
UserID |
30581 |
|
User |
jod |
User |
jod |
|
Host |
buck |
Host |
buck |
|
Domain |
forest.field.com |
Domain |
forest.field.com |
|
HostID |
1234567890 |
HostID |
1234567890 |
|
Locale |
C |
Locale |
C |
|
Version |
1 |
Version |
1 |
|
Usage Server |
sherlock |
Usage Server |
sherlock |
|
RecordID |
295833 |
RecordID |
295833 |
|
C_Command1 |
pwd |
C_Command1 |
pwd |
|
C_Command2 |
ls |
C_Command2 |
ls |
|
C_Options |
-la |
C_Command3 |
date |
|
C_Command3 |
date |
|
|