Displaying file checksums

Use the checksum command to display file checksums.

Use the following CLI syntax to display checksums.

    file
        — checksum [type] (image|md5|sha256) [url] <string>

The following example shows the output of the operation to check an SR OS .tim image file checksum.

[/file "cf3:\"]
A:admin@node-2# checksum image cpm.tim
TiMOS-C-20.10.R1
Wed Nov 4 09:18:17 PST 2020 by builder in /builds/c/2010B/R1/panos/main/sros
Checking file ... OK

The following example shows the output of the checksum operation to compute and display a checksum based on the MD5 and SHA256 algorithms for the config.cfg file on cf3.

[/]
A:admin@node2# file checksum md5 cf3:config.cfg
Checking file cf3:config.cfg
c65699dc05e6e35a2172eaac80485aa2

[/]
A:admin@node2# file checksum sha256 cf3:config.cfg
Checking file cf3:config.cfg
a1a813a696be04906f9faf1df9db0f90a990ff51cb3383099ade21241203bc1c