cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
605
Views
0
Helpful
1
Replies

Prime API Statistics Service

Marcel Zehnder
Spotlight
Spotlight

Hi guys

 

Question to the Prime users out there: How to use the statistics API endpoints? Do they actually work? I get kind of no-sense outputs for endpoint-calls like the ones below - does anybody use these successfully? 

 

/webacs/api/v4/op/statisticsService/interface/errors

/webacs/api/v4/op/statisticsService/interface/discards

etc.

 

I basically get a list of "staticEntries" (see below) - but the attributes and values are not really useful or accurate (all counters report 0 values, although I do see output discards on the queried device for the specified time-range on the CLI)? 

 

"statisticEntries": {
                                "statisticEntry": [
                                    {
                                        "attributeName""labelValue1",
                                        "displayName""Label Value 1",
                                        "entryValue""InterfacesInDiscards:0"

                                    },
                                    {
                                       "attributeName""labelValue2",
                                        "displayName""Label Value 2",
                                        "entryValue""InterfacesOutDiscards:0"
                                    },
                                    {
                                        "attributeName""timeStamp",
                                        "displayName""Time Stamp",
                                        "entryValue""1655291119"
                                    }
                                ]
                            }

 

Thanks

Marcel

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee