Example 3: Updating an object
Example 3, when imported into OpsCenter Analytics, updates the Location attribute of master1.abc.domain.com (to Illinois). The Name attribute of Chicago object is also updated (to Chicago).
(The DTD header has been snipped.)
<application version="2.0"> <objects> <object id="o3" name="master.abc.domain.com" action="update" type="MASTER_SERVER" dbid="58"> <attribute> <name>Location</name> <value>Illinois</value> </attribute> </object> <object id="o4" name="master3" 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="update" 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> </application>