Cisco Cisco Elastic Services Controller 2.2 Developer's Guide

Page of 84
    <vm_group>CSR</vm_group> 
    <vm_source> 
      <vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid> 
      <hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid> 
    </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>VM_MONITOR_UNSET</type> 
    </event> 
  </escEvent> 
</notification> 
If there are errors during disabling the monitor of the VM, there will be a final notification indicating the 
error: 
<?xml version="1.0" encoding="UTF-8"?> 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-20T00:47:06.591+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>FAILURE</status> 
    <status_message>Unset monitor failed</status_message> 
    <depname>dep</depname> 
    <tenant>hezh-yesc-0520</tenant> 
    <svcid>NULL</svcid> 
    <depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid> 
    <vm_group>CSR</vm_group> 
    <vm_source> 
      <vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid> 
      <hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid> 
    </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>VM_MONITOR_UNSET</type> 
    </event> 
  </escEvent> 
</notification> 
 
6.2.2.5  Enable VM Monitor 
6.2.2.5.1  Netconf Request  
 
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <edit-config> 
    <target> 
      <running/> 
    </target> 
    <config> 
      <vmAction xmlns="http://www.cisco.com/esc/esc"> 
        <actionType>ENABLE_MONITOR</actionType> 
        <vmName>sampleVmName</vmName> 
        <force>false</force> 
      </vmAction> 
    </config> 
  </edit-config> 
</rpc> 
 
6.2.2.5.2  Netconf Response  
 
An rpc-reply response is returned with a status of ok if the request was accepted for 
activation, or a status of rpc-error if the request was rejected.  See section 
a Configuration Request  for more details.