Configuring the collation.properties file entries

This topic lists the collation.properties file entries that the sensor uses.

The sensor uses the following entries in the collation.properties file:

com.collation.platform.os.command.machinfo
This property specifies the path to the machinfo command. If this property is not set, the default value of /usr/contrib/bin/machinfo is used.
com.collation.discover.agent.command.kcmodule
This property specifies the path to the kcmodule command.
com.collation.platform.os.HpUxItanium.Model
Used as a starting point for HpUx on Itanium. The default value is ia64. Change this property when the model command on HP-UX Itanium systems does not contain ia64 in the output.
com.collation.discover.agent.command.hpvminfo
This property specifies the path to the hpvminfo command. If this property is not set, the default value of /opt/hpvm/bin/hpvminfo is used.
com.collation.discover.agent.command.hpvmstatus
This property specified the path to the hpvmstatus command. If this property is not set, the default value of /opt/hpvm/bin/hpvmstatus is used.
com.collation.platform.os.command.crontabEntriesCommand.HP-UX=crontab -l
This property is used to discover crontab entries. You can specify this property as a scoped property by appending an IP address or a scope set name to the property. The following example uses an appended IP address:
com.collation.platform.os.command.crontabEntriesCommand.HP-UX.1.2.3.4=crontab -l
com.collation.platform.os.command.crontabEntriesUsers.HP-UX=root
This property is used to discover crontab entries for a specified user, use a comma-separated list to specify more than one user. You can specify this property as a scoped property by appending an IP address or a scope set name to the property. The following example uses an appended IP address:
com.collation.platform.os.command.crontabEntriesUsers.HP-UX.1.2.3.4=root,build
com.collation.discover.agent.sys.ComputerSystem.serialNumberSanityChecks=
"ˆ(?!null);ˆ(?!not );ˆ(?!n/a);ˆ(?!permission);ˆ(?!to be );ˆ(?!undef); ˆ[ -:\.\w]{4,80}$; ^(?!.{8}(\-.{4}){3}\-.{12}_.{2}(:.{2}){5});^(?!none);^(?!x{7});^(?!\.{9});^(?!0123456789);^(?!0+$)";

This property is used to validate the serialNumber property that is discovered by the operating system sensors, except Solaris, to avoid storing generic values, such as Not Defined, To be set by OEM, or Permission Denied.

The main default rule is that a serial number must contain from 4 to 80 characters and not begin with one of the following strings:
  • null : regular expression ^(?!null)
  • not : regular expression ^(?!not)
  • n/a : regular expression ^(?!n/a)
  • permission : regular expression ^(?!permission)
  • to be : regular expression ^(?!to be)
  • undef : regular expression ^(?!undef)
  • string in form : 098D8710-E623-3C3B-9F9B-FCBAFF1BF3B6_5C:F3:FC:E8:89:FC : regular expression ^(?!.{8}(\-.{4}){3}\-.{12}_.{2}(:.{2}){5})
  • none : regular expression ^(?!none)
  • xxxxxxx : regular expression ^(?!x{7})
  • ......... : regular expression ^(?!\.{9})
  • 0123456789 : regular expression ^(?!0123456789)
  • 0000 : regular expression ^(?!0+$)

If a serial number does not follow this rule, it is not set. The regular expression syntax is defined in the Java™ SDK for class java.util.regex.Pattern. Regular expressions must be separated by semicolons. Candidate serial numbers are always converted to all lowercase before they are matched against the regular expressions. Therefore, when you customize the property, use lowercase characters only.