- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 06-18-2009 04:02 PM
Resolution
This procedure is based on CISCO-FLASH-MIB, generally available from Cisco IOS releases 12.0.
Management Information Base (MIB) MIB objects used for the config transfer are present under the ciscoFlashCopyTable of the MIB.
MIB Object Name | Object Identifier | Values used in the example |
ciscoFlashCopyCommand | .1.3.6.1.4.1.9.9.10.1.2.1.1.2 | copyToFlashWithErase(1) copyToFlashWithoutErase(2) copyFromFlash(3) |
ciscoFlashCopyEntryStatus | .1.3.6.1.4.1.9.9.10.1.2.1.1.11 | active (1) |
ciscoFlashCopyProtocol | .1.3.6.1.4.1.9.9.10.1.2.1.1.3 | tftp(1) |
ciscoFlashCopyServerAddress | .1.3.6.1.4.1.9.9.10.1.2.1.1.4 | |
ciscoFlashCopySourceName | .1.3.6.1.4.1.9.9.10.1.2.1.1.5 | If from Flash, the file name must be of the form [device>:][:] |
ciscoFlashCopyDestinationName | .1.3.6.1.4.1.9.9.10.1.2.1.1.6 | If to flash, the file name must be of the form [device>:][:] |
ciscoFlashCopyStatus | .1.3.6.1.4.1.9.9.10.1.2.1.1.8 | copyInProgress(1) copyOperationSuccess(2) copyInvalidProtocol(4) copyDeviceFull(12) copyFileOpenError(13) copyFileTransferError(14) copyFileChecksumError(15) copyNoMemory(16) |
Perform these steps to use the CISCO-FLASH-MIB to copy a configuration file located on a TFTP server to Flash on your router.
- Create a row in the ciscoFlashCopy Table, set the necessary values of the attributes, and start the transfer, as shown:
snmpset -v 2c -c .1.3.6.1.4.1.9.9.10.1.2.1.1.2. i 2 .1.3.6.1.4.1.9.9.10.1.2.1.1.3. i 1 .1.3.6.1.4.1.9.9.10.1.2.1.1.4. a "" .1.3.6.1.4.1.9.9.10.1.2.1.1.5. s "" .1.3.6.1.4.1.9.9.10.1.2.1.1.6. s "flash:/" .1.3.6.1.4.1.9.9.10.1.2.1.1.11. i 4
- Check for the completion of transfer process, as shown:
snmpwalk -v 2c -c .1.3.6.1.4.1.9.9.10.1.2.1.1.8.
Repeat the command until the state is copyOperationSuccessful.
- Destroy the row created, as shown:
snmpset -v 2c -c .1.3.6.1.4.1.9.9.10.1.2.1.1.11. i 6
This is an example:
Cisco IOS Router Name/IP Address: 10.0.0.1 Server IP Address: 10.0.0.2 File Name: IOS.img SNMP Read Write Community String: private Random Row number: 50
- Creating a row in the ciscoFlashCopy Table, setting values and starting transfer.
snmpset -v 2c -c private 10.0.0.1 .1.3.6.1.4.1.9.9.10.1.2.1.1.2.50 i 2
.1.3.6.1.4.1.9.9.10.1.2.1.1.3.50 i 1
.1.3.6.1.4.1.9.9.10.1.2.1.1.4.50 a "10.0.0.2"
.1.3.6.1.4.1.9.9.10.1.2.1.1.5.50 s "IOS.img"
.1.3.6.1.4.1.9.9.10.1.2.1.1.6.50 s "flash:/IOS.img"
.1.3.6.1.4.1.9.9.10.1.2.1.1.11.50 i 4
- Checking the transfer status. Repeat checking until the status is successful.
snmpwalk -v 2c -c private 10.0.0.1 .1.3.6.1.4.1.9.9.10.1.2.1.1.8.50
- Destroying the row.
snmpset -v 2c -c private 10.0.0.1 .1.3.6.1.4.1.9.9.10.1.2.1.1.11.50 i 6