-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathiosxe_mock_data.yaml
More file actions
1696 lines (1403 loc) · 44.3 KB
/
iosxe_mock_data.yaml
File metadata and controls
1696 lines (1403 loc) · 44.3 KB
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
general_login:
prompt: "Username: "
commands:
"cisco":
new_state: general_password
general_password:
prompt: "Password: "
commands:
"cisco":
new_state: general_exec
general_exec:
prompt: "%N>"
commands: &gen_exec_cmds
"term length 0": ""
"term width 0": ""
"show version | include operating mode" : ""
"show version": &SV |2
Cisco IOS Software, IOS-XE Software (X86_64_LINUX_IOSD-ADVENTERPRISEK9-M), Experimental Version 15.2(20110615:055721) [mcp_dev-BLD-BLD_MCP_DEV_LATEST_20110615_044519-ios 143]
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Wed 15-Jun-11 08:54 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2011 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
ROM: Cisco IOS Software, IOS-XE Software (X86_64_LINUX_IOSD-ADVENTERPRISEK9-M), Experimental Version 15.2(20110615:055721) [mcp_dev-BLD-BLD_MCP_DEV_LATEST_20110615_044519-ios 143]
issu-asr-lns uptime is 1 hour, 16 minutes
Uptime for this control processor is 1 hour, 17 minutes
System returned to ROM by reload
System image file is "harddisk:/general_image.issu-asr-lns"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
cisco ASR1006 (RP2) processor with 4254354K/6147K bytes of memory.
3 ATM interfaces
32768K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1826815K bytes of eUSB flash at bootflash:.
78085207K bytes of SATA hard disk at harddisk:.
Configuration register is 0x1
"enable":
new_state: enable_password
general_exec_no_password:
prompt: "%N>"
commands:
<<: *gen_exec_cmds
"enable":
new_state: general_enable
enable_password:
prompt: "Password: "
commands:
"cisco":
new_state: general_enable
general_enable:
prompt: "%N#"
commands: &gen_enable_cmds
"start maintenance":
new_state: general_maintence_mode_confirm
"term length 0": ""
"term width 0": ""
"show version | include operating mode" : ""
"show version": *SV
"disable":
new_state: general_exec
"enable": ""
"show version | inc System image file is": |2
System image file is "harddisk:/general_image.issu-asr-lns"
"dir /all /recursive harddisk:/general_image.issu-asr-lns": |2
Directory of harddisk:/general_image.issu-asr-lns
Directory of harddisk:/
21 -rw- 439612520 Mar 22 2017 00:16:56 +00:00 general_image.issu-asr-lns
78704144384 bytes total (72496394240 bytes free)
"config term":
new_state: general_config
"request platform software system shell":
new_state: general_act_reply
"show redundancy sta | in peer": |2
peer state = 8 -STANDBY HOT
"show redundancy sta | inc Redundancy State": |2
Redundancy State = sso
"sh redundancy stat | inc my state": |2
my state = 13 -ACTIVE
"sh redundancy state": |2
my state = 13 -ACTIVE
peer state = 8 -STANDBY HOT
Mode = Duplex
Unit = Primary
Unit ID = 48
Redundancy Mode (Operational) = sso
Redundancy Mode (Configured) = sso
Redundancy State = sso
Maintenance Mode = Disabled
Manual Swact = enabled
Communications = Up
client count = 84
client_notification_TMR = 30000 milliseconds
RF debug mask = 0x0
"redundancy force-switchover":
new_state: enable_general_standby
"reload_config_dialog":
new_state: enable_reload_config_dialog
"reload":
new_state: ha_reload_proceed
"reload1":
new_state: reload_proceed_confirm
"active_install_add":
new_state: install_add_commit
"trim":
"\r\r\r\r\r\ntest
abc\r\r\r\r\r\n
test trim line\r\r\r\r\n
test pass"
"badcommand": "% Bad IP address or host name% Unknown command or computer name, or unable to find computer address"
"guestshell run bash":
new_state: guestshell
"show app-hosting list": |
App id State
------------------------------------------------------
guestshell RUNNING
"show iox-service": |
IOx Infrastructure Summary:
---------------------------
IOx service (CAF) : Running
IOx service (HA) : Running
IOx service (IOxman) : Not Ready
IOx service (Sec storage) : Running
Libvirtd 5.5.0 : Running
Dockerd 18.03.0 : Running
Sync Status : Disabled
"guestshell enable": |
Interface will be selected if configured in app-hosting
Please wait for completion
Guestshell enabled successfully
"show tcp brief | inc .22 |.23": |
0160C06C 127.0.0.1.22 127.0.0.1.51363 ESTAB
"show tcp brief | inc .22 |.23 ": |
0160C06C 127.0.0.1.22 127.0.0.1.51363 ESTAB
"copy ftp://myftpserver/myimage.bin flash:/": ""
"dir": |
Directory of flash:/
52429131 Apr 05 08:53:17 2021 test.txt
11353194496 bytes total (1055051776 bytes free)
"show archive": ""
"show policy-map interface tenGigabitEthernet 2/0/11": |
TenGigabitEthernet2/0/11
Service-policy input: set-exp
Class-map: dscp-cs1 (match-all)
0 packets
Match: dscp cs1 (8)
QoS Set
mpls experimental imposition 1
Class-map: class-default (match-any)
32589133 packets
Match: any
"show ip interface brief": |
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 127.0.0.1 YES other up up
GigabitEthernet0/0/1 10.174.10.1 YES other up up
GigabitEthernet0/0/2 10.64.10.1 YES other up up
"copy http://myftpserver/myimage.bin flash:/": ""
"show running-config | include ip http client source-interface": |
ip http client source-interface GigabitEthernet0/0/1
"show running-config": ""
"copy running-config nvram:startup-config": ""
"write memory": ""
"tclsh":
new_state: tclsh
"long_hostname":
new_state: general_enable_long_hostname
"delete /force flash:CRFT_*": ""
"dir flash:CRFT_*": |
Directory of flash:/CRFT_*
No such file
11353194496 bytes total (1055051776 bytes free)
"dir flash:BTRACE_*": |
Directory of flash:/BTRACE_*
No such file
11353194496 bytes total (1055051776 bytes free)
"dir flash:/CRFT_*":
response:
- |
Directory of flash:/CRFT_*
34 -rw- 537450 Dec 22 2021 07:05:46 +00:00 CRFT__U1__000001__C8000V_2021-12-22_07-05-46.tar.gz
11353194496 bytes total (1055051776 bytes free)
- |
Directory of flash:/CRFT_*
No such file
11353194496 bytes total (1055051776 bytes free)
"dir flash:/BTRACE_*": |
Directory of flash:/BTRACE_*
No such file
11353194496 bytes total (1055051776 bytes free)
"show ntp associations":
response:
- |2
address ref clock st when poll reach delay offset disp
*~127.127.1.1 .LOCL. 0 6 16 377 0.000 0.000 1.204
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
- |2
address ref clock st when poll reach delay offset disp
*~127.127.1.1 .LOCL. 0 6 16 377 0.000 0.000 1.204
~10.1.1.1 .INIT. 16 - 1024 0 0.000 0.000 15937.
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
"request platform software system shell switch standby rp active":
new_state: bash_console_switch_standby_rp_active
"show log | in BOOTTIME": "*Sep 22 14:46:00.419: %SYS-6-BOOTTIME: Time taken to reboot after reload = 417 seconds"
"show log | in PLATFORM_SYS-6-UPTIME": "%PLATFORM_SYS-6-UPTIME: Time taken to initialize system = 364 seconds"
"copy test.cfg running-config": |
Failed to generate persistent self-signed certificate.
Secure server will use temporary self-signed certificate.
Default AP group (default-group) is not configurable.
4177 bytes copied in 0.160 secs (26106 bytes/sec)
"request platform software system shell chassis active r0":
new_state: bash_console_chassis_active_r0
"request platform software system shell chassis standby r0":
new_state: bash_console_chassis_standby_r0
"copy somefile.bin flash:":
new_state: confirm_abort_copy
"set platform software selinux permissive": ""
"set platform software selinux default": ""
general_maintence_mode_confirm:
prompt: "Template default will be applied. Do you want to continue?[confirm] "
commands:
"":
new_state: general_maintenance_mode1
general_maintenance_mode1:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode2
general_maintenance_mode2:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode
general_maintenance_mode:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"help": "help"
"stop maintenance":
new_state: general_maintenance_mode_stop
general_maintenance_mode_stop:
prompt: "WARNING: Please check configured protocol peer status first. If all peers are not fully up and established, GIR may declare a timeout and extend the maintenance window. Do you want to continue?[y/n]? [yes]: "
commands:
"yes":
new_state: general_maintenance_mode_stop1
general_maintenance_mode_stop1:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode_stop2
general_maintenance_mode_stop2:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_enable
general_maintence_mode_confirm:
prompt: "Template default will be applied. Do you want to continue?[confirm] "
commands:
"":
new_state: general_maintenance_mode1
general_maintenance_mode1:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode2
general_maintenance_mode2:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode
general_maintenance_mode:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"help": "help"
"stop maintenance":
new_state: general_maintenance_mode_stop
general_maintenance_mode_stop:
prompt: "WARNING: Please check configured protocol peer status first. If all peers are not fully up and established, GIR may declare a timeout and extend the maintenance window. Do you want to continue?[y/n]? [yes]: "
commands:
"yes":
new_state: general_maintenance_mode_stop1
general_maintenance_mode_stop1:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_maintenance_mode_stop2
general_maintenance_mode_stop2:
prompt: "%N(maint-mode)#"
commands:
<<: *gen_enable_cmds
"":
new_state: general_enable
general_config:
prompt: "%N(conf)#"
commands: &general_config_cmds
"!end indicator for bulk configure": ""
"config-register 0x2102": ""
"archive": ""
"do-exec archive config": ""
"ip ftp source-interface GigabitEthernet0/0/0": ""
"ip http client source-interface GigabitEthernet0/0/0": ""
"ip http client source-interface GigabitEthernet0/0/1": ""
"no ip http client source-interface GigabitEthernet0/0/0": ""
"end":
new_state: general_enable
"crypto pki profile enrollment test":
new_state: general_config_ca_profile
"crypto pki trustpoint test":
new_state: general_config_crypto_trustpoint
"no logging console": ""
"line vty 0 4":
new_state: general_config_line
"line console 0":
new_state: general_config_line
"redundancy":
new_state: config_general_redundancy
"crypto key generate rsa general-keys modulus 2048 label ca": |
crypto key generate rsa general-keys modulus 2048 label ca
% You already have RSA keys defined named ca.
% They will be replaced.
% The key modulus size is 2048 bits
% Generating 2048 bit RSA keys, keys will be non-exportable...
[OK] (elapsed time was 2 seconds)
"crypto pki server ca":
new_state: config_general_server
"crypto gkm group g1":
new_state: iosxe_config_1
"crypto pki certificate chain SLA-TrustPoint":
new_state: config-cert-chain
"ntp server vrf foo 1.2.3.4": "% IP routing table foo does not exist"
"iox": ""
"app-hosting appid guestshell": ""
"app-vnic management guest-interface 0": ""
"service internal": ""
"ntp server 10.1.1.1": ""
"ip host-list host1":
new_state: config_host_list
"macro auto execute TEST {":
new_state: macro_prompt_brace
"wsma agent exec":
new_state: wsma_agent
wsma_agent:
prompt: "%N(wsma-exec-agent)#"
commands:
"exit":
general_config
"end":
new_state: general_enable
macro_prompt_brace:
prompt: "{..} >"
keys:
ctrl-c:
new_state: general_config
commands:
"}":
new_state: general_config
"if [[ $LINKUP == YES ]]":
new_state: macro_prompt_then_else_fi
macro_prompt_then_else_fi:
prompt: "then.else.fi>"
commands:
"then conf t": ""
"end": ""
"fi":
new_state: macro_prompt_brace
config_host_list:
prompt: "%N(host-list)#"
commands:
"end":
new_state: general_enable
general_config_line:
prompt: "%N(config-line)#"
commands:
"exec-timeout 0": ""
"line vty 0 4": ""
"end":
new_state: general_enable
config_general_redundancy:
prompt: "%N(config-red)#"
commands:
"main-cpu":
new_state: config_general_redundancy_main_cpu
"end":
new_state: general_enable
config_general_server:
prompt: "%N(cs-server)#"
commands:
"grant auto": |
grant auto
% The CS config is locked because it is busy or enabled. You need to shut the server off before changing its configuration.
"hash sha256": |
hash sha256
% The CS config is locked because it is busy or enabled. You need to shut the server off before changing its configuration.
"lifetime ca-certificate 3650": |
lifetime ca-certificate 3650
% The CS config is locked because it is busy or enabled. You need to shut the server off before changing its configuration.
"lifetime certificate 3650": |
lifetime certificate 3650
% The CS config is locked because it is busy or enabled. You need to shut the server off before changing its configuration.
"database archive pkcs12 password 0 cisco123": |
database archive pkcs12 password 0 cisco123
% The CS config is locked because it is busy or enabled. You need to shut the server off before changing its configuration.
"no shutdown": |
no shutdown
Certificate server 'no shut' event has been queued for processing.
"end":
new_state: general_enable
config_general_redundancy_main_cpu:
prompt: "%N(config-r-mc)#"
commands:
"standby console enable": ""
"end":
new_state: general_enable
general_config_ca_profile:
prompt: "%N(ca-profile-enroll)#"
commands:
"end":
new_state: general_enable
config-cert-chain:
prompt: "%N(config-cert-chain)#"
commands:
"certificate ca 01":
new_state:
config_pki_hexmode
"end":
new_state:
general_enable
config_pki_hexmode:
prompt: "%N(config-pki-hexmode)#"
commands:
"quit":
new_state:
config-cert-chain
general_bash:
prompt: "[%N_RP_0:/]$"
commands:
"ls -l": |
total 55000
lrwxrwxrwx. 1 root root 7 Sep 10 2024 bin -> usr/bin
drwxr-xr-x. 2 root root 60 Jan 9 20:41 boot
"df /bootflash/": |
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 5974888 3569476 2101900 63% /bootflash
"stty cols 200": ""
"stty rows 200": ""
"exit":
new_state: general_enable
general_act_reply:
prompt: "Are you sure you want to continue? [y/n] "
commands:
"y":
new_state: general_bash
general_config_certificate_map:
prompt: "%N(ca-certificate-map)#"
commands:
"end":
new_state: general_enable
ip_ddns_update_method:
prompt: "%N(DDNS-update-method)#"
commands:
"end":
new_state: general_enable
general_config_crypto_trustpoint:
prompt: "%N(ca-trustpoint)#"
commands:
"no crypto pki trustpoint test":
new_state: are_you_sure_ywtdt
response: |
% Removing an enrolled trustpoint will destroy all certificates
received from the related Certificate Authority.
are_you_sure_ywtdt:
prompt: "Are you sure you want to do this? [yes/no]: "
commands:
"yes":
new_state: general_config
standby_exec:
prompt: "%N-standby# "
commands:
"show version | include operating mode": ""
"cisco": ""
iosxe_config_1:
prompt: "%N(conf)#"
commands:
"identity number 101":
new_state: iosxe_config_2
"end":
new_state: general_enable
iosxe_config_2:
prompt: "%N(config-gkm-group)#"
commands:
"server local":
new_state: iosxe_config_3
"end":
new_state: iosxe_config_1
iosxe_config_3:
prompt: "%N(config-gkm-group)#"
commands:
"end":
new_state: iosxe_config_2
diol_exec:
prompt: "RouterRP> "
commands:
"show version | include operating mode": ""
"enable": ""
diol_enable:
prompt: "RouterRP# "
commands:
"show version | include operating mode": ""
"enable": ""
diol_disable:
prompt: "RouterRP-standby> "
commands:
"show version | include operating mode": ""
"enable": ""
config_with_msgs:
prompt: "%N(config)#"
commands:
"msg":
new_state:
config_msg
"end":
new_state:
enable_with_msgs
config_with_msgs2:
prompt: "%N(config)#"
commands:
"msg":
new_state:
config_msg2
"end":
new_state:
enable_with_msgs2
config_msg:
preface:
timing:
- 0:,0,0.5
response: |
Router(config)#*Jan 27 20:09:17.549: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user1] [Source: LOCAL] [localport: 0] at 20:09:17 UTC Wed Jan 27 2021
*Jan 27 20:09:18.103: %SYS-5-LOG_CONFIG_CHANGE: Console logging disabled
*Jan 27 20:09:18.341: %SYS-5-LOG_CONFIG_CHANGE: Console logging: level debugging, xml disabled, filtering disabled, discriminator (nosel)
prompt: "*Jan 27 20:09:18.839: %SYS-5-CONFIG_I: Configured from console by user1 on console"
commands:
"":
new_state: general_config
config_msg2:
preface:
timing:
- 0:,0,0.5
response: |
Router(config)#*Jan 27 20:09:17.549: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user1] [Source: LOCAL] [localport: 0] at 20:09:17 UTC Wed Jan 27 2021
*Jan 27 20:09:18.103: %SYS-5-LOG_CONFIG_CHANGE: Console logging disabled
*Jan 27 20:09:18.341: %SYS-5-LOG_CONFIG_CHANGE: Console logging: level debugging, xml disabled, filtering disabled, discriminator (nosel)
*Jan 27 20:09:18.839: %SYS-5-CONFIG_I: Configured from console by user1 on console
prompt: "%N(config)#"
commands:
"end":
new_state: general_enable
enable_with_msgs:
prompt: "%N#"
commands:
"show version | include operating mode" : ""
"msg":
new_state: enable_msg
"config term":
new_state: config_with_msgs
enable_with_msgs2:
prompt: "%N#"
commands:
"show version | include operating mode" : ""
"msg":
new_state: enable_msg
"config term":
new_state: config_with_msgs2
enable_msg:
preface: |
Router#*Jan 27 20:09:17.549: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user1] [Source: LOCAL] [localport: 0] at 20:09:17 UTC Wed Jan 27 2021
*Jan 27 20:09:18.103: %SYS-5-LOG_CONFIG_CHANGE: Console logging disabled
*Jan 27 20:09:18.341: %SYS-5-LOG_CONFIG_CHANGE: Console logging: level debugging, xml disabled, filtering disabled, discriminator (nosel)
prompt: "*Jan 27 20:09:18.839: %SYS-5-CONFIG_I: Configured from console by user1 on console"
commands:
"":
new_state: general_enable
disable_to_enable_with_msg:
prompt: "Switch>"
commands:
"show version | include operating mode" : ""
"enable":
new_state: enable_password_with_msg
enable_password_with_msg:
preface: "Password: "
prompt: "*Feb 8 21:51:23.628: %SELINUX-3-MISMATCH: Switch"
commands:
"": "% Access denied"
"cisco":
new_state: general_enable
slow_config_mode:
prompt: "%N#"
commands:
"show version | include operating mode": ""
"config term":
response: ""
timing:
- 0:,4,0
new_state: general_config
slow_config_mode2:
prompt: "%N#"
commands:
"show version | include operating mode": ""
"config term":
response: ""
timing:
- 0:,15,0
new_state: general_config
config_locked:
prompt: "%N#"
commands:
"show version | include operating mode" : ""
"config term":
response: |
Config mode cannot be entered during Standby initialization or when switch is in recovery mode
timing:
- 0:,0,0.1,0.002
new_state: config_locked1
config_locked1:
prompt: "%N#"
commands:
"config term":
new_state: general_config
response: ""
timing:
- 0:,3,0
# Console server
ts_login:
preface: |
Connected to localhost
Escape character is '^]'.
prompt: "Username: "
commands:
"ts_user":
new_state: ts_password
ts_password:
prompt: "Password: "
commands:
"ts_pw":
new_state: console_wait_login
console_wait_login:
prompt: ""
commands:
"":
new_state: general_login
scp_password:
prompt: "Password for test@127.0.0.1: "
commands:
"test":
new_state: general_enable
enable_no_service_prompt_config:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"config term":
new_state:
config_no_prompt
"configure terminal":
new_state:
config_no_prompt
config_no_prompt:
preface: "Enter configuration commands, one per line. End with CNTL/Z."
prompt: ""
keys:
ctrl-z:
new_state: enable_no_service_prompt_config
commands:
"service prompt config":
new_state: general_config
initial_config_dialog:
preface:
timing:
- 0:,0,0.01
response: |2
--- System Configuration Dialog ---
prompt: "\nWould you like to enter the initial configuration dialog? [yes/no]: "
commands:
"no": &enable_secret
new_state: enter_enable_secret
response: |2
The enable secret is a password used to protect
access to privileged EXEC and configuration modes.
This password, after entered, becomes encrypted in
the configuration.
-------------------------------------------------
secret should be of minimum 10 characters with
at least 1 upper case, 1 lower case, 1 digit and
should not contain [cisco]
-------------------------------------------------
"n": *enable_secret
enter_enable_secret:
prompt: " Enter enable secret: "
commands:
"": "Please enter a secret"
"veryverybadpw":
response: "%Password validation failed"
"Secret12345":
new_state: confirm_enable_secret
confirm_enable_secret:
prompt: " Confirm enable secret: "
commands:
"": "Please enter a secret"
"Secret12345":
response: |2
The following configuration command script was created:
enable secret 9 $9$gCGcm2IWBJOT5U$p6jqb1plxOJpr3yYwa/3fUSfpQjM.RgfcunyUXhqfRA
!
end
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
new_state: enter_selection
enter_selection:
prompt: "Enter your selection [2]: "
commands:
"":
new_state: press_return
response: |
Building configuration...
[OK]
Use the enabled mode 'configure' command to modify this configuration.
"2":
new_state: press_return
response: |
Building configuration...
[OK]
Use the enabled mode 'configure' command to modify this configuration.
"0":
new_state: general_exec_no_password
press_return:
preface: "\n\nPress RETURN to get started!\n\n"
prompt: ""
commands:
"":
new_state: enable_secret_exec
enable_secret_exec:
prompt: "%N>"
commands:
"show version | include operating mode": ""
"enable":
new_state: enable_secret_password
enable_secret_password:
prompt: "Password: "
commands:
"Secret12345":
new_state: general_enable
guestshell:
prompt: "[guestshell@guestshell ~]$ "
commands:
"exit":
new_state: general_enable
"pwd": "/home/guestshell"
enable_guestshell:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"show app-hosting list": ""
setup_enable:
prompt: "%N#"
commands:
<<: *gen_enable_cmds
"wr erase":
new_state: setup_enable_wr_erase_confirm
"reload":
new_state: setup_enable_reload_confirm
setup_enable_wr_erase_confirm:
preface: |
************************************************************************************************************
Erasing Nvram will not clear license trust code.
************************************************************************************************************
prompt: "Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] "
commands:
"":
response: |
[OK]
Erase of nvram: complete
new_state: setup_enable
setup_enable_reload_confirm:
prompt: "Proceed with reload? [confirm] "
commands:
"":
response: file|mock_data/iosxe/asr1k_reload.txt
new_state: system_config_confirm
reload_proceed_confirm:
prompt: "Do you wish to proceed with reload anyway[confirm]"
commands:
"":