fileparse is a C binary located in /var/opt/SUNWsymon/SysMgmtPack/filewch/scripts/.
The default list of script files has a value set for Validation Script and Record Format. For example, for /etc/hosts, the values are set as follows:
Validation Script is set to fileparse
Record Format is set to IPADDRESS STRING STRING
The binary parses filename against the record_format specified in the file definition contained in the Watched File table. Errors are reported if the file contents do not conform to the input file record_format. Blank lines and comment lines are skipped. The binary returns the following values:
Success
Cannot open file
record_format is not correct
file format is not correct
program error, such as not enough memory
argument error