Index: tests/hd_nvm_scripts.py =================================================================== diff -u -r3ebf82ed05a35a2ee9f38f0f0dc1541aeaa09e04 -rcd79d9df6686d5aa1f71ad4789a7c372ddcff370 --- tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision 3ebf82ed05a35a2ee9f38f0f0dc1541aeaa09e04) +++ tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision cd79d9df6686d5aa1f71ad4789a7c372ddcff370) @@ -68,7 +68,7 @@ # This function gets an address to locate the report there (i.e. /home/fw/projects/) # It creates a folder called DG_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. + # in your computer. #hd.system_record.cmd_get_hd_system_record_report() hd.system_record.cmd_set_hd_system_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-09-26-HD-Record.xlsx') @@ -77,6 +77,36 @@ #hd.system_record.cmd_reset_hd_system_record() +def run_usage_info_commands(): + # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. + + # Use cmd_get_dg_system_record_report() to get the system record in an excel + # This function gets an address to locate the report there (i.e. /home/fw/projects/) + # It creates a folder called DG_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 your computer. + hd.usage_record.cmd_get_hd_usage_info_record() + + hd.usage_record.cmd_set_dg_usage_info_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-09-26-HD-Record.xlsx') + + hd.usage_record.cmd_reset_hd_usage_info_record() + + +def run_service_commands(): + # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. + + # Use cmd_get_dg_system_record_report() to get the system record in an excel + # This function gets an address to locate the report there (i.e. /home/fw/projects/) + # It creates a folder called DG_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 your computer. + hd.service_record.cmd_get_hd_service_record() + + hd.service_record.cmd_set_dg_service_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-09-26-HD-Record.xlsx') + + hd.service_record.cmd_reset_hd_service_record() + + if __name__ == "__main__": hd = HD(log_level="DEBUG") @@ -91,3 +121,7 @@ #run_system_commands() + #run_usage_info_commands() + + #run_service_commands() +