Inventory tasks and policies include rules based on a default set of file extensions. These extensions are pre-defined in the Symantec_cmdb. In order to create a rule for a file extension that is not currently available in an inventory rule, the following steps can be taken to make that file extension available.
- Open SQL Enterprise Studio and pull up a Query window.
- Backup your database (Just in case!).
- Paste in the following Query:
- INSERT INTO Inv_DefaultFileXML_FileTypes VALUES ( 'Text files', '*.txt', 'Windows')
- Edit the query to apply to the file type you wish to capture:
- Replace 'Text files' with a name to use as an identifier, for example 'Config files'
- Replace '*.txt' with the extension you wish to capture, for example '*.config'
- Windows should work for most situations unless you are creating a scanning rule for another platform such as Mac or Linux.
- Here is the example query completed:
- INSERT INTO Inv_DefaultFileXML_FileTypes VALUES ('Config files', '*.config', 'Windows')
- Execute the Query.
Now when you are using the File rules the added values will be available from the dropdowns.
Note: the same must be done for each ‘Platform’ or operating system, i.e., Unix, Mac, Linux, Windows.
Note: Some files may still be excluded based in drive and disk exclusions and because some specific files do not have standard internal property data, i.e., .ser and .cph.