Place Your Feature Requests & Bug Reports Here
Moderators: Developers, Moderators
Hello,
1. How to obtain mac-addresses from device with such storage in snmp oid 1.3.6.1.2.1.17.7.1.2.2.1.2
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.15.61.132.159.255 = INTEGER: 0
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.192.159.134.194.92 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.21.242.169.11.194 = INTEGER: 23
1, 2 -> VLAN numbers
0, 1, 23 -> ports number (the port number 0 denotes, that this is a switch MAC-address on which we looking for.. )
0.21.242.169.11.194 (decimal) -> 00-15-F2-A9-0B-C2 (hexadecimal) -> MAC-address
any method exist in mactrack functions for now? for d-link switches 30xx/35xx/3xxx/xxxx series or how to do this, desirably with examples.
2. how to obtain all data from FreeBSD snmp-enabled(net-snmp) host? for now, with Switch/Router type and with get_generic_dot1q_switch_ports function we can obtain mac's and ip's to database, but not in mactrack view, only see this ip's if database has same mac's on viewed switch, how to correct this?
how to view all vlan-interfaces on FreeBSD with mactrack?
sorry for my english...
cacti rocks
mactrack rocks
1. How to obtain mac-addresses from device with such storage in snmp oid 1.3.6.1.2.1.17.7.1.2.2.1.2
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.15.61.132.159.255 = INTEGER: 0
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.192.159.134.194.92 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.2.0.21.242.169.11.194 = INTEGER: 23
1, 2 -> VLAN numbers
0, 1, 23 -> ports number (the port number 0 denotes, that this is a switch MAC-address on which we looking for.. )
0.21.242.169.11.194 (decimal) -> 00-15-F2-A9-0B-C2 (hexadecimal) -> MAC-address
any method exist in mactrack functions for now? for d-link switches 30xx/35xx/3xxx/xxxx series or how to do this, desirably with examples.
2. how to obtain all data from FreeBSD snmp-enabled(net-snmp) host? for now, with Switch/Router type and with get_generic_dot1q_switch_ports function we can obtain mac's and ip's to database, but not in mactrack view, only see this ip's if database has same mac's on viewed switch, how to correct this?
how to view all vlan-interfaces on FreeBSD with mactrack?
sorry for my english...
cacti rocks
mactrack rocks
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
KAA,
Please provide the detailed numeric OID's for the above example.
TheWitness
Please provide the detailed numeric OID's for the above example.
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Are the port numbers port numbers or indexes?
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?
port numbers is port numbers
this denotes what this mac learned from this port...
so tell d-link
this is d-link des-3018 , same as 3026 and 3526 and other d-link switches...
this denotes what this mac learned from this port...
so tell d-link
this is d-link des-3018 , same as 3026 and 3526 and other d-link switches...
Code: Select all
snmpwalk -c public -v2c b7-s1 1.3.6.1.2.1.17.7.1.2.2.1.2 | less
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.2.85.83.70.135 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.4.35.204.51.152 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.4.35.215.117.54 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.4.53.0.26.102 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.7.233.10.27.5 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.33.174.238.198 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.70.60.209.247 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.70.101.132.65 = INTEGER: 0
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.70.102.84.99 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.70.109.132.56 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.19.70.225.166.228 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.21.96.169.40.68 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.23.49.88.18.224 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.23.164.12.124.64 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.23.164.92.238.128 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.25.91.8.40.146 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.100.0.162.180.116.57.22 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.0.28.216.55.23 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.4.75.0.189.94 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.4.97.105.156.145 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.7.233.10.27.5 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.8.161.153.254.195 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.8.161.154.3.150 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.12.110.36.48.10 = INTEGER: 2
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.14.166.88.252.117 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.15.61.48.47.34 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.15.61.50.128.242 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.15.176.87.12.225 = INTEGER: 10
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.17.36.126.244.130 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.17.47.234.214.28 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.17.91.35.15.167 = INTEGER: 15
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.17.149.92.197.133 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.17.216.194.98.240 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.70.39.148.194 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.70.79.182.10 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.143.197.206.118 = INTEGER: 5
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.143.249.13.253 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.212.4.177.55 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.19.212.218.38.29 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.23.49.98.29.144 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.23.49.181.42.101 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.23.154.108.207.110 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.26.75.169.208.88 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.160.201.241.225.33 = INTEGER: 8
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.160.209.51.35.128 = INTEGER: 1
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.224.76.166.231.242 = INTEGER: 16
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.224.76.182.122.152 = INTEGER: 2
SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.107.0.224.76.221.222.56 = INTEGER: 1
So, I don't really know if this is possible or if MacTrack already does it, but I was thinking that the plugin would be way cool (don't get me wrong, it already looks cool, I will be implementing it in a few days) if it could map the IP's of the objects connected to a switch to there Mac addresses that it currently maps. That, at least for me, would make it like a... a super tool. Thanks!!
Let me know if I'm retarted and that would be way hard or impossible.
Let me know if I'm retarted and that would be way hard or impossible.
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Well, although what you said make no sense, I believe this will do what you think it does. However, with regards to the AP's that you are fooling with, Cisco masks the MAC address mappings (Bridge Table) if you use 802.1x. That may be an ACL on their part. You figure it out and then tell me. A TAC case might just help.
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?
Hmmm, ok, maybe I tottally don't get what MacTrack really does then??
I was under the impression that it would allow you to see the MAC address of whatever is attached to a specific port on a switch? Is that correct?
I was under the impression that it would allow you to see the MAC address of whatever is attached to a specific port on a switch? Is that correct?
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Держи архив с двумя файлами.KAA wrote:port numbers is port numbers
this denotes what this mac learned from this port...
so tell d-link
this is d-link des-3018 , same as 3026 and 3526 and other d-link switches...
mactrack_dlink_c1.php - функция [get_dlink_l2_switch_ports] - проверено для серий 30хх, 3828
mactrack_dlink_c2.php - функция [get_dlink_smart_switch_ports] - для серий 21хх.
- Attachments
-
- mactrack_dlink_c1.rar
- (7.68 KiB) Downloaded 479 times
-
- Posts: 15
- Joined: Fri Mar 17, 2006 9:43 am
I have a strange problem after install mactrack
When i try to add host here is what error it shows to me.
Evrything else is ok .. i see all mactrack stuff but cant add host.
Code: Select all
OS is gentoo net-analyzer/cacti-0.8.6j-r4
PHP 5.2.1-pl3-gentoo (cli) (built: Apr 5 2007 12:58:09)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
mysql Ver 14.12 Distrib 5.0.26, for pc-linux-gnu (i686) using readline 5.1
Server version: Apache/2.0.58
Server built: Apr 4 2007 11:50:58
Code: Select all
Notice: Undefined index: device_name in /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php on line 79
Notice: Undefined index: notes in /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php on line 83
Notice: Undefined index: user_name in /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php on line 83
Notice: Undefined index: user_password in /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php on line 83
Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php:79) in /var/www/localhost/htdocs/cacti/plugins/mactrack/mactrack_devices.php on line 87
Спасибо большое, но не культурно на не принятом на форуме языке говоритьgthe wrote:Держи архив с двумя файлами.KAA wrote:port numbers is port numbers
this denotes what this mac learned from this port...
so tell d-link
this is d-link des-3018 , same as 3026 and 3526 and other d-link switches...
Thank you very much
i just made few changes, for me it works wellmactrack_dlink_c1.php - функция [get_dlink_l2_switch_ports] - проверено для серий 30хх, 3828
fixed:
1. small bug with dec2hex with 00 at the end of hex mac.
2. port_name now have ifAlias for this port.
3. fixed vlan_id, i have vlan_id's above 100 and with original version i have a problem to get correct value and vlan_name from incorrect vlan_id, because it have only XX value
but anyway, thanks, we have many such switches like 30xx.
it doesn't help me, because we have only 2108 switches which very stupid for this and we do not more buy any 21xx switchesmactrack_dlink_c2.php - функция [get_dlink_smart_switch_ports] - для серий 21хх.
macktrack rocks
- Attachments
-
- mactrack_dlink_c1.php.zip
- macktrack lib for vendor d-link and for switches >=30xx series
- (4.38 KiB) Downloaded 428 times
-
- Posts: 5
- Joined: Thu Dec 22, 2005 6:15 pm
undefined index errors
I updated from the .0.0.1b code to the svn version today. (I am just now getting started with MacTrack - so far so good).
I am now getting undefined index errors periodically during the queries.
EBUG: CMD: /usr/bin/php -q /usr/share/cacti/plugins/mactrack/mactrack_scanner.php -id=10 -d
DEBUG: A process cycle launch just completed.
DEBUG: A process cycle launch just completed.
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: A process cycle launch just completed.
PHP Notice: Undefined index: 104 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 104 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 105 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 105 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 106 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 106 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 107 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 107 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 108 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 108 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 109 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
Any ideas?
PHP 5.0.4 / Fedora 4.
Thanks
I am now getting undefined index errors periodically during the queries.
EBUG: CMD: /usr/bin/php -q /usr/share/cacti/plugins/mactrack/mactrack_scanner.php -id=10 -d
DEBUG: A process cycle launch just completed.
DEBUG: A process cycle launch just completed.
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: A process cycle launch just completed.
PHP Notice: Undefined index: 104 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 104 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 105 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 105 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 106 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 106 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 107 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 107 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 108 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
PHP Notice: Undefined index: 108 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 474
PHP Notice: Undefined index: 109 in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465
Any ideas?
PHP 5.0.4 / Fedora 4.
Thanks
Would it be possible to make mactrack log changes to what has been happening with the tables in the switches. In case say, something moves without me knowing about it, or someone adds a machine onto a switch. Maybe under a log section within "device tracking management". Just something that might be usefull for future releases. Thanks!!
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Pullman School District
jbergman@psd267.wednet.edu
Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
Minor UI issue:
When viewing MAC/IP report for a site with multiple pages of results and then switching to another site with fewer pages of results, having gone beyond the number of pages, it show s"No Mac Track Port Results" with a message something like: "Showing Rows 391 to 13 of 13 [...1]" above. Maybe just configuring the site drop menu to default to page 1 would be more user friendly?
When viewing MAC/IP report for a site with multiple pages of results and then switching to another site with fewer pages of results, having gone beyond the number of pages, it show s"No Mac Track Port Results" with a message something like: "Showing Rows 391 to 13 of 13 [...1]" above. Maybe just configuring the site drop menu to default to page 1 would be more user friendly?
Who is online
Users browsing this forum: No registered users and 0 guests