|
|
| Author |
Message |
KAA
Joined: 08 Apr 2007 Posts: 7 Location: Russia
|
Posted: Mon Apr 09, 2007 7:21 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Mon Apr 09, 2007 7:23 am Post subject: |
|
|
KAA,
Please provide the detailed numeric OID's for the above example.
TheWitness
|
|
| Back to top |
|
 |
KAA
Joined: 08 Apr 2007 Posts: 7 Location: Russia
|
Posted: Mon Apr 09, 2007 8:25 am Post subject: |
|
|
| TheWitness wrote: | KAA,
Please provide the detailed numeric OID's for the above example.
TheWitness |
which OID? this?
.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
.1.3.6.1.2.1.17.7.1.2.2.1.2.1.0.15.61.132.159.255 = INTEGER: 0
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Mon Apr 09, 2007 8:47 am Post subject: |
|
|
Are the port numbers port numbers or indexes?
TheWitness
|
|
| Back to top |
|
 |
KAA
Joined: 08 Apr 2007 Posts: 7 Location: Russia
|
Posted: Mon Apr 09, 2007 8:57 am Post subject: |
|
|
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...
| Code: |
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
|
|
|
| Back to top |
|
 |
Dacob9906 Cacti User
Joined: 03 Apr 2007 Posts: 193 Location: Pullman Washington
|
Posted: Tue Apr 10, 2007 9:21 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9723 Location: MI, USA
|
Posted: Tue Apr 10, 2007 11:35 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Dacob9906 Cacti User
Joined: 03 Apr 2007 Posts: 193 Location: Pullman Washington
|
Posted: Tue Apr 10, 2007 11:40 pm Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
gthe Cacti User
Joined: 29 Jul 2006 Posts: 102 Location: RU
|
Posted: Tue Apr 17, 2007 1:51 pm Post subject: |
|
|
| 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хх.
| Description: |
|
 Download |
| Filename: |
mactrack_dlink_c1.rar |
| Filesize: |
7.68 KB |
| Downloaded: |
139 Time(s) |
|
|
| Back to top |
|
 |
LinuxLoader
Joined: 17 Mar 2006 Posts: 5
|
Posted: Wed Apr 18, 2007 2:59 am Post subject: |
|
|
I have a strange problem after install mactrack
| Code: |
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
|
When i try to add host here is what error it shows to me.
| Code: |
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
|
Evrything else is ok .. i see all mactrack stuff but cant add host.
|
|
| Back to top |
|
 |
KAA
Joined: 08 Apr 2007 Posts: 7 Location: Russia
|
Posted: Thu Apr 19, 2007 3:04 pm Post subject: |
|
|
| 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
| Quote: |
mactrack_dlink_c1.php - функция [get_dlink_l2_switch_ports] - проверено для серий 30хх, 3828 |
i just made few changes, for me it works well
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.
| Quote: |
mactrack_dlink_c2.php - функция [get_dlink_smart_switch_ports] - для серий 21хх. |
it doesn't help me, because we have only 2108 switches which very stupid for this and we do not more buy any 21xx switches
macktrack rocks
| Description: |
| macktrack lib for vendor d-link and for switches >=30xx series |
|
 Download |
| Filename: |
mactrack_dlink_c1.php.zip |
| Filesize: |
4.38 KB |
| Downloaded: |
181 Time(s) |
|
|
| Back to top |
|
 |
sstringham
Joined: 22 Dec 2005 Posts: 5
|
Posted: Fri Apr 20, 2007 3:29 pm Post subject: 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
|
|
| Back to top |
|
 |
Dacob9906 Cacti User
Joined: 03 Apr 2007 Posts: 193 Location: Pullman Washington
|
Posted: Wed May 09, 2007 1:42 pm Post subject: |
|
|
| 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!!
|
|
| Back to top |
|
 |
gordon
Joined: 18 May 2007 Posts: 11
|
Posted: Mon May 21, 2007 11:57 am Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
hades
Joined: 13 Mar 2006 Posts: 11 Location: Newcastle, Australia
|
Posted: Wed May 30, 2007 10:33 pm Post subject: |
|
|
I've seen the same issue as Gordon. It's a bit confusing until you realise what's going on!
Wayne.
|
|
| Back to top |
|
 |
|