Displaying file checksums

Use the checksum command to display file checksums.

Use the following CLI syntax to check the version of an SR OS .tim image file.

    file
        — version <file-url> [check]
A:node-2>file cf3:\ # version 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

A:node-2>file cf3:\ # version cpm.tim check
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

Use the following CLI syntax to display checksums.

    file
        — checksum {md5|sha256} <file-url>

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:node2# file checksum md5 cf3:config.cfg
Checking file cf3:config.cfg ...
c65699dc05e6e35a2172eaac80485aa2

A:node2# file checksum sha256 cf3:config.cfg
Checking file cf3:config.cfg ...
a1a813a696be04906f9faf1df9db0f90a990ff51cb3383099ade21241203bc1c