from dialin import HD if __name__ == "__main__": hd = HD(log_level="DEBUG") if hd.cmd_log_in_to_hd(): # NOTE: For further details, please refer to 'Instructions to Change the Software Configurations Dynamically' in # the development section of the DevOps OneNote file # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. # Use cmd_get_hd_sw_config_record() to get the software configurations record in an excel # This function gets an address to locate the report there (i.e. /home/fw/projects/) # It creates a folder called HD_NV_Records in the destination that is called # If no address is provided, the default location is one folder above the dialin folder wherever it is installed # in you computer. #hd.sw_configs.cmd_get_hd_sw_config_record() # Use cmd_update_hd_sw_config_record() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below hd.sw_configs.cmd_update_hd_sw_config_record('/home/fw/projects/HD_NV_Records/2022-02-14-HD-SW-CONFIGS-Record.xlsx') # Use this function to reset the configuration records to all be 0 #hd.sw_configs.cmd_reset_hd_sw_config_record()