Skip to content

Commit 98f3908

Browse files
brmcdougKarthik Kumaravel
authored andcommitted
Get oper snips (#15)
* added some get-oper json snips to examples/json/ * adding cpu and interface stats * added some fib items to json folder * added some interface and rib json files * cleanup commits * added a number of json files for fretta dpa hw stats * Delete s0_1.json
1 parent f60bf75 commit 98f3908

File tree

39 files changed

+1033
-1
lines changed

39 files changed

+1033
-1
lines changed

examples/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""
23
GRPC Client with command line options
34
@@ -37,7 +38,7 @@ def main():
3738
password = arguments['<password>']
3839
RPC = arguments['<rpc>']
3940

40-
client = CiscoGRPCClient(IP, TCP_PORT, 10, user, password)
41+
client = CiscoGRPCClient(IP, TCP_PORT, 600, user, password)
4142

4243
if RPC == "get-oper":
4344

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"asic-statistics": {
9+
}
10+
}
11+
]
12+
}
13+
}
14+
}
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"asic-statistics": {
9+
"asic-statistics-detail-for-npu-ids": {
10+
}
11+
}
12+
}
13+
]
14+
}
15+
}
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"asic-statistics": {
9+
"asic-statistics-for-npu-ids": {
10+
"asic-statistics-for-npu-id": {
11+
}
12+
}
13+
}
14+
}
15+
]
16+
}
17+
}
18+
}
19+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"hw-resources-datas": {
9+
"hw-resources-data": [
10+
{
11+
"resource": "encap",
12+
"resource-id": {
13+
},
14+
"name": "encap",
15+
"num-npus": {
16+
},
17+
"npu-hwr": {
18+
}
19+
}
20+
]
21+
}
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"hw-resources-datas": {
9+
"hw-resources-data": [
10+
{
11+
"resource": "lem",
12+
"resource-id": {
13+
},
14+
"name": "lem",
15+
"num-npus": {
16+
},
17+
"npu-hwr": {
18+
}
19+
}
20+
]
21+
}
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"hw-resources-datas": {
9+
"hw-resources-data": [
10+
{
11+
"resource": "lpm",
12+
"resource-id": {
13+
},
14+
"name": "lpm",
15+
"num-npus": {
16+
},
17+
"npu-hwr": {
18+
}
19+
}
20+
]
21+
}
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-hw-resources-oper:dpa": {
3+
"stats": {
4+
"nodes": {
5+
"node": {
6+
}
7+
}
8+
}
9+
}
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-resources-oper:dpa": {
3+
"resources": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"table-datas": {
9+
"table-data": [
10+
{
11+
"resource": {
12+
},
13+
"table-id": {
14+
},
15+
"name": "ip6acl",
16+
"is-global": {
17+
},
18+
"num-npus": {
19+
},
20+
"npu-tblr": {
21+
}
22+
}
23+
]
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Cisco-IOS-XR-fretta-bcm-dpa-resources-oper:dpa": {
3+
"resources": {
4+
"nodes": {
5+
"node": [
6+
{
7+
"node-name": "0/0/CPU0",
8+
"table-datas": {
9+
"table-data": [
10+
{
11+
"resource": {
12+
},
13+
"table-id": {
14+
},
15+
"name": "ip6nh",
16+
"is-global": {
17+
},
18+
"num-npus": {
19+
},
20+
"npu-tblr": {
21+
}
22+
}
23+
]
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)