Cisco ASR 5000 Series Administration Manual page 460

Staros release 21.4
Hide thumbs Also See for ASR 5000 Series:
Table of Contents

Advertisement

Bulkstats
Event notification level
SNMP notifications
REST interface authentication
REST interface certificate
REST interface host name
Interface
----------------------------------------------
NETCONF
REST
Bulkstats Configuration
See below for a sample bulkstats configuration:
[local]<host_name># show config bulkstats
config
bulkstats collection
bulkstats mode
#exit
End
Force Bulkstats Collection
See below for a sample to force statistics to be collected and pushed to the operational database for ConfD:
[local]<host_name># bulkstats force gather
Notes:
• Statistics will generally be pushed per collection interval timer configured for bulkstats.
Using Curl to Read Statistics
See below for a sample use of curl to read statistics via the server ConfD RESTful interface:
[<user>@server] ]$ curl -u admin:pswd!
https://rtp-mitg-si06.cisco.com:234/api/operational/bulkstats-operational?deep --cert
/users/<user>/ssl_cert/client_cert/client.crt --key
/users/<user>/ssl_cert/client_cert/client.key --cacert
/users/<user>/ssl_cert/root_cert/rootCA.pem
<bulkstats-operational xmlns="http://www.cisco.com/staros-bulkstats"
xmlns:y="http://tail-f.com/ns/rest"
xmlns:staros_bulkstats="http://www.cisco.com/staros-bulkstats">
<file>
<number>1</number>
<schemas>
ASR 5500 System Administration Guide, StarOS Release 21.4
428
Status
Enabled
Enabled
file 1
schema common format %uptime%,%host%,%ipaddr%
#exit
file 2
schema system format %uptime%,%host%,%ipaddr%
#exit
<schema>system</schema>
<names>
<name>common</name>
<key_ids>
<key_id>none</key_id>
<variable>
<name>host</name>
<value><host_name></value>
</variable>
<variable>
<name>ipaddr</name>
<value>1.2.3.4</value>
</variable>
<variable>
<name>uptime</name>
<value>5781</value>
Disabled
Disabled
peer-fail
rest-cert
Not configured
Port
123
234
NETCONF and ConfD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Asr 5500

Table of Contents