TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:cgi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:cgi [2026/02/19 04:29] – [Setting Report Format] Scott Cunliffetechnote:cgi [2026/02/19 04:51] (current) – [Report Variables] Scott Cunliffe
Line 124: Line 124:
 spaces are replaced with + spaces are replaced with +
  
-To avoid using your password in plain text in the URL, create a file C:\tapetrack\pw\user where user is the username and the contents of the file is the users password.  The -S arg only needs to specify _s user@locahost and the password will be looked up by the process.+To avoid using your password in plain text in the URL, create a file C:\tapetrack\pw\user where user is the username and the contents of the file is the users password.  The -S arg only needs to specify -S user@locahost and the password will be looked up by the process.
  
 Attributes are separated using the & symbol Attributes are separated using the & symbol
Line 140: Line 140:
 Using CGI, to set the report format locally, use the variable RPT Using CGI, to set the report format locally, use the variable RPT
  
-<code> ?RPT=CSV</code>+<code> http://localhost/tapetrack/TMSS10Inventory.exe?S=user:-pass@localhost &RPT=CSV</code>
  
 Or if the report format stays as CSV, you can set the value globally. Or if the report format stays as CSV, you can set the value globally.
Line 151: Line 151:
  
 This forces TapeTrack utilities run via Apache CGI to output in CSV format. This forces TapeTrack utilities run via Apache CGI to output in CSV format.
 +
 +===== Report Variables =====
 +
 +All report [[variable:start|Variables]] can be used similar to the command line interface, with the exception of syntax.
 +
 +A command line example of calling TMSS10Inventory, with access details, customer filter and CSV output.
 +
 +<code> set TMSSREPORTFORMAT=CSV
 +TMSS10Inventory -S user:-pass@localhost -V UK01.*.* </code>
 +
 +Apache/CGI
 +
 +<code> http://localhost/tapetrack/TMSS10Inventory.exe?S=user:-pass@localhost&V=UK01.*.*&RPT=CSV</code>
 +
  
 ===== Example: Generate CSV Inventory Report ===== ===== Example: Generate CSV Inventory Report =====
Line 160: Line 174:
 The browser should display the CSV output, or prompt to open it in Excel. The browser should display the CSV output, or prompt to open it in Excel.
  
-===== Troubleshooting =====+
  
  
Line 176: Line 190:
   * Only allow execution in a controlled folder   * Only allow execution in a controlled folder
  
 +{{tag> reports utils cgi apache technote cli}}
technote/cgi.1771475364.txt.gz · Last modified: 2026/02/19 04:29 by Scott Cunliffe