Hi - having a problem with the above and hoping someone can help. I'm trying to add a CISCO WS6509 to Mac Track but it kept being showing as Status "Error" in the Device Report View.
I can see there is a device type configured for 6509's BUT the "System Description Match" doesn't look anything like ours. Our System Description is:
"Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-VM), Version 12.2(33)SXH3, RELEASE SOFTWARE (fc1)"
And I've been told this might be because we have a pair of 6509's running something called "VSS" which makes them appear as one and this is why the System Description is like this.
However I've tried to add a new device type based on the 6509 template but can't get this to work either. Essentially I wanted to change the "System Description Match" field to be "s72033_rp-ADVIPSERVICESK9_WAN-VM" but it truncates the field to be "s72033_rp-ADVIPSERVI"
So when I run the mactrack_scanner.php script it still just reports:
php -q /var/www/cacti/plugins/mactrack/mactrack_scanner.php -id=9 -d
DEBUG: HOST: 192.168.118.251 is alive, processing has begun.
DEBUG: WARNING: SITE: Computer room, IP: 192.168.118.251, TYPE: Cisco IOS Software, s72033_rp Software (, Device Type Not Found in Device Type Table.
DEBUG: WARNING: SITE: Computer room, IP: 192.168.118.251, TYPE: Cisco IOS Software, s72033_rp Software (, Device Type Not Found in Device Type Table.
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '2',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',snmp_readstring='CACTI',snmp_sysName='xxxx-xxx-xxx-xx',snmp_sysLocation='cab E13(switch1) F13(switch2)',snmp_sysContact='xxx@xxx-xxx',snmp_sysObjectID='.1.3.6.1.4.1.9.1.896',snmp_sysDescr='Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-VM), Version 12.2(33)SXH3, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Fri 25-Jul-08 04:37 by p',snmp_sysUptime='1577281532',snmp_status='4',last_runmessage='WARNING: Device Type Not Found in Device Type Table.',last_rundate='2009-02-04 12:36:30',last_runduration='0.0097' WHERE device_id ='9'
So it fails to find the Devive Type? I've made numerous changes to the "System Description Match" field and used the wildcard "%" but still no joy.
I can see that the script actually calls the "lib/mactrack_functions.php" script and I think it is this that is doing the checks to find a match for the Device Type, however I'm not a PHP developer so although I can basically read the code I have no idea what / if anything could be changed to get it to recognise the Device Type based on the System Description it is being given. The code makes use of various PHP "trim" + "substr" functions so it's possible it's truncating the result or discarding the part it needs to match as it's not a standard CISCO System Description?
If I amend the "mactrack_scanner.php" script line 166 where it refers to "Device Type Not Found in Device Type Table." I can actually get it to display the full "System Description" - just change ",0,40)" to ",0,120)" so I'm confident that the snmp query does return the full "System Description"
Any help would be greatly appreciated.
Thanks - J.
[FC] Device Type Not Found in Device Type Table
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 113
- Joined: Thu Mar 13, 2008 3:36 am
-
- Cacti User
- Posts: 113
- Joined: Thu Mar 13, 2008 3:36 am
FYI - found some other threads regarding this ... no solution though by the looks of it. Did make the DB Table change so that sysDescr_match is now varchar(100) in the mac_track_device_types table so that I can have "s72033_rp-ADVIPSERVICESK9_WAN-VM" in the "System Description Match" rather than it getting truncated.
J.
J.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This should be in SVN shortly. Marking for MacTrack 2.0.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 0 guests