Cisco CML 2.5.0 環境の各 Cisco 機器 デフォルトコンフィグをメモしておきます。
ASAv
hostname inserthostname-here
end
CAT8000V
hostname inserthostname-here
end
CSR1000v
hostname inserthostname-here
end
IOSv
hostname inserthostname-here
IOS XRv 9000
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
hostname inserthostname-here
end
BETA CAT9000v S1
hostname inserthostname-here
end
IOSvL2
hostname inserthostname-here
NX-OS 9000
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
コメント