HP VAN SDN Controller Administrator Guide

84
4. Set the observation post on the switch where the destined end host is connected.
post /diag/observations.
Note
An alert is generated for an operation such as setting or removing an observation post.
These alerts can be viewed by using the Alert Log in the controller GUI.
Destination end host ( 00:00:00:00:00:05 ) is connected to switch having dpid as
00:00:00:00:00:00:00:01 . Set up an observation post here using below json as request parameter
{"observation": {
"dpid": "00:00:00:00:00:00:00:01", // connected switch from /nodes
"packet_uid": "2096432597" //uid from the create /register packet .
}
}
output -
{
"observation": {
"dpid": "00:00:00:00:00:00:00:01",
"packet_uid": " 2096432597"
}
}
5. Inject the packet onto the network
post /diag/packets/{packet_uid}/action
Use the above URI for generating the packet on to the network.
Parameters:
packet_uid 2096432597 //uid from the create /register packet .
output -
Response Body: 2096432597
Response Code: 200
6. Query the observation post
get /diag/observations
parameters :
packet_uid 2096432597 //uid from the create /register packet .
Output:
{
"observations": [
{