Using BMC Map Files
VCS uses a BMC map file to manage the various BMC files of a given module for a given language. HAD is the module for the VCS engine, bundled agents, enterprise agents, and custom agents. A BMC map file is an ASCII text file that associates BMC files with their category and unique message ID range.
Location of BMC Map Files
Map files, by default, are created in the same directories as their corresponding BMC files: /opt/VRTSvcs/messages/language.
Creating BMC Map Files
Developers can add BMCs to the BMC map file. After generating a BMC file:
-
Copy the BMC file to the corresponding directory. For example:
# cp VRTSvcsSunOracle.bmc /opt/VRTSvcs/messages/en
-
Change to the directory containing the BMC file and run the bmcmap utility. For example:
# cd /opt/VRTSvcs/messages/en
# bmcmap -create en HAD
The bmcmap utility scans the contents of the directory and dynamically generates the BMC map. In this case, HAD.bmcmap is created.
Example BMC Map File
In the following example, a BMC named VRTSvcsHPNewCustomAgent.bmc is included in the BMC map file for the HAD module and the English language.
#
# Copyright(C) 2001 VERITAS Software Corporation.
# ALL RIGHTS RESERVED.
#
Language=en
HAD=VRTSvcsHad VRTSvcsHPAgent VRTSvcsHPNewCustomAgent
# VCS
VRTSvcsHad.version=1.0
VRTSvcsHad.IDstart=0
VRTSvcsHad.IDend=16501
VRTSvcsHad.Category=__________
# HP Bundled Agents
VRTSvcsHPAgent.version=1.0
VRTSvcsHPAgent.IDstart=100001
VRTSvcsHPAgent.IDend=113501
VRTSvcsHPAgent.Category=__________
# HP NewCustomAgent
VRTSvcsHPNewCustomAgent.version=1.0
VRTSvcsHPNewCustomAgent.IDstart=2017001
VRTSvcsHPNewCustomAgent.IDend=2017040
VRTSvcsHPNewCustomAgent.Category=_________
|