-
Notifications
You must be signed in to change notification settings - Fork 16
/
c9300-grpc-onchange-examples.cfg
225 lines (210 loc) · 8.56 KB
/
c9300-grpc-onchange-examples.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
##################################
# Example on-change notification #
##################################
no telemetry ietf subscription 101
telemetry ietf subscription 101
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:ospf-neighbor-state-change
source-address 11.13.2.76
source-vrf Mgmt-vrf
stream yang-notif-native
update-policy on-change
receiver ip address 11.20.9.32 57600 protocol grpc-tcp
##################################
# Example on-change notification #
# IOS XE configuration changes #
##################################
telemetry ietf subscription 102
encoding encode-kvgpb
filter xpath /ios:native
stream yang-push
update-policy on-change
receiver ip address 10.1.1.3 57500 protocol grpc-tcp
##################################
# Example notification: #
##################################
Cisco-IOS-XE-ios-events-oper:ospf-neighbor-state-change,host=jcohoe-ubuntu,source=Nyquist-9300,subscription=102 if_addr="66.222.222.14",ospf_new_state="ospf-nbr-down",severity_level="major",host_name="Nyquist-9300",system_ip="0.0.0.0",vrf_name="0",neighbor="66.222.222.13",router_id="67.7.7.7" 1569350366344000000
Cisco-IOS-XE-ios-events-oper:ospf-neighbor-state-change,host=jcohoe-ubuntu,source=Nyquist-9300,subscription=102 router_id="67.7.7.7",if_addr="66.222.222.14",ospf_new_state="ospf-nbr-full",severity_level="major",host_name="Nyquist-9300",system_ip="0.0.0.0",vrf_name="0",neighbor="66.222.222.13" 1569350388582000000
Cisco-IOS-XE-ios-events-oper:ospf-neighbor-state-change,host=jcohoe-ubuntu,source=Nyquist-9300,subscription=102 neighbor="66.222.222.13",router_id="67.7.7.7",if_addr="66.222.222.14",ospf_new_state="ospf-nbr-exstart",severity_level="major",host_name="Nyquist-9300",system_ip="13.222.222.66",vrf_name="0" 1569350388580000000
######################################
# Common xpath filters: #
######################################
filter xpath /ios-events-ios-xe-oper:ospf-neighbor-state-change
filter xpath /ios:native
filter xpath /ios-events-ios-xe-oper:bgp-peer-state-change
filter xpath /ios-events-ios-xe-oper:ospf-neighbor-state-change
filter xpath /ios-events-ios-xe-oper:ospf-interface-state-change
filter xpath /ios-events-ios-xe-oper:interface-state-change
filter xpath /ios-events-ios-xe-oper:memory-usage
filter xpath /ios-events-ios-xe-oper:cpu-usage
filter xpath /ios-events-ios-xe-oper:interface-admin-state-change
filter xpath /ios-events-ios-xe-oper:sdcard-fault
filter xpath /ios-events-ios-xe-oper:system-reboot-complete
filter xpath /ios-events-ios-xe-oper:system-reboot-issued
filter xpath /ios-events-ios-xe-oper:flash-fault
filter xpath /ios-events-ios-xe-oper:system-login-change
filter xpath /ios-events-ios-xe-oper:system-logout-change
filter xpath /ios-events-ios-xe-oper:tempsensor-fault
filter xpath /ios-events-ios-xe-oper:disk-usage
filter xpath /ios-events-ios-xe-oper:usb-state-change
filter xpath /ios-events-ios-xe-oper:sfp-state-change
filter xpath /ios-events-ios-xe-oper:sfp-support-state
filter xpath /ios-events-ios-xe-oper:fantray-fault
filter xpath /ios-events-ios-xe-oper:fan-fault
filter xpath /ios-events-ios-xe-oper:tempsensor-state
JCOHOE-C9300#show run | sec tel
netconf-yang
telemetry ietf subscription 108
encoding encode-kvgpb
filter xpath /tcam-ios-xe-oper:tcam-details/tcam-detail/tcam-entries-used
source-address 10.85.134.65
stream yang-push
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 200
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:bgp-peer-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 201
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:ospf-neighbor-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 202
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:ospf-interface-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 203
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:interface-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 204
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:memory-usage
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 205
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:cpu-usage
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 206
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:interface-admin-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 207
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:sdcard-fault
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 208
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:system-reboot-complete
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 209
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:system-reboot-issued
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 210
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:flash-fault
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 211
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:system-login-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 212
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:system-logout-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 213
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:tempsensor-fault
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 214
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:disk-usage
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 215
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:usb-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 216
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:sfp-state-change
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 217
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:sfp-support-state
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 218
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:fantray-fault
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 219
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:fan-fault
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp
telemetry ietf subscription 220
encoding encode-kvgpb
filter xpath /ios-events-ios-xe-oper:tempsensor-state
source-address 10.85.134.65
stream yang-notif-native
update-policy on-change
receiver ip address 10.85.134.110 57500 protocol grpc-tcp