The RepearName tag can be added both manually and automatically in the amfregister.xml.
Adding ReaperName tag automatically
The tag is created automatically when imf_init for the agent is called for the first time if not already present.
For example, if the type name is CFSMount, the amfregister.xml will have following lines:
<xml> <!--ReaperName tag has been added by imf_init entry point--> <ReaperName>CFSMount</ReaperName> <Register> <RegType>PRON</RegType> <ProcPattern>/usr/sbin/rpc.statd -d 0 -t 50</ProcPattern> </Register> </xml>
Adding ReaperName tag manually
Agent Developer may also choose to add this tag manually. In this case, imf_init will not update amfregister.xml.
For example, if the reaper name (type of the resource) is Process, the xml file will look as follows:
<xml> <ReaperName>Process</ReaperName> <Register> <RegType>PRON</RegType> <ProcPattern>/usr/sbin/rpc.statd -d 0 -t 50</ProcPattern> </Register> </xml>