08-06-2020 07:18 AM
Can I ask you for help with backup script for Cisco SG500 devices?
I checked logs, file attached, and there is mentioned that regex was not found (compare to other successful backups I did).
Have you idea where are those regex defined and how to modify it?
Thank you very much.
2020-08-05 18:00:51,342 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-11] [ScriptMib] [10.228.135.254] Looking for success regex match: bytes copied:
2020-08-05 18:00:51,342 DEBUG [com.ets.netsight.inv.agent.ScriptMib] [Inventory Snmp-11] [ScriptMib] [10.228.135.254] No match for success regex match: bytes copied:
2020-08-05 18:00:51,344 DEBUG [com.ets.netsight.inv.agent.AgentFileUtilities] deletingFile: /tftpboot/configs/tmp/10_228_135_254.cfg
2020-08-05 18:00:51,344 DEBUG [com.ets.netsight.inv.agent.AgentFileUtilities] deletingFile: /tftpboot/configs/tmp/10_228_135_254.cfg - Success.
2020-08-05 18:00:51,344 DEBUG [com.ets.netsight.inv.agent.AgentFileUtilities] deletingFile: /tftpboot/configs/tmp/10_228_135_254.cfg checking to see if parent dir can be removed.
2020-08-05 18:00:51,344 DEBUG [com.ets.netsight.inv.agent.AgentFileUtilities] deletingFile - Parent Dir: /tftpboot/configs/tmp
2020-08-05 18:00:51,344 DEBUG [com.ets.netsight.inv.agent.AgentFileUtilities] deletingFile - Parent Dir: /tftpboot/configs/tmp - Success.
2020-08-05 18:00:51,344 INFO [stdout] [AgentCB] Sending [Complete] Response to Client [extreme.ahold.net] = [Archive Save] for Ticket [Management Center Archive] Message = [Error Archiving Configuration File.]
Solved! Go to Solution.
08-06-2020 11:00 AM
Hi Peter.
in the inventory script you can define success criteria = even if the file is successfully received the CLI can report “Success” or “Failure”. This CLI response can be parsed in sections:
-----BEGIN SUCCESS "Configuration Upload"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Configuration Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Firmware Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "BootPROM Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Reset"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Timed Reset"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Timed Reset Abort"-----
-----END SUCCESS-----
I suggest you check the CLI response of the device and the relevant section of the Inventory script
Regards
08-07-2020 07:11 PM
That is great to hear. Congratulations. If you share the script and details, then I can publish it at GitHub, the community can benefit from it.
08-07-2020 06:11 PM
Thank you Zdenek for your hint. I was able fix my script with this advice.
08-06-2020 11:00 AM
Hi Peter.
in the inventory script you can define success criteria = even if the file is successfully received the CLI can report “Success” or “Failure”. This CLI response can be parsed in sections:
-----BEGIN SUCCESS "Configuration Upload"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Configuration Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Firmware Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "BootPROM Download"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Reset"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Timed Reset"-----
-----END SUCCESS-----
-----BEGIN SUCCESS "Timed Reset Abort"-----
-----END SUCCESS-----
I suggest you check the CLI response of the device and the relevant section of the Inventory script
Regards