TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:emailing_reports

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
cli:emailing_reports [2017/07/28 16:00] – [Command Line Arguments] Scott Cunliffecli:emailing_reports [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 17: Line 17:
 The TapeTrack SMTP PowerShell Script is digitally signed with GazillaByte's code signing certificate, but by default Windows disallows the invocation of all PowerShell scripts. The TapeTrack SMTP PowerShell Script is digitally signed with GazillaByte's code signing certificate, but by default Windows disallows the invocation of all PowerShell scripts.
  
-To enabled signed scripts:+To enabled signed scripts, open Windows PowerShell as the Windows Administrator. 
 +  
 +{{:cli:powershell_admin.png}}
  
-  - Open Windows PowerShell as the Windows Administrator. +Run the command ''Set-ExecutionPolicy RemoteSigned''
-  - Run the command ''Set-ExecutionPolicy RemoteSigned''+
  
-{{:cli:powershell_admin.png|}} +{{:cli:powershell_security.png}}
- +
-{{:cli:powershell_security.png|}}+
  
 ==== Command Line Arguments ==== ==== Command Line Arguments ====
Line 30: Line 29:
 The PowerShell script takes the following arguments: The PowerShell script takes the following arguments:
  
-  ''config'' The path to the configuration file. +  ''config'' The path to the configuration file. 
-  ''smtpserver'' The IP address or name of the SMTP Server. +  ''smtpserver''  The IP address or name of the SMTP Server. 
-  ''smtpport''  SMTP Server port. +  ''smtpport''  SMTP Server port. 
-  ''smtpuser'' User-id of the user used to authenticate on the SMTP Server. +  ''smtpuser'' User-id of the user used to authenticate on the SMTP Server. 
-  ''smtppw'' Password of the user used to authenticate on the SMTP Server. +  ''smtppw'' Password of the user used to authenticate on the SMTP Server. 
-  ''smtpssl'' This enables SSL encryption for the email if required by the SMTP Server.+  ''smtpssl'' This enables SSL encryption for the email if required by the SMTP Server.
  
  
Line 48: Line 47:
 The file consists of records that contain a control character, followed by an argument. The control character must be in the first byte of each record. The file consists of records that contain a control character, followed by an argument. The control character must be in the first byte of each record.
  
-    ''F'' From (1 only) +    ''F'' From (1 only) 
-    ''T'' To (1 or more) +    ''T'' To (1 or more) 
-    ''C'' CC (1 or more) +    ''C'' CC (1 or more) 
-    ''S'' Subject (1 only) +    ''S'' Subject (1 only) 
-    ''B'' Body text (1 or more) +    ''B'' Body text (1 or more) 
-    ''A'' path to attachment file (1 or more) +    ''A'' path to attachment file (1 or more) 
-    ''.'' comment.+    ''.'' comment.
  
 <code> <code>
Line 64: Line 63:
 Ainventory.txt Ainventory.txt
 SInventory Report SInventory Report
 +</code>
 +
 +===== Examples =====
 +
 +==== Email Scratch Report ====
 +
 +<code>
 +TMSS10Inventory -S batch:-batch@gazillabyte.tapetrack.com -V "*.*.*@*+Z" > report.txt
 +PowerShell -config scratch.cfg -server smtp.tapetrack.com -port 25
 </code> </code>
cli/emailing_reports.1501257642.txt.gz · Last modified: 2025/01/21 22:07 (external edit)