Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 205340b5 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Update FGL223590FL.cfg

parent e1e6bf5c
No related branches found
No related tags found
No related merge requests found
!
! Last configuration change at 13:50:34 UTC Sun Nov 6 2022
!
! the configuration file needs to have a version statement
!
version 17.6
!
hostname ro01
......@@ -14,23 +16,18 @@ login on-success log
!
license feature hseck9
!
! username admin privilege 15 password 0 1admin2
!
! boot system flash c1100-universalk9.17.06.03a.SPA.bin
! boot system flash c1100-universalk9.17.09.01a.SPA.bin
! boot system flash c1100-universalk9.17.01.01.SPA.bin
username admin privilege 15 secret admin
!
logging host 192.168.10.133
!
interface Vlan1
! ip dhcp client client-id ascii FGL223590FL
ip address dhcp
! ip nat outside
autostate
no shutdown
!
vlan 10
name test
!
int vlan 10
desc test
ip address dhcp
......@@ -48,7 +45,6 @@ interface GigabitEthernet0/0/0
ip http server
ip http authentication local
ip http secure-server
!ip http tls-version TLSv1.3
!
ip ssh rsa keypair-name ssh-key
ip ssh version 2
......@@ -72,51 +68,33 @@ clock timezone CET 1 0
clock summer-time CEST recurring las Sun Mar 2:00 las Sun Oct 3:00
ntp server 10.10.10.1
!
!ip access-list extended acl-nat-iox
! 10 permit ip 169.254.1.0 0.0.0.255 any
!
ip nat inside source list acl-nat-iox interface Gigabit0/0/0 overload
!ip nat inside source static tcp 169.254.1.2 22 interface vlan 1 2222
!
interface VirtualPortGroup0
description for app hosting (guestshell)
ip address 169.254.1.1 255.255.255.0
ip nat inside
no shutdown
!
iox
app-hosting appid guestshell
app-vnic gateway0 virtualportgroup 0 guest-interface 0
guest-ipaddress 169.254.1.2 netmask 255.255.255.0
app-default-gateway 169.254.1.1 guest-interface 0
name-server1 192.168.10.12
! start
!
! EEM script to cleanup after first reload
! - create ssh key
! - remove pnp template --> ends pnp workflow
! - remove eem script
! - save configuration
!
event manager applet finish
description clear all config after reload
event timer cron cron-entry "@reboot" maxrun 600 name finish
! event timer countdown time 60 maxrun 3600 name autoinstall
! set defaults
action 0000.00 cli command "enable"
action 0000.01 cli command "term len 0"
action 0000.02 syslog facility "EEM" msg "EEM START finish config"
action 0000.03 handle-error type warn
!
! action 0001.00 syslog facility "EEM" msg "wait 120s till reload is complete"
! action 0001.05 wait 120
!
action 0010.00 syslog facility "EEM" msg "generating ssh key"
action 0010.05 cli command "configure terminal"
action 0010.10 cli command " crypto key generate rsa modulus 2048 label SSH-KEY"
action 0010.15 cli command " ip ssh rsa keypair-name SSH-KEY"
action 0010.20 cli command "end"
!
! action 0015.00 syslog facility "EEM" msg "remove inactive images"
! action 0015.05 cli command "install remove inactive" pattern "\[y/n\]"
! action 0015.10 cli command "y"
!
action 9999.00 syslog facility "EEM" msg "remove EEM script finish config"
action 9999.05 cli command " configure terminal"
action 9999.06 cli command " no pnp profile pnp-zero-touch"
action 9999.10 cli command " no event manager applet finish"
action 9999.15 cli command "end"
......@@ -125,5 +103,6 @@ event manager applet finish
action 9999.99 syslog facility "EEM" msg "EEM END autoinstall"
exit
!
! the configuration has to end with "end"
!
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment