1SNMP::Info::CiscoConfigU(s3e)r Contributed Perl DocumentaStNiMoPn::Info::CiscoConfig(3)
2
3
4

NAME

6       SNMP::Info::CiscoConfig - SNMP Interface to Cisco Configuration Files
7

AUTHOR

9       Justin Hunter, Eric Miller
10

SYNOPSIS

12           my $ciscoconfig = new SNMP::Info(
13                                 AutoSpecify => 1,
14                                 Debug       => 1,
15                                 DestHost    => 'myswitch',
16                                 Community   => 'public',
17                                 Version     => 2
18                               )
19
20           or die "Can't connect to DestHost.\n";
21
22           my $class = $ciscoconfig->class();
23           print " Using device sub class : $class\n";
24

DESCRIPTION

26       SNMP::Info::CiscoConfig is a subclass of SNMP::Info that provides an
27       interface to CISCO-CONFIG-COPY-MIB, CISCO-FLASH-MIB, and OLD-CISCO-SYS-
28       MIB.  These MIBs facilitate the writing of configuration files.
29
30       Use or create a subclass of SNMP::Info that inherits this one.  Do not
31       use directly.
32
33   Inherited Classes
34           None.
35
36   Required MIBs
37       CISCO-CONFIG-COPY-MIB
38       CISCO-FLASH-MIB
39       OLD-CISCO-SYS-MIB
40

GLOBALS

42       These are methods that return scalar value from SNMP
43
44       $ciscoconfig->old_write_mem()
45           ("writeMem")
46
47       $ciscoconfig->old_write_net()
48           ("writeNet")
49

TABLE METHODS

51       These are methods that return tables of information in the form of a
52       reference to a hash.
53
54   Config Copy Request Table  ("ccCopyTable")
55       $ciscoconfig->config_protocol()
56           ("ccCopyProtocol")
57
58       $ciscoconfig->config_source_type()
59           ("ccCopySourceFileType")
60
61       $ciscoconfig->config_dest_type()
62           ("ccCopyDestFileType")
63
64       $ciscoconfig->config_server_addr()
65           ("ccCopyServerAddress")
66
67       $ciscoconfig->config_filename()
68           ("ccCopyFileName")
69
70       $ciscoconfig->config_username()
71           ("ccCopyUserName")
72
73       $ciscoconfig->config_password()
74           ("ccCopyUserPassword")
75
76       $ciscoconfig->config_notify_complete()
77           ("ccCopyNotificationOnCompletion")
78
79       $ciscoconfig->config_copy_state()
80           ("ccCopyState")
81
82       $ciscoconfig->config_copy_start_time()
83           ("ccCopyTimeStarted")
84
85       $ciscoconfig->config_copy_complete_time()
86           ("ccCopyTimeCompleted")
87
88       $ciscoconfig->config_fail_cause()
89           ("ccCopyFailCause")
90
91       $ciscoconfig->config_row_status()
92           ("ccCopyEntryRowStatus")
93
94   Flash Copy Table ("ciscoFlashCopyTable")
95       Table of Flash copy operation entries.
96
97       $ciscoconfig->flash_copy_cmd()
98           ("ciscoFlashCopyCommand")
99
100       $ciscoconfig->flash_copy_protocol()
101           ("ciscoFlashCopyProtocol")
102
103       $ciscoconfig->flash_copy_address()
104           ("ciscoFlashCopyServerAddress")
105
106       $ciscoconfig->flash_copy_source()
107           ("ciscoFlashCopySourceName")
108
109       $ciscoconfig->flash_copy_dest()
110           ("ciscoFlashCopyDestinationName")
111
112       $ciscoconfig->flash_copy_row_status()
113           ("ciscoFlashCopyEntryStatus")
114

SET METHODS

116       These are methods that provide SNMP set functionality for overridden
117       methods or provide a simpler interface to complex set operations.  See
118       "SETTING DATA VIA SNMP" in SNMP::Info for general information on set
119       operations.
120
121       $ciscoconfig->copy_run_tftp (tftpserver, tftpfilename )
122           Store the running configuration on a TFTP server.  Equivalent to
123           the CLI commands "copy running-config tftp" or "write net".
124
125           This method attempts to use newer "copy running-config tftp"
126           procedure first and then the older "write net" procedure if that
127           fails.  The newer procedure is supported Cisco devices with the
128           CISCO-CONFIG-COPY-MIB available, Cisco IOS software release 12.0 or
129           on some devices as early as release 11.2P.  The older procedure has
130           been depreciated by Cisco and is utilized only to support devices
131           running older code revisions.
132
133            Example:
134            $ciscoconfig->copy_run_tftp('1.2.3.4', 'myconfig')
135               or die "Couldn't save config. ",$ciscoconfig->error(1);
136
137       $ciscoconfig->copy_run_start()
138           Copy the running configuration to the start up configuration.
139           Equivalent to the CLI command "copy running-config startup-config"
140           or "write mem".
141
142           This method attempts to use newer "copy running-config
143           startup-config" procedure first and then the older "write mem"
144           procedure if that fails.  The newer procedure is supported Cisco
145           devices with the CISCO-CONFIG-COPY-MIB available, Cisco IOS
146           software release 12.0 or on some devices as early as release 11.2P.
147           The older procedure has been depreciated by Cisco and is utilized
148           only to support devices running older code revisions.
149
150            Example:
151            $ciscoconfig->copy_run_start()
152               or die "Couldn't save config. ",$ciscoconfig->error(1);
153
154
155
156perl v5.36.0                      2022-07-22        SNMP::Info::CiscoConfig(3)
Impressum