napalm-automation / napalm-ios

Apache License 2.0
32 stars 40 forks source link

get_facts()['version'] Unknown on old 2950 #218

Closed bewing closed 6 years ago

bewing commented 6 years ago

New test case needed.

c2950#show version
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA13, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by cisco Systems, Inc.
Compiled Fri 27-Feb-09 22:20 by amvarma
Image text-base: 0x80010000, data-base: 0x80680000

ROM: Bootstrap program is C2950 boot loader

c2950 uptime is 31 weeks, 1 day, 22 hours, 29 minutes
System returned to ROM by power-on
System restarted at 10:02:41 CDT Sat Mar 18 2017
System image file is "flash:/c2950-i6k2l2q4-mz.121-22.EA13.bin"

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

cisco WS-C2950T-48-SI (RC32300) processor (revision F0) with 19912K bytes of memory.
Processor board ID FHK09220000
Last reset from system-reset
Running Standard Image
48 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:14:DE:AD:BE:EF
Motherboard assembly number: 73-0000-03
Power supply part number: 34-0000-01
Motherboard serial number: FOC09200000
Power supply serial number: DAB09190000
Model revision number: F0
Motherboard revision number: A0
Model number: WS-C2950T-48-SI
System serial number: FHK09220000
CLEI Code Number: CNMRU00000
Top Assembly Part Number: 800-20000-02
Top Assembly Revision Number: A0
Version ID: N/A
Configuration register is 0xF

c2950#
In [6]: d.get_facts()
Out[6]:
{u'fqdn': u'c2950.example.com',
 u'hostname': u'c2950',
 u'interface_list': [u'Vlan1',
  u'FastEthernet0/1',
  u'FastEthernet0/2',
  u'FastEthernet0/3',
  u'FastEthernet0/4',
  u'FastEthernet0/5',
  u'FastEthernet0/6',
  u'FastEthernet0/7',
  u'FastEthernet0/8',
  u'FastEthernet0/9',
  u'FastEthernet0/10',
  u'FastEthernet0/11',
  u'FastEthernet0/12',
  u'FastEthernet0/13',
  u'FastEthernet0/14',
  u'FastEthernet0/15',
  u'FastEthernet0/16',
  u'FastEthernet0/17',
  u'FastEthernet0/18',
  u'FastEthernet0/19',
  u'FastEthernet0/20',
  u'FastEthernet0/21',
  u'FastEthernet0/22',
  u'FastEthernet0/23',
  u'FastEthernet0/24',
  u'FastEthernet0/25',
  u'FastEthernet0/26',
  u'FastEthernet0/27',
  u'FastEthernet0/28',
  u'FastEthernet0/29',
  u'FastEthernet0/30',
  u'FastEthernet0/31',
  u'FastEthernet0/32',
  u'FastEthernet0/33',
  u'FastEthernet0/34',
  u'FastEthernet0/35',
  u'FastEthernet0/36',
  u'FastEthernet0/37',
  u'FastEthernet0/38',
  u'FastEthernet0/39',
  u'FastEthernet0/40',
  u'FastEthernet0/41',
  u'FastEthernet0/42',
  u'FastEthernet0/43',
  u'FastEthernet0/44',
  u'FastEthernet0/45',
  u'FastEthernet0/46',
  u'FastEthernet0/47',
  u'FastEthernet0/48',
  u'GigabitEthernet0/1',
  u'GigabitEthernet0/2'],
 u'model': u'WS-C2950T-48-SI',
 u'os_version': u'Unknown',
 u'serial_number': u'FHK09220000',
 u'uptime': 18916020,
 u'vendor': u'Cisco'}
ktbyers commented 6 years ago

@bewing Closed here...opened here (reunification of napalm):

https://github.com/napalm-automation/napalm/issues/425