Example 2: Adding a view
Example 2, when imported into OpsCenter Analytics, the TestMasterServers view is created with top-level branch as Chicago that contains a host object master1.abc.domain.com.
(The DTD header has been snipped.)
<application version="2.0"> <objects> <object id="o3" name="master.abc.domain.com" action="declare" type="MASTER_SERVER" dbid="58"> <attribute> <name>Location</name> <value>Illinois</value> </attribute> </object> <object id="o4" name="master2" action="declare" type="MEDIA_CLIENT" dbid="61" /> <object id="o5" name="dailybackuppolicy" action="declare" type="POLICY" dbid="62" /> <object id="o6" name="weeklybackuppolicy" action="declare" type="POLICY" dbid="63" /> <object id="o7" name="monthlybackuppolicy" action="declare" type="POLICY" dbid="64" /> <object id="o9" name="Illinois" action="declare" type="GENERIC" dbid="66"> <attribute> <name>Name</name> <value>Illinois</value> </attribute> </object> <object id="o10" name="Chicago" action="declare" type="GENERIC" dbid="67"> <attribute> <name>Name</name> <value>Chicago</value> </attribute> </object> </objects> <view identifier="MyMasterServers" type="Master Server" action="update"> <node id="n268" action="add" object="o9" /> <node id="n269" action="add" object="o3" parents="n268" /> </view> <view identifier="TestMasterServers" type="Master Server" action="add"> <node id="n271" action="add" object="o10" /> <node id="n272" action="add" object="o3" parents="n271" /> </view> </application>