Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

How to use qscan
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: How to use qscan
  • SDP: 8.1.0, 7.1.0, 7.0.0
  • Target: All supported targets
________________________________________________________________________

Question
________________________________________________________________________

What is qscan and how do I use it?

________________________________________________________________________

Solution
________________________________________________________________________

qscan (qscan.sh) is a shell script that scans the target file system, collects file information and saves it in CSV format. The information collected is: 
  • permissions 
  • checksums (sha512) 
  • path and size for all files
  • 'use -i' information for elf binaries
qscan.sh is shipped with the QNX SDP and can be found in $QNX_TARGET\<CPU>\usr\bin

Here is the quick way to run qscan on the target:

Copy the 3 files (qscan.sh, openssl and openssl.cnf) from qscan.zip, which is attached to this case, to "/tmp" on your target. From there, follow these instructions


# chmod 777 /tmp/qscan.sh
# ln -sP /tmp/qscan.sh /usr/bin/qscan.sh
# ln -sP /tmp/openssl.cnf /etc/openssl/openssl.cnf
# chmod 777 /tmp/openssl
# ln -sP /tmp/openssl /usr/bin/openssl
# ksh /tmp/qscan.sh / > /tmp/sysscan.csv


At this point the result of the scan should be in /tmp/sysscan.csv.

You can analyze the sysscan.csv, attach it to a support case if necessary, or import it into QNX Software Center. See also

https://www.qnx.com/developers/docs/qsc/#com.qnx.doc.qsc.user_guide/topic/manifest_reports_qscan.html

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.