m_save_output¶
-
m_save_output.
script_main
(script)¶ -
This script will prompt for a CSV list of devices, then will prompt for a command to run on each device in the list. The output from each device will be saved to a file. The path where the file is saved is specified in the settings.ini file.
Parameters: script (scripts.Script) – A subclass of the scripts.Script object that represents the execution of this particular script (either CRTScript or DirectScript)
-
m_save_output.
per_device_work
(session, enable_pass, send_cmd)¶ This function contains the code that should be executed on each device that this script connects to. It is called after establishing a connection to each device in the loop above.
You can either put your own code here, or if there is a single-device version of a script that performs the correct task, it can be imported and called here, essentially making this script connect to all the devices in the chosen CSV file and then running a single-device script on each of them.