Specifications
Chapter 7. Maintenance and troubleshooting 287
Managing the configuration through SNMP
This section describes how to use MIB calls to work with switch images and
configuration files.
You can use a standard SNMP tool to perform the actions, using the MIBs listed in Table 7-1.
For information about how to set up your switch to use SNMP, see 7.3.2, “SNMP” on
page 297.
Table 7-1 SNMP MIBs for managing switch configuration and firmware
The following SNMP actions can be performed by using the MIBs listed in Table 7-1:
Load a new Switch image (boot or running) from an FTP/TFTP server.
Load a previously saved switch configuration from an FTP/TFTP server.
Save the switch configuration to an FTP/TFTP server.
Save a switch memory dump to an FTP/TFTP server.
Loading a new switch image
To load a new switch image with the name MyNewImage-1.img into image2, complete the
following steps. This example shows an FTP/TFTP server at IPv4 address 172.25.101.200,
although IPv6 is also supported.
1. Set the FTP/TFTP server address where the configuration file is saved:
Set agTransferServer.0 "172.25.101.200".
2. Set the name of the configuration file:
Set agTransferCfgFileName.0 "MyRunningConfig.cfg"
3. If you are using an FTP server, enter a user name:
Set agTransferUserName.0 "MyName"
4. If you are using an FTP server, enter a password:
Set agTransferPassword.0 "MyPassword"
5. Initiate the transfer. To save a running configuration file, enter 4.
Set agTransferAction.0 "4"
MIB name MIB OID
agTransferServer 1.3.6.1.4.1872.2.5.1.1.7.1.0
agTransferImage 1.3.6.1.4.1872.2.5.1.1.7.2.0
agTransferImageFileName 1.3.6.1.4.1872.2.5.1.1.7.3.0
agTransferCfgFileName 1.3.6.1.4.1872.2.5.1.1.7.4.0
agTransferDumpFileName 1.3.6.1.4.1872.2.5.1.1.7.5.0
agTransferAction 1.3.6.1.4.1872.2.5.1.1.7.6.0
agTransferLastActionStatus 1.3.6.1.4.1872.2.5.1.1.7.7.0
agTransferUserName 1.3.6.1.4.1872.2.5.1.1.7.9.0
agTransferPassword 1.3.6.1.4.1.1872.2.5.1.1.7.10.0
agTransferTSDumpFileName 1.3.6.1.4.1.1872.2.5.1.1.7.11.0