Interface Status
Run: show interfaces status
1 step
-
Send
show interfaces statusSends Enter afterwards.
Catalyst and ISR day-to-day: ports, VLANs, routing, ACLs and rescue.
by Nathan Kirk · 64 downloads · MIT licence · revision 1 · published 14 Aug 2026
Shut Down Port — Shuts down an interface (steps[3], sent text)
shutdown
Bounce Port — Shuts down an interface (steps[3], sent text)
shutdown
Add Local User — Changes credentials or access (steps[1], sent text)
username {{USER}} privilege 15 secret {{PASSWORD}}
Set Enable Secret — Changes credentials or access (steps[1], sent text)
enable secret {{PASSWORD}}
Delete Local User — Changes credentials or access (steps[2], sent text)
no username {{USER}}
Recover Err-Disabled Port — Shuts down an interface (steps[3], sent text)
shutdown
Scheduled Reload — Reboots or reloads the device (steps[0], sent text)
show reload
Save Running Config — Writes configuration to persistent storage (steps[0], sent text)
write memory
Schedule Rollback Reload — Reboots or reloads the device (steps[0], sent text)
reload in {{MINUTES}}
Cancel Scheduled Reload — Reboots or reloads the device (steps[0], sent text)
reload cancel
Reload Device — Reboots or reloads the device (steps[1], sent text)
reload
Reload at Time — Reboots or reloads the device (steps[1], sent text)
reload at {{TIME}}
Erase Startup Config — Erases configuration or storage (steps[1], sent text)
write erase
Set Boot Image — Writes configuration to persistent storage (steps[4], sent text)
write memory
Flagged automatically by matching command text. It is a prompt to read the script, not a verdict — plenty of legitimate buttons reboot things on purpose.
4 sets, 158 buttons, 291 steps · 209.1 KB
File format version 1 · exported by Smartcom Revisited
4a8a6aab144dad24ffba1616a73800c31adb5727baf9f15876096953019863a9
You get the exact file the uploader submitted, byte for byte — that checksum is what
sha256sum will print. Import it from the button panel in
SmartCom Revisited.
Exactly what gets sent
This is the complete script of the file below — nothing is summarised or hidden. Read it before you download it, the same way you would read a script someone emailed you.
Port state, VLANs, trunks, EtherChannel and PoE.
Run: show interfaces status
1 step
show interfaces status
Sends Enter afterwards.
Run: show ip interface brief
1 step
show ip interface brief
Sends Enter afterwards.
Run: show interfaces {{IFACE}}
1 step · 1 input
show interfaces {{IFACE}}
Sends Enter afterwards.
Run: show interfaces {{IFACE}} counters
1 step · 1 input
show interfaces {{IFACE}} counters
Sends Enter afterwards.
Run: show interfaces counters errors
1 step
show interfaces counters errors
Sends Enter afterwards.
Run: show interfaces description
1 step
show interfaces description
Sends Enter afterwards.
Run: show interfaces {{IFACE}} transceiver detail
1 step · 1 input
show interfaces {{IFACE}} transceiver detail
Sends Enter afterwards.
Run: show logging | include {{IFACE}}
1 step · 1 input
show logging | include {{IFACE}}
Sends Enter afterwards.
Run: show vlan brief
1 step
show vlan brief
Sends Enter afterwards.
Run: show vlan id {{VLAN}}
1 step · 1 input
show vlan id {{VLAN}}
Sends Enter afterwards.
Run: show interfaces trunk
1 step
show interfaces trunk
Sends Enter afterwards.
Run: show mac address-table
1 step
show mac address-table
Sends Enter afterwards.
Run: show mac address-table address {{MAC}}
1 step · 1 input
show mac address-table address {{MAC}}
Sends Enter afterwards.
Run: show mac address-table interface {{IFACE}}
1 step · 1 input
show mac address-table interface {{IFACE}}
Sends Enter afterwards.
Run: show mac address-table count
1 step
show mac address-table count
Sends Enter afterwards.
Run: show spanning-tree summary
1 step
show spanning-tree summary
Sends Enter afterwards.
Run: show spanning-tree vlan {{VLAN}}
1 step · 1 input
show spanning-tree vlan {{VLAN}}
Sends Enter afterwards.
Run: show spanning-tree root
1 step
show spanning-tree root
Sends Enter afterwards.
Run: show spanning-tree blockedports
1 step
show spanning-tree blockedports
Sends Enter afterwards.
Run: show etherchannel summary
1 step
show etherchannel summary
Sends Enter afterwards.
Run: show etherchannel {{LAG}} detail
1 step · 1 input
show etherchannel {{LAG}} detail
Sends Enter afterwards.
Run: show lldp neighbors
1 step
show lldp neighbors
Sends Enter afterwards.
Run: show lldp neighbors detail
1 step
show lldp neighbors detail
Sends Enter afterwards.
Run: show cdp neighbors
1 step
show cdp neighbors
Sends Enter afterwards.
Run: show cdp neighbors detail
1 step
show cdp neighbors detail
Sends Enter afterwards.
Run: show power inline
1 step
show power inline
Sends Enter afterwards.
Run: show power inline {{IFACE}}
1 step · 1 input
show power inline {{IFACE}}
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; description {{DESCRIPTION}} ; end
4 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
description {{DESCRIPTION}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport mode access ; switchport access vlan {{VLAN}} ; end
5 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport mode access
Sends Enter afterwards.
switchport access vlan {{VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport voice vlan {{VLAN}} ; end
4 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport voice vlan {{VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport trunk encapsulation dot1q ; switchport mode trunk ; switchport trunk allowed vlan {{VLAN_LIST}} ; switchport trunk native vlan {{NATIVE_VLAN}} ; end
7 steps · asks for confirmation before it runs · 3 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport trunk encapsulation dot1q
Sends Enter afterwards.
switchport mode trunk
Sends Enter afterwards.
switchport trunk allowed vlan {{VLAN_LIST}}
Sends Enter afterwards.
switchport trunk native vlan {{NATIVE_VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport trunk allowed vlan add {{VLAN}} ; end
4 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport trunk allowed vlan add {{VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; vlan {{VLAN}} ; name {{VLAN_NAME}} ; end
4 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
vlan {{VLAN}}
Sends Enter afterwards.
name {{VLAN_NAME}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; speed {{SPEED}} ; duplex {{DUPLEX}} ; end
5 steps · asks for confirmation before it runs · 3 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
speed {{SPEED}}
Sends Enter afterwards.
duplex {{DUPLEX}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; spanning-tree portfast ; spanning-tree bpduguard enable ; end
5 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
spanning-tree portfast
Sends Enter afterwards.
spanning-tree bpduguard enable
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; no shutdown ; end
4 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
no shutdown
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; shutdown ; end
5 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Shut down {{IFACE}}. Anything behind this port loses its link immediately. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
shutdown
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; shutdown ; no shutdown ; end
6 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Bounce {{IFACE}} — the link drops and comes back. Devices behind it will reconnect. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
shutdown
Sends Enter afterwards.
no shutdown
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport trunk allowed vlan remove {{VLAN}} ; end
5 steps · asks for confirmation before it runs · 2 inputs
Asks yes or no: “Stop VLAN {{VLAN}} crossing {{IFACE}}. Traffic in that VLAN over this trunk stops. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport trunk allowed vlan remove {{VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; no vlan {{VLAN}} ; end
4 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Delete VLAN {{VLAN}} from this switch. Ports left in it go dark. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
no vlan {{VLAN}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: clear counters {{IFACE}}
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Reset the counters on {{IFACE}}. The error history you are looking at is lost. Continue?”
Answering no stops the script here.
clear counters {{IFACE}}
Sends Enter afterwards.
Run: configure terminal ; default interface {{IFACE}} ; end
4 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Wipe every setting on {{IFACE}} back to factory default, including its VLAN and description. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
default interface {{IFACE}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Routing table, OSPF, BGP, static routes and path testing.
Run: show ip route
1 step
show ip route
Sends Enter afterwards.
Run: show ip route {{PREFIX}}
1 step · 1 input
show ip route {{PREFIX}}
Sends Enter afterwards.
Run: show ip route connected
1 step
show ip route connected
Sends Enter afterwards.
Run: show ip route static
1 step
show ip route static
Sends Enter afterwards.
Run: show ip route summary
1 step
show ip route summary
Sends Enter afterwards.
Run: show ipv6 route
1 step
show ipv6 route
Sends Enter afterwards.
Run: show ip arp
1 step
show ip arp
Sends Enter afterwards.
Run: show ip arp {{IP}}
1 step · 1 input
show ip arp {{IP}}
Sends Enter afterwards.
Run: show ipv6 neighbors
1 step
show ipv6 neighbors
Sends Enter afterwards.
Run: show ip ospf neighbor
1 step
show ip ospf neighbor
Sends Enter afterwards.
Run: show ip ospf interface brief
1 step
show ip ospf interface brief
Sends Enter afterwards.
Run: show ip ospf database
1 step
show ip ospf database
Sends Enter afterwards.
Run: show ip ospf {{PROCESS_ID}}
1 step · 1 input
show ip ospf {{PROCESS_ID}}
Sends Enter afterwards.
Run: show ip eigrp neighbors
1 step
show ip eigrp neighbors
Sends Enter afterwards.
Run: show ip eigrp topology
1 step
show ip eigrp topology
Sends Enter afterwards.
Run: show ip bgp summary
1 step
show ip bgp summary
Sends Enter afterwards.
Run: show ip bgp neighbors {{PEER}}
1 step · 1 input
show ip bgp neighbors {{PEER}}
Sends Enter afterwards.
Run: show ip bgp neighbors {{PEER}} received-routes
1 step · 1 input
show ip bgp neighbors {{PEER}} received-routes
Sends Enter afterwards.
Run: show ip bgp neighbors {{PEER}} advertised-routes
1 step · 1 input
show ip bgp neighbors {{PEER}} advertised-routes
Sends Enter afterwards.
Run: show ip bgp {{PREFIX}}
1 step · 1 input
show ip bgp {{PREFIX}}
Sends Enter afterwards.
Run: show standby brief
1 step
show standby brief
Sends Enter afterwards.
Run: show vrrp brief
1 step
show vrrp brief
Sends Enter afterwards.
Run: show vrf
1 step
show vrf
Sends Enter afterwards.
Run: show ip route vrf {{VRF}}
1 step · 1 input
show ip route vrf {{VRF}}
Sends Enter afterwards.
Run: ping {{HOST}}
1 step · 1 input
ping {{HOST}}
Sends Enter afterwards.
Run: ping {{HOST}} repeat {{COUNT}}
1 step · 2 inputs
ping {{HOST}} repeat {{COUNT}}
Sends Enter afterwards.
Run: ping {{HOST}} source {{IFACE}}
1 step · 2 inputs
ping {{HOST}} source {{IFACE}}
Sends Enter afterwards.
Run: ping vrf {{VRF}} {{HOST}}
1 step · 2 inputs
ping vrf {{VRF}} {{HOST}}
Sends Enter afterwards.
Run: traceroute {{HOST}}
1 step · 1 input
traceroute {{HOST}}
Sends Enter afterwards.
Run: traceroute vrf {{VRF}} {{HOST}}
1 step · 2 inputs
traceroute vrf {{VRF}} {{HOST}}
Sends Enter afterwards.
Run: ping {{FQDN}} repeat 2
1 step · 1 input
ping {{FQDN}} repeat 2
Sends Enter afterwards.
Run: configure terminal ; ip route {{PREFIX}} {{NEXT_HOP}} ; end
3 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
ip route {{PREFIX}} {{NEXT_HOP}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; ip route {{PREFIX}} {{NEXT_HOP}} {{DISTANCE}} ; end
3 steps · asks for confirmation before it runs · 3 inputs
configure terminal
Sends Enter afterwards.
ip route {{PREFIX}} {{NEXT_HOP}} {{DISTANCE}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; ip route 0.0.0.0 0.0.0.0 {{GATEWAY}} ; end
3 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
ip route 0.0.0.0 0.0.0.0 {{GATEWAY}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface Vlan{{VLAN}} ; ip address {{IP}} {{MASK}} ; no shutdown ; end
5 steps · asks for confirmation before it runs · 3 inputs
configure terminal
Sends Enter afterwards.
interface Vlan{{VLAN}}
Sends Enter afterwards.
ip address {{IP}} {{MASK}}
Sends Enter afterwards.
no shutdown
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; router ospf {{PROCESS_ID}} ; network {{NETWORK}} {{MASK}} area {{AREA}} ; end
4 steps · asks for confirmation before it runs · 4 inputs
configure terminal
Sends Enter afterwards.
router ospf {{PROCESS_ID}}
Sends Enter afterwards.
network {{NETWORK}} {{MASK}} area {{AREA}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; router bgp {{ASN}} ; neighbor {{PEER}} remote-as {{PEER_AS}} ; neighbor {{PEER}} description {{DESCRIPTION}} ; end
5 steps · asks for confirmation before it runs · 4 inputs
configure terminal
Sends Enter afterwards.
router bgp {{ASN}}
Sends Enter afterwards.
neighbor {{PEER}} remote-as {{PEER_AS}}
Sends Enter afterwards.
neighbor {{PEER}} description {{DESCRIPTION}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; no ip route {{PREFIX}} {{NEXT_HOP}} ; end
4 steps · asks for confirmation before it runs · 2 inputs
Asks yes or no: “Remove the route to {{PREFIX}} via {{NEXT_HOP}}. Traffic for that prefix follows whatever is left, or nothing. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
no ip route {{PREFIX}} {{NEXT_HOP}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: clear ip arp
2 steps · asks for confirmation before it runs
Asks yes or no: “Flush the whole ARP cache. Expect a burst of re-resolution and a brief pause on active flows. Continue?”
Answering no stops the script here.
clear ip arp
Sends Enter afterwards.
Run: clear ip bgp {{PEER}} soft
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Re-send and re-request the full table with {{PEER}}. Prefixes may churn while it converges. Continue?”
Answering no stops the script here.
clear ip bgp {{PEER}} soft
Sends Enter afterwards.
Run: clear ip bgp {{PEER}}
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Tear the BGP session with {{PEER}} down and rebuild it. Every prefix learned from that peer is withdrawn until it comes back. Continue?”
Answering no stops the script here.
clear ip bgp {{PEER}}
Sends Enter afterwards.
Run: clear ip ospf {{PROCESS_ID}} process
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Restart OSPF process {{PROCESS_ID}}. Adjacencies drop and routes are withdrawn while it reconverges. Continue?”
Answering no stops the script here.
clear ip ospf {{PROCESS_ID}} process
Sends Enter afterwards.
ACLs, NAT translations, AAA, port security and SSH access.
Run: show access-lists
1 step
show access-lists
Sends Enter afterwards.
Run: show access-lists {{ACL}}
1 step · 1 input
show access-lists {{ACL}}
Sends Enter afterwards.
Run: show ip interface | include line protocol|access list
1 step
show ip interface | include line protocol|access list
Sends Enter afterwards.
Run: show ip nat translations
1 step
show ip nat translations
Sends Enter afterwards.
Run: show ip nat statistics
1 step
show ip nat statistics
Sends Enter afterwards.
Run: show port-security
1 step
show port-security
Sends Enter afterwards.
Run: show port-security interface {{IFACE}}
1 step · 1 input
show port-security interface {{IFACE}}
Sends Enter afterwards.
Run: show interfaces status err-disabled
1 step
show interfaces status err-disabled
Sends Enter afterwards.
Run: show errdisable recovery
1 step
show errdisable recovery
Sends Enter afterwards.
Run: show ip dhcp snooping binding
1 step
show ip dhcp snooping binding
Sends Enter afterwards.
Run: show ip dhcp snooping
1 step
show ip dhcp snooping
Sends Enter afterwards.
Run: show running-config | include ^username
1 step
show running-config | include ^username
Sends Enter afterwards.
Run: show aaa sessions
1 step
show aaa sessions
Sends Enter afterwards.
Run: show authentication sessions
1 step
show authentication sessions
Sends Enter afterwards.
Run: show ssh
1 step
show ssh
Sends Enter afterwards.
Run: show users
1 step
show users
Sends Enter afterwards.
Run: show running-config | section line vty
1 step
show running-config | section line vty
Sends Enter afterwards.
Run: show crypto key mypubkey rsa
1 step
show crypto key mypubkey rsa
Sends Enter afterwards.
Run: show crypto ipsec sa
1 step
show crypto ipsec sa
Sends Enter afterwards.
Run: show crypto isakmp sa
1 step
show crypto isakmp sa
Sends Enter afterwards.
Run: configure terminal ; ip access-list extended {{ACL}} ; permit {{PROTOCOL}} {{SRC}} {{DST}} eq {{PORT}} ; end
4 steps · asks for confirmation before it runs · 5 inputs
configure terminal
Sends Enter afterwards.
ip access-list extended {{ACL}}
Sends Enter afterwards.
permit {{PROTOCOL}} {{SRC}} {{DST}} eq {{PORT}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; username {{USER}} privilege 15 secret {{PASSWORD}} ; end
3 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
username {{USER}} privilege 15 secret {{PASSWORD}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; ip nat inside source static {{LOCAL_IP}} {{GLOBAL_IP}} ; end
3 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
ip nat inside source static {{LOCAL_IP}} {{GLOBAL_IP}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; switchport port-security ; switchport port-security maximum {{COUNT}} ; switchport port-security violation restrict ; end
6 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
switchport port-security
Sends Enter afterwards.
switchport port-security maximum {{COUNT}}
Sends Enter afterwards.
switchport port-security violation restrict
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; enable secret {{PASSWORD}} ; end
3 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
enable secret {{PASSWORD}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; line vty 0 15 ; access-class {{ACL}} in ; transport input ssh ; end
5 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
line vty 0 15
Sends Enter afterwards.
access-class {{ACL}} in
Sends Enter afterwards.
transport input ssh
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; ip access-list extended {{ACL}} ; deny {{PROTOCOL}} {{SRC}} {{DST}} ; end
5 steps · asks for confirmation before it runs · 4 inputs
Asks yes or no: “Add a deny to {{ACL}}. If this list is applied to the interface you are connected through, you can lock yourself out. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
ip access-list extended {{ACL}}
Sends Enter afterwards.
deny {{PROTOCOL}} {{SRC}} {{DST}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; no ip access-list extended {{ACL}} ; end
4 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Delete {{ACL}} entirely. Anything relying on it stops being filtered, or stops passing. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
no ip access-list extended {{ACL}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: clear ip nat translation *
2 steps · asks for confirmation before it runs
Asks yes or no: “Drop every NAT translation. Established sessions through this router break and have to be re-opened. Continue?”
Answering no stops the script here.
clear ip nat translation *
Sends Enter afterwards.
Run: configure terminal ; no username {{USER}} ; end
4 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Delete account {{USER}}. If this is the account you are logged in with, you may not get back in. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
no username {{USER}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; interface {{IFACE}} ; shutdown ; no shutdown ; end
6 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Bounce {{IFACE}} to clear err-disable. If the cause is still there the port will disable again. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
interface {{IFACE}}
Sends Enter afterwards.
shutdown
Sends Enter afterwards.
no shutdown
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: clear port-security sticky interface {{IFACE}}
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Clear learned sticky MACs on {{IFACE}}. The port relearns whatever is plugged in now. Continue?”
Answering no stops the script here.
clear port-security sticky interface {{IFACE}}
Sends Enter afterwards.
Config save and backup, IOS images, logging and reloads.
Run: show version
1 step
show version
Sends Enter afterwards.
Run: show running-config
1 step
show running-config
Sends Enter afterwards.
Run: show running-config | section {{PATTERN}}
1 step · 1 input
show running-config | section {{PATTERN}}
Sends Enter afterwards.
Run: show startup-config
1 step
show startup-config
Sends Enter afterwards.
Run: show archive config differences
1 step
show archive config differences
Sends Enter afterwards.
Run: show running-config | include Last configuration
1 step
show running-config | include Last configuration
Sends Enter afterwards.
Run: show inventory
1 step
show inventory
Sends Enter afterwards.
Run: show environment all
1 step
show environment all
Sends Enter afterwards.
Run: show processes cpu sorted
1 step
show processes cpu sorted
Sends Enter afterwards.
Run: show processes cpu sorted | exclude 0.00%__0.00%__0.00%
1 step
show processes cpu sorted | exclude 0.00%__0.00%__0.00%
Sends Enter afterwards.
Run: show memory statistics
1 step
show memory statistics
Sends Enter afterwards.
Run: show flash:
1 step
show flash:
Sends Enter afterwards.
Run: dir
1 step
dir
Sends Enter afterwards.
Run: show boot
1 step
show boot
Sends Enter afterwards.
Run: show license summary
1 step
show license summary
Sends Enter afterwards.
Run: show logging | last {{LINES}}
1 step · 1 input
show logging | last {{LINES}}
Sends Enter afterwards.
Run: show logging | include {{PATTERN}}
1 step · 1 input
show logging | include {{PATTERN}}
Sends Enter afterwards.
Run: show logging | begin Log Buffer
1 step
show logging | begin Log Buffer
Sends Enter afterwards.
Run: show clock detail
1 step
show clock detail
Sends Enter afterwards.
Run: show ntp status
1 step
show ntp status
Sends Enter afterwards.
Run: show ntp associations
1 step
show ntp associations
Sends Enter afterwards.
Run: show running-config | include snmp-server
1 step
show running-config | include snmp-server
Sends Enter afterwards.
Run: show switch detail
1 step
show switch detail
Sends Enter afterwards.
Run: show redundancy
1 step
show redundancy
Sends Enter afterwards.
Run: show reload
1 step
show reload
Sends Enter afterwards.
Run: show tech-support | redirect flash:tech-support.txt
1 step
show tech-support | redirect flash:tech-support.txt
Sends Enter afterwards.
Run: write memory
1 step · asks for confirmation before it runs
write memory
Sends Enter afterwards.
Run: configure terminal ; hostname {{HOSTNAME}} ; end
3 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
hostname {{HOSTNAME}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; clock timezone {{TZ}} {{TZ_OFFSET}} ; end
3 steps · asks for confirmation before it runs · 2 inputs
configure terminal
Sends Enter afterwards.
clock timezone {{TZ}} {{TZ_OFFSET}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; ntp server {{NTP}} ; end
3 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
ntp server {{NTP}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; logging host {{SERVER}} ; end
3 steps · asks for confirmation before it runs · 1 input
configure terminal
Sends Enter afterwards.
logging host {{SERVER}}
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: configure terminal ; archive ; path flash:archive-config ; write-memory ; end
5 steps · asks for confirmation before it runs
configure terminal
Sends Enter afterwards.
archive
Sends Enter afterwards.
path flash:archive-config
Sends Enter afterwards.
write-memory
Sends Enter afterwards.
end
Sends Enter afterwards.
Run: copy running-config tftp://{{SERVER}}/{{FILE}}
1 step · asks for confirmation before it runs · 2 inputs
copy running-config tftp://{{SERVER}}/{{FILE}}
Sends Enter afterwards.
Run: copy running-config flash:{{FILE}}
1 step · asks for confirmation before it runs · 1 input
copy running-config flash:{{FILE}}
Sends Enter afterwards.
Safety net before a risky change: the switch reloads to the saved config unless you cancel it.
1 step · asks for confirmation before it runs · 1 input
reload in {{MINUTES}}
Sends Enter afterwards.
Run: reload cancel
1 step · asks for confirmation before it runs
reload cancel
Sends Enter afterwards.
Run: reload
2 steps · asks for confirmation before it runs
Asks yes or no: “Reload this device now. Every session through it drops for the length of the boot. Make sure the running config is saved first. Continue?”
Answering no stops the script here.
reload
Sends Enter afterwards.
Run: reload at {{TIME}}
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Schedule a reload at {{TIME}}. The device will drop every session when it fires. Continue?”
Answering no stops the script here.
reload at {{TIME}}
Sends Enter afterwards.
Run: configure replace flash:{{FILE}}
2 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Replace the running config with {{FILE}}. Anything not in that file is removed, including the access you are using now. Continue?”
Answering no stops the script here.
configure replace flash:{{FILE}}
Sends Enter afterwards.
Run: write erase
2 steps · asks for confirmation before it runs
Asks yes or no: “Erase the startup config. On the next reload this device comes up unconfigured, with no management access at all. Continue?”
Answering no stops the script here.
write erase
Sends Enter afterwards.
Run: clear logging
2 steps · asks for confirmation before it runs
Asks yes or no: “Discard the buffered log. Whatever explains the current problem goes with it — copy anything you need first. Continue?”
Answering no stops the script here.
clear logging
Sends Enter afterwards.
Run: configure terminal ; boot system flash:{{IMAGE}} ; end ; write memory
5 steps · asks for confirmation before it runs · 1 input
Asks yes or no: “Boot from {{IMAGE}} at the next reload. A wrong or missing image leaves the device in ROMmon and needs console access to fix. Continue?”
Answering no stops the script here.
configure terminal
Sends Enter afterwards.
boot system flash:{{IMAGE}}
Sends Enter afterwards.
end
Sends Enter afterwards.
write memory
Sends Enter afterwards.
Sign in to report it, or email abuse@smartcomrevisited.com.