Welcome, Guest. Please login or register.

Author Topic: Bootimage: Filename VS Imageversion on Cisco  (Read 1501 times)

dohco

  • Newbie
  • *
  • Posts: 32
    • View Profile
Bootimage: Filename VS Imageversion on Cisco
« on: September 29, 2015, 04:14:32 PM »
Intro to the problem:
I've made a provisioning system for our switches that upgrades the switch to the latest version of IOS and prime the switch with a standard config.
To make it easy to upgrade the IOS in the future I've created a link from the latest IOS to current.bin on the repository server, which will be the filename on flash: of the switch.

Now to the problem:
When I make a Reports - Combination, the bootimage appears as current.bin instead of the actual IOS version.
Is it possible to change the OID where the bootimage is fetched from?

snmpwalk on the switch:
user@somemachine:~# snmpwalk -v2c -On -c somepassword 192.168.x.x | grep "15.2"
.1.3.6.1.2.1.1.1.0 = STRING: Cisco IOS Software, C2960C Software (C2960c405ex-UNIVERSALK9-M), Version 15.2(2a)E1, RELEASE SOFTWARE (fc1)
.1.3.6.1.2.1.47.1.1.1.1.9.1001 = STRING: "15.2(2a)E1"
.1.3.6.1.2.1.47.1.1.1.1.10.1001 = STRING: "15.2(2a)E1"

user@somemachine:~# snmpwalk -v2c -On -c somepassword 192.168.x.x | grep "current.bin"
.1.3.6.1.2.1.16.19.6.0 = STRING: "flash:current.bin"

Regards
Conny

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2687
    • View Profile
    • NeDi
Re: Bootimage: Filename VS Imageversion on Cisco
« Reply #1 on: October 01, 2015, 11:28:24 AM »
If your question is, will I change all .defs to use the version rather than the filename the answer is: "it depends" :) That's quite a lot of work (considering testing for all possible types)...

It remains to be seen where Cisco (and others) are going with the modular images, where the name doesn't reveal any version information anyway. I'll include .defs for new devices from the community, thus everybody can affect where this is going.
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

dohco

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Bootimage: Filename VS Imageversion on Cisco
« Reply #2 on: October 01, 2015, 02:11:52 PM »
This isn't a biggie.
I was just lazy and wanted to see if there was a quick fix  ;)
The best way to go is for me to rewrite the tcl-script that primes the switch, to also write the right bootfilename in the config.

Regards
Conny