perl-cisco-copyconfig
Provides methods for manipulating the running-config of Cisco devices running IOS via SNMP directed TFTP. Handy for making changes or backups on many devices without logging into each one.
Description
Cisco::CopyConfig is a Perl module that enables manipulation of Cisco device configurations remotely. It targets devices running IOS and uses SNMP to direct TFTP operations, allowing users to push or pull configuration changes without interactive logins.
This tool is particularly useful for administrators managing large numbers of Cisco devices. Instead of writing complex expect scripts that require frequent maintenance, Cisco::CopyConfig offers a reliable method for batch operations like backups or standardized configuration updates.
Its lightweight installation size of 32 KB and dependency on standard SNMP Perl libraries make it easy to deploy in Kali Linux environments for network administration and security testing tasks.
How It Works
The tool leverages SNMP to instruct Cisco IOS devices to perform TFTP transfers of their running-config. It directs the device to either send its current configuration to a TFTP server (for backups) or retrieve a new configuration file from the TFTP server (for updates). This SNMP-directed TFTP mechanism avoids the need for direct shell access or interactive scripting.
Installation
sudo apt install perl-cisco-copyconfigExamples
use Cisco::CopyConfig;my $cc = Cisco::CopyConfig->new(...);$cc->backup_config('tftp://server/backup.cfg');$cc->restore_config('tftp://server/new-config.cfg');$cc->get_config();$cc->push_config($config_text);