Testing manually
Available from 9.2.2. You can test the extended signatures that you create by using a BigFix client that is installed on the platform for which a signature is defined.
Procedure
-
Prepare a test catalog file that contains only the signature that you want to verify
and the name the file extended_signature_test.xml.
The following example shows a test catalog file. It consists of three main parts: the header, the body and the footer. The body, which is in bold, is formatted basing on the available signature templates. For the full list, see: Extended signature templates.
<?xml version="1.0" encoding="UTF-8"?> <Signatures> <Signature guid="EXTENDED SIGNATURE TEST" name="EXTENDED SIGNATURE TEST" type="OtherSignature"> <!-- SIGANTURE BODY START --> <Variable name="IS_INSTALLED" export="true"> <RegKeyExists key="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\" section="64or32"/> </Variable> <!-- SIGANTURE BODY END --> </Signature> </Signatures>
- Add a scanner location to the environment variables by running the following
command:
-
LIBPATH="/opt/tivoli/cit/bin:$LIBPATH" export LIBPATH
SHLIB_PATH="/opt/tivoli/cit/bin:$SHLIB_PATH" export SHLIB_PATH
-
LD_LIBRARY_PATH="/opt/tivoli/cit/bin:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH
set Path=C:\Program Files\Tivoli\cit\bin;%Path%
-
- Reset the file system scanner by running the following
command:
-
/opt/tivoli/cit/bin/wscanfs -reset
-
"C:\Program Files\Tivoli\cit\bin\wscanfs.exe" -reset
-
- Run a scan by using the test catalog file.
-
/opt/tivoli/cit/bin/wscansw -i extended_signature_test.xml -o output.xml -e warning.xml
-
"C:\Program Files\Tivoli\cit\bin\wscansw.exe" -i extended_signature_test.xml -o output.xml -e warning.xml
-
- Review the output.xml and warning.xml files.