Serial Number Base OID Option?

Support questions about the MAC Track plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
pgus
Posts: 47
Joined: Fri Feb 10, 2006 9:54 am

Serial Number Base OID Option?

#1 Post by pgus » Mon Sep 29, 2008 1:43 pm

What is this,Serial Number Base OID?
Can someone explain,please

/pgus

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#2 Post by TheWitness » Tue Sep 30, 2008 6:19 pm

If your device stores the serial number as an OID or group of group of OID's accessible via a snmpwalk, then specify that in the Device Type.

However, I don't know if it actually works :( It's been a while since I touched that code.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

User avatar
pgus
Posts: 47
Joined: Fri Feb 10, 2006 9:54 am

#3 Post by pgus » Thu Oct 02, 2008 3:17 pm

Hi!

But that are the purpose? Can I view it somewhere?

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#4 Post by TheWitness » Fri Oct 03, 2008 10:31 am

It's not visible in the interface, but in the database. That was a UI component that I never finished.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

User avatar
Vins
Cacti User
Posts: 116
Joined: Tue Sep 12, 2006 3:06 am

#5 Post by Vins » Mon Jun 15, 2009 7:57 am

TheWitness wrote:It's not visible in the interface, but in the database.

TheWitness
Mmh... :(

searched through the entire DB, wasn't able to find nothing else than the

mac_track_device_types.serial_number_oid

but it's stored anywhere in the DB?

User avatar
jrush
Posts: 8
Joined: Tue May 30, 2017 3:50 am

Re: Serial Number Base OID Option?

#6 Post by jrush » Tue May 30, 2017 3:59 am

I think 'Device Serial Number' is not used yet in Mactrack DB, only 'serial_number_oid' exist, but not used in SNMP request functions and not stored in DB.
But for serials, in most cases, can be used this standard OID:
entPhysicalSerialNum.1 (.1.3.6.1.2.1.47.1.1.1.1.11.1)
(not always .1 at the end on different vendors)
This command will show list of available Serials on device

Code: Select all

snmpwalk -v2c -c public <device-ip> .1.3.6.1.2.1.47.1.1.1.1.11
For searching available 'serials' in your MIB tree, can be used this command:

Code: Select all

snmptranslate -TB '.*erial.*'
###########
In past, in code of plugin, was exist column 'serial_number' in table 'mac_track_devices', but it was deleted:

Code: Select all

./database_upgrade.php: delete_column("mac_track_devices", "serial_number",   "ALTER TABLE `mac_track_devices` DROP COLUMN `serial_number`, ENGINE=MyISAM;");
And this 'serial_number_oid' variable was added to table 'mac_track_device_types' (i think for adding automatics for getting serials via SNMP):

Code: Select all

./database_upgrade.php: add_column("mac_track_device_types", "serial_number_oid", "ALTER TABLE `mac_track_device_types` ADD COLUMN `serial_number_oid` VARCHAR(100) DEFAULT '' AFTER `scanning_function`, ENGINE=MyISAM;");

Post Reply