Creating custom grammars
The BMC Server Automation product uses a system of grammars to parse configuration files. Typically a grammar examines each line in a configuration file, and if a line matches rules set up in the grammar, the grammar generates a configuration file record. When you create a grammar, you can choose to create configuration file records from multiple lines, which is required for some types of configuration files.
After configuration file records are created, you can use grammars to browse, snapshot and audit them. You can also run Compliance Jobs on them and deploy configuration files like other server objects. Using these standard procedures, you can manipulate the contents of configuration files with great precision, down to their individual lines. You can monitor configuration files on servers throughout your system and, if necessary, correct inconsistencies without synchronizing those servers' configuration files so that they are exactly alike.
The following topics explain how to create grammar files and how to integrate a grammar file into the BMC Server Automation system.
Syntax-for-grammar-files describes the required syntax when you write a grammar file. After you have created a grammar, see Integrating-configuration-grammars-into-BMC-Server-Automation for a description of how to add the grammar file to BMC Server Automation.