PGT was written as a dual purpose application :
1, Provide a powerful UI to run simple scripts on several devices. The script is a basic CSV file which can be edited in Excel. Each and every line is a single command and contains all information required to connect to a device and execute the command. Command results recorded, filtered with regex expressions and can be saved after the script terminated.
2, Provide an extendible framework for developers to write simple VBS scripts or create custom code for complex tasks.
- VBS scripting support provides a means of automation. One can call various function of PGT from the script, from instance from Excel. Using Excel, the script can easily be debugged.
- A more sophisticated approach of extensibility is creating a class library and implement a basic interface by a class. In this context, the base framework handles the CSV input file, connects to hosts as described and then transfers execution to the CustomActionHandler class in the class library. This CustomActionHandler can then call all the built-in functions of the internal ScriptableTerminal class, such as WaitForPrompt(), ExecCommand() functions. The custom action handler can perform any addition tasks as required
Comments