Skip to content

Cisco CML 2.5.0 の Cisco 機器デフォルトコンフィグ

Cisco CML 2.5.0 環境の各 Cisco 機器 デフォルトコンフィグをメモしておきます。

ASAv

1
2
hostname inserthostname-here
end

CAT8000V

1
2
hostname inserthostname-here
end

CSR1000v

1
2
hostname inserthostname-here
end

IOSv

1
hostname inserthostname-here

IOS XRv 9000

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
hostname inserthostname-here
username cisco
group root-lr
group cisco-support
password cisco
!
username admin
group root-lr
group cisco-support
password cisco
!
username lab
group root-lr
group cisco-support
password cisco
!
end

BETA CAT9000v DD

1
2
hostname inserthostname-here
end

BETA CAT9000v S1

1
2
hostname inserthostname-here
end

IOSvL2

1
hostname inserthostname-here

NX-OS 9000

 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
hostname inserthostname-here
# workaround for booting to loader> prompt
echo 'from cli import cli' > set_boot.py
echo 'import json' >> set_boot.py
echo 'import os' >> set_boot.py
echo 'import time' >> set_boot.py
echo 'bootimage = json.loads(cli("show version | json"))["kick_file_name"]' >> set_boot.py
echo 'set_boot = cli("conf t ; boot nxos {} ; no event manager applet BOOTCONFIG".format(bootimage))' >> set_boot.py
echo 'i = 0' >> set_boot.py
echo 'while i < 10:' >> set_boot.py
echo '    try:' >> set_boot.py
echo '        save_config = cli("copy running-config startup-config")' >> set_boot.py
echo '        break' >> set_boot.py
echo '    except Exception:' >> set_boot.py
echo '        i += 1' >> set_boot.py
echo '        time.sleep(1)' >> set_boot.py
echo 'os.remove("/bootflash/set_boot.py")' >> set_boot.py
event manager applet BOOTCONFIG
 event syslog pattern "Configured from vty"
 action 1.0 cli python bootflash:set_boot.py
# minimum needed config to login
no password strength-check
username admin role network-admin
username admin password cisco role network-admin
username cisco role network-admin
username cisco password cisco role network-admin