Serial Number Base OID Option?

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
pgus
Cacti User
Posts: 55
Joined: Fri Feb 10, 2006 9:54 am

Serial Number Base OID Option?

Post by pgus »

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

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

Post by TheWitness »

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 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?
User avatar
pgus
Cacti User
Posts: 55
Joined: Fri Feb 10, 2006 9:54 am

Post by pgus »

Hi!

But that are the purpose? Can I view it somewhere?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 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?
User avatar
Vins
Cacti User
Posts: 116
Joined: Tue Sep 12, 2006 3:06 am

Post by Vins »

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?

Post by jrush »

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

Who is online

Users browsing this forum: No registered users and 1 guest