Tripp Lite SV20KM1P1B Users Guide for PowerAlert Network Shutdown Agent PANSA - Page 5

Operating Mode, 3.5 Security

Page 5 highlights

2. Windows Implementation An example of batch file contents that would work as expected when manually executed but not when called using the Command Execution feature is: C:\Windows\system32\notepad.exe Manually executing a batch file with those contents would launch the Windows Notepad application, but calling the same file using the Command Execution feature would either lead to an Interactive Services Detection popup or no change on the Windows desktop, depending on the Windows Operating System in use. Users may see the notepad.exe process start in task manager, but the application will not launch. It is recommended that scripts which require interaction with the desktop should be modified to remove this behavior. Examples of scripts that do not interact with the desktop are the VMware scripts found in the appendix of this manual. An example of simple batch file content that will work when called through PANSA is: whoami >> somefile.text This file would print the name of the user executing the file into a file called "somefile.txt" in the current working directory. If "somefile.txt" is not in the current directory, it will be created. If "somefile.txt" does exist the name of the user executing the file will be appended to the file. If this file was called using PANSA, "somefile.txt" will be created in the "C:\Program Files (x86)\TrippLite\PowerAlert\engine" directory. Tips for working with command execution: • Enter the full path name (case sensitive) to the script, including the file extension, in the "Command to execute after delay" field (and if applicable, "Command to execute after alarm clears" field). Example: C:\Users\myuser\myflile.bat would be used to call "myfile.bat" from the "C:\Users\myuser" directory. The one exception to this rule is when the file is placed in the "C:\Program Files (x86)\TrippLite\ PowerAlert\engine" directory, in which case only the file name needs to be entered. Short filenames (DOS 8.3) can be input into these fields if your system supports them. • "pansa.exe" in the "C:\Program Files (x86)\TrippLite\PowerAlert\engine" directory will call the script when a configured event occurs. • PANSA does not support spaces in the "Command to execute after delay" or "Command to execute after alarm clears" fields. If the path to your script contains spaces, consider placing the script in the "C:\Program Files (x86)\TrippLite\PowerAlert\engine" directory and simply inputting the filename and extension (preferred) or using DOS 8.3 filenames to call the script file. 2.3.4 Operating Mode The "Operating Mode" setting applies only when PANSA is monitoring two UPS systems; it defines the conditions under which your computer will shut down and/or execute commands. If "Standard Configuration" is selected, your computer will shut down when either monitored device experiences a trigger event. If "Redundant UPS Configuration" is selected, your computer will shut down only when both monitored devices experience a trigger event. Note: In a redundant UPS system configuration, each UPS system must have sufficient load capacity to handle the total power requirement of all connected equipment. 2.3.5 Security The PANSA Console must authenticate with the PANSA service. By default, the password to perform this authentication is tripplite; PANSA uses this password by default to perform the requisite authentication. The "Security" setting determines whether a password other than tripplite is required by the PANSA Console to access the PANSA service. 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

5
2. Windows Implementation
An example of batch file contents that would work as expected when manually executed but not when called using the Command Execution
feature is:
C:\Windows\system32\notepad.exe
Manually executing a batch file with those contents would launch the Windows Notepad application, but calling the same file using the
Command Execution feature would either lead to an Interactive Services Detection popup or no change on the Windows desktop, depending
on the Windows Operating System in use. Users may see the notepad.exe process start in task manager, but the application will not launch.
It is recommended that scripts which require interaction with the desktop should be modified to remove this behavior. Examples of scripts
that do not interact with the desktop are the VMware scripts found in the appendix of this manual.
An example of simple batch file content that will work when called through PANSA is:
whoami >> somefile.text
This file would print the name of the user executing the file into a file called “somefile.txt” in the current working directory. If “somefile.txt” is
not in the current directory, it will be created. If “somefile.txt” does exist the name of the user executing the file will be appended to the file.
If this file was called using PANSA, “somefile.txt” will be created in the “C:\Program Files (x86)\TrippLite\PowerAlert\engine” directory.
Tips for working with command execution:
• Enter the full path name (case sensitive) to the script, including the file extension, in the “Command to execute after delay” field (and
if applicable, “Command to execute after alarm clears” field). Example: C:\Users\myuser\myflile.bat would be used to call “myfile.bat”
from the “C:\Users\myuser” directory. The one exception to this rule is when the file is placed in the “C:\Program Files (x86)\TrippLite\
PowerAlert\engine” directory, in which case only the file name needs to be entered. Short filenames (DOS 8.3) can be input into these
fields if your system supports them.
• “pansa.exe” in the “C:\Program Files (x86)\TrippLite\PowerAlert\engine” directory will call the script when a configured event occurs.
• PANSA does not support spaces in the “Command to execute after delay” or “Command to execute after alarm clears” fields. If the
path to your script contains spaces, consider placing the script in the “C:\Program Files (x86)\TrippLite\PowerAlert\engine” directory and
simply inputting the filename and extension (preferred) or using DOS 8.3 filenames to call the script file.
2.3.4 Operating Mode
The “Operating Mode” setting applies only when PANSA is monitoring two UPS systems; it defines the conditions under which your computer
will shut down and/or execute commands. If “Standard Configuration” is selected, your computer will shut down when either monitored
device experiences a trigger event. If “Redundant UPS Configuration” is selected, your computer will shut down only when both monitored
devices experience a trigger event.
Note:
In a redundant UPS system configuration, each UPS system must have sufficient load capacity to handle the total power requirement of all connected
equipment.
2.3.5 Security
The PANSA Console must authenticate with the PANSA service. By default, the password to perform this authentication is
tripplite
; PANSA
uses this password by default to perform the requisite authentication. The “Security” setting determines whether a password other than
tripplite
is required by the PANSA Console to access the PANSA service.