Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VESagent provision sample:

    Assuming:

           IP to access multiCloud-windriver: 172.30.3.37

           VES endpoint: http://172.30.3.55:8081/eventListener/v5 , user/passwd: admin/admin

           vimid: CloudOwner_RegionOne

           VM names: sample_vm_0 and sample_vm_1

...

Code Block
titleprovisioning vesagent
collapsetrue
$ export MC_EP=http://{{multicloud-windriver IP}}:9005/api/multicloud-titanium_cloud/v0/{{vimid}}
	e.g. $ export MC_EP=http://10172.1230.53.11937:9005/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne

$ curl -v -s -H "Content-Type: application/json" -d sample_vesagent_2vms -X POST  $MC_EP/vesagent

...

Code Block
titleQuery VESagent
collapsetrue
export MC_EP=http://{{multicloud-windriver IP}}:9005/api/multicloud-titanium_cloud/v0/{{vimid}}
	e.g. export MC_EP=http://10172.1230.53.11937:9005/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne

curl -v -s -H "Content-Type: application/json" -X GET  $MC_EP/vesagent

...

Code Block
titleDelete provision of VESagent for a VIM
collapsetrue
export MC_EP=http://{{multicloud-windriver IP}}:9005/api/multicloud-titanium_cloud/v0/{{vimid}}
	e.g. export MC_EP=http://172.30.3.37:9005/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne

curl -v -s -H "Content-Type: application/json" -X DELETE  $MC_EP/vesagent


...

Code Block
titlesubscription output
collapsetrue
"{\"event\":{\"commonEventHeader\":{\"startEpochMicrosec\":1526900735217016,\"sourceId\":\"14eac7b8-a7d8-4b53-8547-924cd0a5be4f\",\"eventId\":\"153f3494-1906-421a-8aa9-98ddd399f4c2\",\"reportingEntityId\":\"sampletenantCloudOwner_RegionOne\",\"internalHeaderFields\":{\"collectorTimeStamp\":\"Mon, 05 21 2018 11:05:36 GMT\"},\"eventType\":\"\",\"priority\":\"High\",\"version\":3,\"reportingEntityName\":\"sampletenantCloudOwner_RegionOne\",\"sequence\":0,\"domain\":\"fault\",\"lastEpochMicrosec\":1526900735217045,\"eventName\":\"Fault_MultiCloud_VMFailure\",\"sourceName\":\"sample_vm_0\"},\"faultFields\":{\"eventSeverity\":\"CRITICAL\",\"alarmCondition\":\"Guest_Os_Failure\",\"faultFieldsVersion\":2,\"specificProblem\":\"Fault_MultiCloud_VMFailure\",\"alarmInterfaceA\":\"aaaa\",\"alarmAdditionalInformation\":[{\"name\":\"objectType\",\"value\":\"VIM\"},{\"name\":\"eventTime\",\"value\":\"2018-05-21 11:05:35.217154\"}],\"eventSourceType\":\"virtualMachine\",\"vfStatus\":\"Active\"}}}"

...

Code Block
titlesubscription output
collapsetrue
"{\"event\":{\"commonEventHeader\":{\"startEpochMicrosec\":1526900735217016,\"sourceId\":\"14eac7b8-a7d8-4b53-8547-924cd0a5be4f\",\"eventId\":\"8119c7ff-193e-4e02-b15d-a4fee21f9d2d\",\"reportingEntityId\":\"sampletenantCloudOwner_RegionOne\",\"internalHeaderFields\":{\"collectorTimeStamp\":\"Mon, 05 21 2018 11:09:46 GMT\"},\"eventType\":\"\",\"priority\":\"Normal\",\"version\":3,\"reportingEntityName\":\"sampletenantCloudOwner_RegionOne\",\"sequence\":0,\"domain\":\"fault\",\"lastEpochMicrosec\":1526900985730542,\"eventName\":\"Fault_MultiCloud_VMFailureCleared\",\"sourceName\":\"sample_vm_0\"},\"faultFields\":{\"eventSeverity\":\"NORMAL\",\"alarmCondition\":\"Vm_Restart\",\"faultFieldsVersion\":2,\"specificProblem\":\"Fault_MultiCloud_VMFailureCleared\",\"alarmInterfaceA\":\"aaaa\",\"alarmAdditionalInformation\":[{\"name\":\"objectType\",\"value\":\"VIM\"},{\"name\":\"eventTime\",\"value\":\"2018-05-21 11:09:45.730638\"}],\"eventSourceType\":\"virtualMachine\",\"vfStatus\":\"Active\"}}}"

...