No CAM Policy Data is seen in DX Netops 20.2.x Performance Management from DX Netops Virtual Network Assurance (VNA) ACI Plugin
Release : 20.2
Component : Virtual Network Assurance For CA Performance Management
Make sure the user used in the configuration has the appropriate permissions to retrieve the needed data via REST.
Directly accessing the rest interface as noted below shows the APIC host is not returning data for CAM policy statistics as the user configured in the ACI plugin configuration.
1) Create a file named /tmp/login.json with the login contents:
{
"aaaUser" : {
"attributes" : {
"name" : "username",
"pwd" : "password"
}
}
}
Replace username and password accordingly
2) Get the login token/cookie and write it to cookies.txt:
curl -vk -c /tmp/cookies.txt -X POST -H 'Content-Type: application/json' [email protected]/tmp/login.json ${PROTOCOL}://${APIC_HOST_IP}/api/aaaLogin.json
Replace: ${PROTOCOL} and ${APIC_HOST_IP} accordingly with the values form your config.
Example:
curl -vk -c /tmp/cookies.txt -X POST -H 'Content-Type: application/json' [email protected]/tmp/login.json https://10.10.10.1/api/api/aaaLogin.json
3) Do the rest call that would normally collect the CAM policy data:
curl -vk -b /tmp/cookies.txt -X GET -H 'Accept: application/json' '${PROTOCOL}://${APIC_HOST_IP}/api/class/eqptcapacityEntity.json?rsp-subtree-include=stats&rsp-subtree-class=eqptcapacityPolUsage5min' -o /tmp/policy.json
Replace: ${PROTOCOL} and ${APIC_HOST_IP} accordingly with the values from your config.
Example:
curl -vk -b /tmp/cookies.txt -X GET -H 'Accept: application/json' 'https://10.10.10.1/api/class/eqptcapacityEntity.json?rsp-subtree-include=stats&rsp-subtree-class=eqptcapacityPolUsage5min' -o /tmp/policy.txt
This should output a file named policy.json with the output returned from the APIC
Doing the same request as the admin user returns data.