Cisco Cisco Elastic Services Controller 2.2 Developer's Guide
6.2.2.5.3 Event Notifications
When the monitor of the VM is enabled successfully, ESC will send a notification:
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-20T00:50:51.601+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>Set monitor completed successfully</status_message>
<depname>dep</depname>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>Set monitor completed successfully</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>
<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_SET</type>
</event>
</escEvent>
</notification>
</vm_target>
<event>
<type>VM_MONITOR_SET</type>
</event>
</escEvent>
</notification>
When the VM has beenset monitor, it will be monitored using ICMP ping. When it gets alive, ESC will
send the notification indicating VM is alive:
send the notification indicating VM is alive:
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM_Alive event received after set monitor, VM ID:
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2015-05-19T23:46:36.276+00:00</eventTime>
<escEvent xmlns="http://www.cisco.com/esc/esc">
<status>SUCCESS</status>
<status_message>VM_Alive event received after set monitor, VM ID:
[CIRROS_HEZH__614__hezh-yesc-0520__hezh-yesc-
0520depCIRROS_HEZH1.6__0__CSR__0]</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>
<vm_group>CSR</vm_group>
<vm_source>
0520depCIRROS_HEZH1.6__0__CSR__0]</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<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_ALIVE</type>
</event>
</escEvent>
</notification>
<hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid>
</vm_source>
<vm_target>
</vm_target>
<event>
<type>VM_ALIVE</type>
</event>
</escEvent>
</notification>
If there are errors during enabling the monitor of the VM, there will be a final notification indicating the
error:
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>Set monitor failed</status_message>
<depname>dep</depname>
<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>Set monitor failed</status_message>
<depname>dep</depname>
<tenant>hezh-yesc-0520</tenant>
<svcid>NULL</svcid>
<svcid>NULL</svcid>
<depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid>