technote:cgi
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| technote:cgi [2026/02/19 04:26] – [Security Warning] Scott Cunliffe | technote: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: | + | To avoid using your password in plain text in the URL, create a file C: |
| Attributes are separated using the & symbol | Attributes are separated using the & symbol | ||
| Line 132: | Line 132: | ||
| TapeTrack utilities can output different formats depending on environment variables. | TapeTrack utilities can output different formats depending on environment variables. | ||
| - | To force CSV output, the variable may be required: | + | To force CSV output, the variable may be required, in a command prompt: |
| < | < | ||
| Line 138: | Line 138: | ||
| Other formats are text (default), PDF & Excel. | Other formats are text (default), PDF & Excel. | ||
| - | ===== Option A: Set TMSSREPORTFORMAT Globally for Apache ===== | + | Using CGI, to set the report format locally, use the variable RPT |
| + | |||
| + | < | ||
| + | |||
| + | Or if the report format stays as CSV, you can set the value globally. | ||
| Add the following to Apache configuration (inside global scope): | Add the following to Apache configuration (inside global scope): | ||
| Line 148: | Line 152: | ||
| 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. | ||
| - | ===== Example: Generate CSV Inventory | + | ===== Report |
| - | Once TMSSREPORTFORMAT is set, run: | + | 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 |
| - | The browser should display the CSV output, or prompt to open it in Excel. | + | < |
| + | TMSS10Inventory -S user: | ||
| - | ===== Troubleshooting ===== | + | Apache/CGI |
| + | < | ||
| - | ==== Output is blank ==== | + | ===== Example: Generate CSV Inventory Report ===== |
| - | Possible causes: | + | Once TMSSREPORTFORMAT is set, run: |
| - | The TapeTrack executable is writing output to a file instead of stdout | + | < |
| - | TapeTrack is failing due to permissions (Apache service account) | + | The browser should display the CSV output, or prompt |
| - | Missing environment variables (example: TMSSREPORTFORMAT) | ||
| - | TapeTrack cannot connect to the TapeTrack server | ||
| - | Check Apache logs: | ||
| - | < | ||
| - | ==== TapeTrack utility works in CMD but not in browser ==== | ||
| - | Apache runs under a service account (often LocalSystem). That account may not have access to: | ||
| - | TapeTrack registry settings | ||
| - | |||
| - | network resources | ||
| - | |||
| - | configuration files | ||
| - | |||
| - | authentication credentials | ||
| - | |||
| - | Fix: configure Apache service to run as a specific Windows user with access to TapeTrack. | ||
| ===== Security Warning ===== | ===== Security Warning ===== | ||
| Line 199: | 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.1771475160.txt.gz · Last modified: 2026/02/19 04:26 by Scott Cunliffe
