Skip to content

TotallyMonica/CiscoResetterGo

Repository files navigation

Go Cisco Resetter

A rewrite of TotallyMonica/CiscoReset in Go

Compile instructions

Dependencies

  • Go >= 1.20.14

Compile

git clone https://github.com/TotallyMonica/CiscoResetterGo
cd CiscoResetterGo
go build main

Run Instructions

Windows

./main.exe { --web-server | <--router [--router-defaults /path/to/router_defaults.json] | --switch --switch-defaults /path/to/switch_defaults.json]> [--skip-reset] } [--debug]

Linux

./main { --web-server | <--router [--router-defaults /path/to/router_defaults.json] | --switch --switch-defaults /path/to/switch_defaults.json]> [--skip-reset] } [--debug]

Why this?

After using the first version of this, I discovered that the lab that I work in will reset the computers after every reboot and are not able to connect to the main network. As such, reinstalling the dependencies to run the Python script was needlessly difficult.

While it is possible to compile Python scripts to a single executable, to me it made more sense to rewrite it in Go as that was a language that I was trying to learn.

Tested with:

  • Cisco Routers
    • Cisco 4221
  • Cisco Switches
    • Cisco 2960G Series
    • Cisco 2960 Plus Series
    • Cisco 2960-C Series PoE
    • Cisco 2960 Series
    • Cisco 2960-CX Series

To-Do

  • Ensure Cisco 4221 is properly reset Confirmed 4/11/2024
  • Ensure Cisco 2960 series is properly reset Confirmed 4/16/2024
  • Test Windows 7 compatibility Confirmed 4/25/2024
  • Test Linux compatibility (Baseline: Ubuntu 16.04) Confirmed 4/25/2024
  • Set custom defaults via JSON Switch functionality confirmed 5/18/2024
  • Flags for identifying what to configure
  • Mail/push alerts upon completion
  • Handle password recovery being disabled
  • Back up configs prior to reset
  • Configure serial port via switches
  • Allow changing of serial port settings (Currently only allowing 9600 8N1) Written 4/25/2024

About

A reimplementation of TotallyMonica/CiscoReset in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors