Sigcmd.exe utility program
The "system\sigcmd.exe program permits application programs and shell scripts to access particular functions in the library, providing a simple API for scripts, including batch files. This utility accepts as input the name of a function, and the arguments appropriate for that function. Any appropriate return value is written to standard output. If the function name is not found, the utility continues without generating any output, and the return status of the program is set to one (1).
The "Sigcmd.exe" described herein are subject to additional licensing by BMC, and are not necessarily supported by BMC Defender without Professional Services (PS) or other costs. Contact your account manager for additional information
The following syntax elements are available from the Sigcmd.exe program.
Element | Description |
---|---|
Sigcmd.exe SG_form (action) | Generate, to standard output, the <form method=post action=action> tag, which starts the form. The payload of the specified action is encrypted. This provides a simple method of starting forms. The user is obliged to supply the "</form>" closing tag at the end of the form. |
Sigcmd.exe SG_link (url) | Generate, to standard output, the <a href=url> tag, which provides the anchor value for the URL. As discussed elsewhere, the url specifies the target document or program, and can also contain arguments passed to a program, where each argument is delimited by a ";" semicolon. The user is obliged to supply the "</a>" closing tag at the end of the URL hyperlink. |
Sigcmd.exe SG_linkt (url) (target) | Similar to the above function, but permits the user to specify a target for the anchor. Generate, to standard output, the <a href=url target=target> tag, which provides the anchor value for the URL. As discussed elsewhere, the url specifies the target document or program, and can also contain arguments passed to a program, where each argument is delimited by a ";" semicolon. The user is obliged to supply the "</a>" closing tag at the end of the URL hyperlink. |
Sigcmd.exe SG_output_html (htmlfile) | Display the specified HTML file to standard output, performing macro replacement on macro tokens in the form "@@". Macro tokens are replaced in the file as follows: First check for a file next to the HTML file, but with a ".cnf" suffix. If found, lookup tokens in that file. If no macro replacement is found, check for an environmental variable with the macro name. If neither is found, the macro is removed from the file. (See section on Sigma macro replacement.) |
Sigcmd.exe SG_get_date | Display, to standard output, the date and time, in yyyy/mm/dd hh:mm:ss format. This date and time is the standard time element used by the Sigma library, and is used by the "diff_date" function below. |
Sigcmd.exe SG_diff_date (date1) (date2) | Display, to standard output, the number of elapsed seconds between the two dates, where each date is the format described by the SG_get_date() function above. This is useful for determining the elapsed time between any two timestamps. |
Sigcmd.exe SG_smatch (patt) (string) | Display, to standard output, the text string "True (1)" if the specified pattern exists in the specified string. The pattern can contain the standard "^", "*", and "?" wildcards. This is a way of quickly testing whether a specified pattern exists in a specified string. In addition to returning the match status to standard output, the command returns an error level of one if the specified pattern does not match the specified string. |
Related topics