Automated Cisco 3702 configuration file generator and programmer
- Built in tftp server
- Wizard on first run
- Converts AP to autonomous
- Sets a temporary IP address on BVI1
- Uploads new firmware via tftp
- Uploads generated config via tftp
- Checks current status of 3702
- If already configured (prompts to over-write)
- If already autonomous
- If already firmware updated
- Does a ping test
- Whole thing is looped for easy batching
- Windows only
- Serial connection to 3702
- Ethernet connection to 3702
- A template configuration file
- Replace BVI interface ip address with {ip} in config file
- Replace hostname with {hostname} in config file
- Put this in the same directory as ac_run.exe
- Firmware file if upgrading (See TODO)
- Use ac_run.exe in /dist/
- A wizard will launch on first run (not Gandalf unfortunatly)
- Follow prompts
- Rest should be self explanitory
- A /lists/master.csv (generated on first run)
- list of devices name,ip
- Saves manually trying to find an IP address
- Starts tftp server in a parallel process
- Checks for a settings.txt file
- Lauches wizard if it doesn't exist
- Parameters are stored in a settings.txt file
- COM port
- Temp IP address for 3702
- PC IP address
- Hostname prefix and suffix
- Template file location
- Upper or lowercase for hostname
- Prompts for a name
- Looks up name against master.csv to retrieve IP address
- Prompts if there is no match
- Generates a config file based on template
- Initialized serial COM port
- Waits for 3702 to boot
- Checks if autonomous
- Checks firmware version
- Checks configuration status
- Does whatever needs to be done at this point
- Converts to autonomous if it isn't already
- Uploads firmware if it isn't updated
- Sets BVI interface with temp IP
- Uploads config
- Copies config to running-config
- Performs a ping test and checks if config actually loaded
- Writes to memory
- Starts again
See TODO