Forum Discussion
How to test the checksum of an uploaded file
I believe your second point is the significant one here; it appears that the get_checksum call is only applicable to Data Group files, so it can only be obtained after the upload file has been set as the 'active' instance, removing the possibility of a rollback. However, I think I can persuade people that re-running the upload in the case of transfer failure and using the previous week's details as a rollback is acceptable, I can checksum the newly install data group file.
To answer your question, the file is uploaded to /config/temp_GatewayLB.cfg; the same path is used in the get_checksum call but fails. A call to set_local_path using this path succeeds, suggesting that file transfer succeeded, and a subsequent call to get_checksum using the Data Group supplied to the set_local_path call also works, so it 'installs' correctly.
As mentioned, I have a reasonable alternative that checksums the data group so I will go with that; however, if you do find a method of obtaining a checksum of an arbitrary file, I would be interested to hear it.
Thank you for your response Bill Hurn
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
