blob: ac95238747ed70d5ab97026ac30760503ed60208 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001class NEC:
2 def __init__( self ):
3 self.prompt = '(.*)'
Jon Hall4ba53f02015-07-29 13:07:41 -07004 self.timeout = 60
adminbae64d82013-08-01 10:50:15 -07005
6 def show(self, *options, **def_args ):
7 '''Possible Options :[' access-filter ', ' accounting ', ' acknowledgments ', ' auto-config ', ' axrp ', ' cfm ', ' channel-group ', ' clock ', ' config-lock-status ', ' cpu ', ' dhcp ', ' dot1x ', ' dumpfile ', ' efmoam ', ' environment ', ' file ', ' flash ', ' gsrp ', ' history ', ' igmp-snooping ', ' interfaces ', ' ip ', ' ip-dual ', ' ipv6-dhcp ', ' license ', ' lldp ', ' logging ', ' loop-detection ', ' mac-address-table ', ' mc ', ' memory ', ' mld-snooping ', ' netconf ', ' netstat ', ' ntp ', ' oadp ', ' openflow ', ' port ', ' power ', ' processes ', ' qos ', ' qos-flow ', ' sessions ', ' sflow ', ' spanning-tree ', ' ssh ', ' system ', ' tcpdump ', ' tech-support ', ' track ', ' version ', ' vlan ', ' vrrpstatus ', ' whoami ']'''
8 arguments= ''
9 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070010 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070011 prompt = def_args.setdefault('prompt',self.prompt)
12 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070013 self.execute( cmd= "show "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070014 return main.TRUE
15
16 def show_ip(self, *options, **def_args ):
17 '''Possible Options :[]'''
18 arguments= ''
19 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070020 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070021 prompt = def_args.setdefault('prompt',self.prompt)
22 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070023 self.execute( cmd= "show ip "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070024 return main.TRUE
25
26 def show_mc(self, *options, **def_args ):
27 '''Possible Options :[]'''
28 arguments= ''
29 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070030 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070031 prompt = def_args.setdefault('prompt',self.prompt)
32 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070033 self.execute( cmd= "show mc "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070034 return main.TRUE
35
36 def show_cfm(self, *options, **def_args ):
37 '''Possible Options :[]'''
38 arguments= ''
39 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070040 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070041 prompt = def_args.setdefault('prompt',self.prompt)
42 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070043 self.execute( cmd= "show cfm "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070044 return main.TRUE
45
46 def show_ntp(self, *options, **def_args ):
47 '''Possible Options :[]'''
48 arguments= ''
49 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070050 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070051 prompt = def_args.setdefault('prompt',self.prompt)
52 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070053 self.execute( cmd= "show ntp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070054 return main.TRUE
55
56 def show_ssh(self, *options, **def_args ):
57 '''Possible Options :[]'''
58 arguments= ''
59 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070060 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070061 prompt = def_args.setdefault('prompt',self.prompt)
62 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070063 self.execute( cmd= "show ssh "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070064 return main.TRUE
65
66 def show_qos(self, *options, **def_args ):
67 '''Possible Options :[]'''
68 arguments= ''
69 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070070 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070071 prompt = def_args.setdefault('prompt',self.prompt)
72 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070073 self.execute( cmd= "show qos "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070074 return main.TRUE
75
76 def show_cpu(self, *options, **def_args ):
77 '''Possible Options :[]'''
78 arguments= ''
79 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070080 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070081 prompt = def_args.setdefault('prompt',self.prompt)
82 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070083 self.execute( cmd= "show cpu "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070084 return main.TRUE
85
86 def show_vlan(self, *options, **def_args ):
87 '''Possible Options :[]'''
88 arguments= ''
89 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070090 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070091 prompt = def_args.setdefault('prompt',self.prompt)
92 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070093 self.execute( cmd= "show vlan "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070094 return main.TRUE
95
96 def show_lldp(self, *options, **def_args ):
97 '''Possible Options :[]'''
98 arguments= ''
99 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700100 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700101 prompt = def_args.setdefault('prompt',self.prompt)
102 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700103 self.execute( cmd= "show lldp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700104 return main.TRUE
105
106 def show_dhcp(self, *options, **def_args ):
107 '''Possible Options :[]'''
108 arguments= ''
109 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700110 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700111 prompt = def_args.setdefault('prompt',self.prompt)
112 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700113 self.execute( cmd= "show dhcp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700114 return main.TRUE
115
116 def show_axrp(self, *options, **def_args ):
117 '''Possible Options :[]'''
118 arguments= ''
119 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700120 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700121 prompt = def_args.setdefault('prompt',self.prompt)
122 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700123 self.execute( cmd= "show axrp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700124 return main.TRUE
125
126 def show_oadp(self, *options, **def_args ):
127 '''Possible Options :[]'''
128 arguments= ''
129 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700130 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700131 prompt = def_args.setdefault('prompt',self.prompt)
132 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700133 self.execute( cmd= "show oadp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700134 return main.TRUE
135
136 def show_gsrp(self, *options, **def_args ):
137 '''Possible Options :[]'''
138 arguments= ''
139 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700140 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700141 prompt = def_args.setdefault('prompt',self.prompt)
142 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700143 self.execute( cmd= "show gsrp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700144 return main.TRUE
145
146 def show_port(self, *options, **def_args ):
147 '''Possible Options :[]'''
148 arguments= ''
149 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700150 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700151 prompt = def_args.setdefault('prompt',self.prompt)
152 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700153 self.execute( cmd= "show port "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700154 return main.TRUE
155
156 def show_file(self, *options, **def_args ):
157 '''Possible Options :[]'''
158 arguments= ''
159 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700160 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700161 prompt = def_args.setdefault('prompt',self.prompt)
162 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700163 self.execute( cmd= "show file "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700164 return main.TRUE
165
166 def show_power(self, *options, **def_args ):
167 '''Possible Options :[]'''
168 arguments= ''
169 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700170 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700171 prompt = def_args.setdefault('prompt',self.prompt)
172 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700173 self.execute( cmd= "show power "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700174 return main.TRUE
175
176 def show_clock(self, *options, **def_args ):
177 '''Possible Options :[]'''
178 arguments= ''
179 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700180 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700181 prompt = def_args.setdefault('prompt',self.prompt)
182 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700183 self.execute( cmd= "show clock "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700184 return main.TRUE
185
186 def show_dot1x(self, *options, **def_args ):
187 '''Possible Options :[]'''
188 arguments= ''
189 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700190 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700191 prompt = def_args.setdefault('prompt',self.prompt)
192 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700193 self.execute( cmd= "show dot1x "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700194 return main.TRUE
195
196 def show_sflow(self, *options, **def_args ):
197 '''Possible Options :[]'''
198 arguments= ''
199 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700200 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700201 prompt = def_args.setdefault('prompt',self.prompt)
202 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700203 self.execute( cmd= "show sflow "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700204 return main.TRUE
205
206 def show_track(self, *options, **def_args ):
207 '''Possible Options :[]'''
208 arguments= ''
209 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700210 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700211 prompt = def_args.setdefault('prompt',self.prompt)
212 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700213 self.execute( cmd= "show track "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700214 return main.TRUE
215
216 def show_flash(self, *options, **def_args ):
217 '''Possible Options :[]'''
218 arguments= ''
219 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700220 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700221 prompt = def_args.setdefault('prompt',self.prompt)
222 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700223 self.execute( cmd= "show flash "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700224 return main.TRUE
225
226 def show_system(self, *options, **def_args ):
227 '''Possible Options :[]'''
228 arguments= ''
229 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700230 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700231 prompt = def_args.setdefault('prompt',self.prompt)
232 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700233 self.execute( cmd= "show system "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700234 return main.TRUE
235
236 def show_whoami(self, *options, **def_args ):
237 '''Possible Options :[]'''
238 arguments= ''
239 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700240 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700241 prompt = def_args.setdefault('prompt',self.prompt)
242 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700243 self.execute( cmd= "show whoami "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700244 return main.TRUE
245
246 def show_efmoam(self, *options, **def_args ):
247 '''Possible Options :[]'''
248 arguments= ''
249 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700250 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700251 prompt = def_args.setdefault('prompt',self.prompt)
252 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700253 self.execute( cmd= "show efmoam "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700254 return main.TRUE
255
256 def show_memory(self, *options, **def_args ):
257 '''Possible Options :[]'''
258 arguments= ''
259 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700260 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700261 prompt = def_args.setdefault('prompt',self.prompt)
262 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700263 self.execute( cmd= "show memory "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700264 return main.TRUE
265
266 def show_tcpdump(self, *options, **def_args ):
267 '''Possible Options :[]'''
268 arguments= ''
269 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700270 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700271 prompt = def_args.setdefault('prompt',self.prompt)
272 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700273 self.execute( cmd= "show tcpdump "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700274 return main.TRUE
275
276 def show_history(self, *options, **def_args ):
277 '''Possible Options :[]'''
278 arguments= ''
279 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700280 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700281 prompt = def_args.setdefault('prompt',self.prompt)
282 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700283 self.execute( cmd= "show history "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700284 return main.TRUE
285
286 def show_logging(self, *options, **def_args ):
287 '''Possible Options :[]'''
288 arguments= ''
289 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700290 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700291 prompt = def_args.setdefault('prompt',self.prompt)
292 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700293 self.execute( cmd= "show logging "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700294 return main.TRUE
295
296 def show_license(self, *options, **def_args ):
297 '''Possible Options :[]'''
298 arguments= ''
299 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700300 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700301 prompt = def_args.setdefault('prompt',self.prompt)
302 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700303 self.execute( cmd= "show license "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700304 return main.TRUE
305
306 def show_netstat(self, *options, **def_args ):
307 '''Possible Options :[]'''
308 arguments= ''
309 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700310 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700311 prompt = def_args.setdefault('prompt',self.prompt)
312 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700313 self.execute( cmd= "show netstat "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700314 return main.TRUE
315
316 def show_version(self, *options, **def_args ):
317 '''Possible Options :[]'''
318 arguments= ''
319 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700320 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700321 prompt = def_args.setdefault('prompt',self.prompt)
322 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700323 self.execute( cmd= "show version "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700324 return main.TRUE
325
326 def show_netconf(self, *options, **def_args ):
327 '''Possible Options :[]'''
328 arguments= ''
329 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700330 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700331 prompt = def_args.setdefault('prompt',self.prompt)
332 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700333 self.execute( cmd= "show netconf "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700334 return main.TRUE
335
336 def show_ipdual(self, *options, **def_args ):
337 '''Possible Options :[]'''
338 arguments= ''
339 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700340 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700341 prompt = def_args.setdefault('prompt',self.prompt)
342 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700343 self.execute( cmd= "show ip-dual "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700344 return main.TRUE
345
346 def show_sessions(self, *options, **def_args ):
347 '''Possible Options :[]'''
348 arguments= ''
349 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700350 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700351 prompt = def_args.setdefault('prompt',self.prompt)
352 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700353 self.execute( cmd= "show sessions "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700354 return main.TRUE
355
356 def show_qosflow(self, *options, **def_args ):
357 '''Possible Options :[]'''
358 arguments= ''
359 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700360 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700361 prompt = def_args.setdefault('prompt',self.prompt)
362 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700363 self.execute( cmd= "show qos-flow "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700364 return main.TRUE
365
366 def show_openflow(self, *options, **def_args ):
367 '''Possible Options :[]'''
368 arguments= ''
369 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700370 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700371 prompt = def_args.setdefault('prompt',self.prompt)
372 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700373 self.execute( cmd= "show openflow "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700374 return main.TRUE
375
376 def show_dumpfile(self, *options, **def_args ):
377 '''Possible Options :[]'''
378 arguments= ''
379 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700380 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700381 prompt = def_args.setdefault('prompt',self.prompt)
382 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700383 self.execute( cmd= "show dumpfile "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700384 return main.TRUE
385
386 def show_ipv6dhcp(self, *options, **def_args ):
387 '''Possible Options :[]'''
388 arguments= ''
389 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700390 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700391 prompt = def_args.setdefault('prompt',self.prompt)
392 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700393 self.execute( cmd= "show ipv6-dhcp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700394 return main.TRUE
395
396 def show_processes(self, *options, **def_args ):
397 '''Possible Options :[]'''
398 arguments= ''
399 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700400 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700401 prompt = def_args.setdefault('prompt',self.prompt)
402 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700403 self.execute( cmd= "show processes "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700404 return main.TRUE
405
406 def show_vrrpstatus(self, *options, **def_args ):
407 '''Possible Options :[]'''
408 arguments= ''
409 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700410 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700411 prompt = def_args.setdefault('prompt',self.prompt)
412 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700413 self.execute( cmd= "show vrrpstatus "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700414 return main.TRUE
415
416 def show_interfaces(self, *options, **def_args ):
417 '''Possible Options :[]'''
418 arguments= ''
419 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700420 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700421 prompt = def_args.setdefault('prompt',self.prompt)
422 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700423 self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700424 return main.TRUE
425
426 def show_environment(self, *options, **def_args ):
427 '''Possible Options :[]'''
428 arguments= ''
429 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700430 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700431 prompt = def_args.setdefault('prompt',self.prompt)
432 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700433 self.execute( cmd= "show environment "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700434 return main.TRUE
435
436 def show_autoconfig(self, *options, **def_args ):
437 '''Possible Options :[]'''
438 arguments= ''
439 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700440 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700441 prompt = def_args.setdefault('prompt',self.prompt)
442 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700443 self.execute( cmd= "show auto-config "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700444 return main.TRUE
445
446 def show_techsupport(self, *options, **def_args ):
447 '''Possible Options :[]'''
448 arguments= ''
449 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700450 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700451 prompt = def_args.setdefault('prompt',self.prompt)
452 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700453 self.execute( cmd= "show tech-support "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700454 return main.TRUE
455
456 def show_mldsnooping(self, *options, **def_args ):
457 '''Possible Options :[]'''
458 arguments= ''
459 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700460 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700461 prompt = def_args.setdefault('prompt',self.prompt)
462 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700463 self.execute( cmd= "show mld-snooping "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700464 return main.TRUE
465
466 def show_igmpsnooping(self, *options, **def_args ):
467 '''Possible Options :[]'''
468 arguments= ''
469 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700470 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700471 prompt = def_args.setdefault('prompt',self.prompt)
472 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700473 self.execute( cmd= "show igmp-snooping "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700474 return main.TRUE
475
476 def show_channelgroup(self, *options, **def_args ):
477 '''Possible Options :[]'''
478 arguments= ''
479 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700480 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700481 prompt = def_args.setdefault('prompt',self.prompt)
482 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700483 self.execute( cmd= "show channel-group "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700484 return main.TRUE
485
486 def show_spanningtree(self, *options, **def_args ):
487 '''Possible Options :[]'''
488 arguments= ''
489 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700490 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700491 prompt = def_args.setdefault('prompt',self.prompt)
492 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700493 self.execute( cmd= "show spanning-tree "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700494 return main.TRUE
495
496 def show_loopdetection(self, *options, **def_args ):
497 '''Possible Options :[]'''
498 arguments= ''
499 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700500 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700501 prompt = def_args.setdefault('prompt',self.prompt)
502 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700503 self.execute( cmd= "show loop-detection "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700504 return main.TRUE
505
506 def show_acknowledgments(self, *options, **def_args ):
507 '''Possible Options :[' interface ']'''
508 arguments= ''
509 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700510 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700511 prompt = def_args.setdefault('prompt',self.prompt)
512 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700513 self.execute( cmd= "show acknowledgments "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700514 return main.TRUE
515
516 def show_macaddresstable(self, *options, **def_args ):
517 '''Possible Options :[]'''
518 arguments= ''
519 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700520 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700521 prompt = def_args.setdefault('prompt',self.prompt)
522 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700523 self.execute( cmd= "show mac-address-table "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700524 return main.TRUE
525
526 def show_configlockstatus(self, *options, **def_args ):
527 '''Possible Options :[]'''
528 arguments= ''
529 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700530 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700531 prompt = def_args.setdefault('prompt',self.prompt)
532 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700533 self.execute( cmd= "show config-lock-status "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700534 return main.TRUE
535
536 def show_acknowledgments_interface(self, *options, **def_args ):
537 '''Possible Options :[]'''
538 arguments= ''
539 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -0700540 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700541 prompt = def_args.setdefault('prompt',self.prompt)
542 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700543 self.execute( cmd= "show acknowledgments interface "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700544 return main.TRUE
545