SNMP::Info::CiscoConfig(3pm) | User Contributed Perl Documentation | SNMP::Info::CiscoConfig(3pm) |
SNMP::Info::CiscoConfig - SNMP Interface to Cisco Configuration Files
Justin Hunter, Eric Miller
my $ciscoconfig = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $ciscoconfig->class(); print " Using device sub class : $class\n";
SNMP::Info::CiscoConfig is a subclass of SNMP::Info that provides an interface to CISCO-CONFIG-COPY-MIB, CISCO-FLASH-MIB, and OLD-CISCO-SYS-MIB. These MIBs facilitate the writing of configuration files.
Use or create a subclass of SNMP::Info that inherits this one. Do not use directly.
These are methods that return scalar value from SNMP
These are methods that return tables of information in the form of a reference to a hash.
Table of Flash copy operation entries.
These are methods that provide SNMP set functionality for overridden methods or provide a simpler interface to complex set operations. See "SETTING DATA VIA SNMP" in SNMP::Info for general information on set operations.
This method attempts to use newer "copy running-config tftp" procedure first and then the older "write net" procedure if that fails. The newer procedure is supported Cisco devices with the CISCO-CONFIG-COPY-MIB available, Cisco IOS software release 12.0 or on some devices as early as release 11.2P. The older procedure has been depreciated by Cisco and is utilized only to support devices running older code revisions.
Example: $ciscoconfig->copy_run_tftp('1.2.3.4', 'myconfig') or die "Couldn't save config. ",$ciscoconfig->error(1);
This method attempts to use newer "copy running-config startup-config" procedure first and then the older "write mem" procedure if that fails. The newer procedure is supported Cisco devices with the CISCO-CONFIG-COPY-MIB available, Cisco IOS software release 12.0 or on some devices as early as release 11.2P. The older procedure has been depreciated by Cisco and is utilized only to support devices running older code revisions.
Example: $ciscoconfig->copy_run_start() or die "Couldn't save config. ",$ciscoconfig->error(1);
2023-09-30 | perl v5.36.0 |