Versions Compared

Key

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

The chapter describes how you can get a first overview about a running SDN-R and its features and functionality just using ssh, bash, curl.

...

echo "View supported yang capabilitescapabilities for a seletedsleeted node (device, mountpoint, netconf-server)"
nodeId=<node-id>
odlMountpointsUrl=$baseUrl/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/$nodeId/available-capabilities
curl $login $header $odlMountpointsUrl | python -m json.tool | grep capability\":
echo

...

echo "Show 100 current alarms"
esUrl=$baseUrl/database/sdnevents/faultcurrent/_search
curl --request POST $header -d '{"from":0,"size":100,"query":{"match_all":{}}}' $esUrl | python -m json.tool
echo

Alarm Log

echo "Show 100 alarm logs"

 esUrl=$baseUrl/database/sdnevents/faultlog/_search
curl --request POST $header -d '{"from":0,"size":100,"query":{"match_all":{}}}' $esUrl | python -m json.tool
echo

...