Can't Ignore Ports on 3com 3300/4400s
Moderators: Developers, Moderators
Can't Ignore Ports on 3com 3300/4400s
Hello all,
I'm trying to figure out how to ignore ports on Mactrack. I've updated to the latest non-SVN version and am getting information properly.
So far I've tried "RMON Port X unit Y" and the PortY/X method that was apparently used by someone on the old 3com 1100s, but neither of those seem to work. Has anyone gotten Port Ignore to work on these switches? What should I be naming for the port ignores?
Thanks!
I'm trying to figure out how to ignore ports on Mactrack. I've updated to the latest non-SVN version and am getting information properly.
So far I've tried "RMON Port X unit Y" and the PortY/X method that was apparently used by someone on the old 3com 1100s, but neither of those seem to work. Has anyone gotten Port Ignore to work on these switches? What should I be naming for the port ignores?
Thanks!
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
lol. The new feature will have to be done at some point.
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?
Hmm, ok, so through some testing I've determined that using a straight up port number like 49 does seem to work. Unfortunately, we have several stacked switches that have different interconnects that I want to ignore. Currently Mactrack ignores which unit in the stack it's on and just ignores all port 49s.
I also noticed something that might be related. Under the port number column of the Mac Address table it only gives me a port number, not a port and stack number.
Is there any way to resolve these two issues?
I also noticed something that might be related. Under the port number column of the Mac Address table it only gives me a port number, not a port and stack number.
Is there any way to resolve these two issues?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You need to modify the scanning function and when you have it right, you can contribute back to the project by submitting your modified scanning function at: http://bugs.cacti.net
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?
I'm willing to take a crack at it, but if you could point me a bit more towards where I should be modifying I would appreciate it. My PHP skills are a bit rusty at the moment. I suspect I should be working on either "mactrack_scanning.php" or "lib/mactrack_3com.php" but I'm not sure which. Also, which function(s) within those should I be focusing on?
Just put an office with all old 3com switches Superstack 2 and 3's on mactrack.
My trick with the 1/25 doesn't seem to work with GE interfaces.
index is 125, even when doing "125:25:Port 1/25" I have no luck.
Oh well, i'm doing an snmpwalk and i'll see what I can find.
Penny just dropped these are stacks too, so i'll get some more info.
My trick with the 1/25 doesn't seem to work with GE interfaces.
index is 125, even when doing "125:25:Port 1/25" I have no luck.
Oh well, i'm doing an snmpwalk and i'll see what I can find.
Penny just dropped these are stacks too, so i'll get some more info.
Last edited by JorisFRST on Thu Jun 17, 2010 11:05 am, edited 1 time in total.
+---------+-----------+--------------+-------------+---------+-----------+-------------------+------------+---------------+------------------+-------------+-----------+---------------------+------------+
| site_id | device_id | hostname | device_name | vlan_id | vlan_name | mac_address | vendor_mac | ip_address | dns_hostname | port_number | port_name | scan_date | authorized |
+---------+-----------+--------------+-------------+---------+-----------+-------------------+------------+---------------+------------------+-------------+-----------+---------------------+------------+
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:0B:D7:00:0E:3D | 00:0B:D7 | 172.21.110.57 | 172.21.110.57 | 37 | Port2/5 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:0B:DB:50:45:A1 | 00:0B:DB | 172.21.111.19 | bnhd0021.brc.gbl | 33 | Port2/1 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:11:43:2F:D8:0B | 00:11:43 | 172.21.111.49 | bnhd0043.brc.gbl | 10 | Port1/10 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:11:43:2F:D9:98 | 00:11:43 | 172.21.111.20 | bnhd0045.brc.gbl | 36 | Port2/4 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:13:72:A4:18:C6 | 00:13:72 | 172.21.111.31 | bnhd0058.brc.gbl | 18 | Port1/18 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:18:8B:19:C0:1C | 00:18:8B | 172.21.111.33 | bnhd0066.brc.gbl | 13 | Port1/13 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1C:F0:C6:D1:BF | 00:1C:F0 | 172.21.110.48 | 172.21.110.48 | 15 | Port1/15 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1E:0B:08:ED:F4 | 00:1E:0B | 172.21.110.22 | 172.21.110.22 | 42 | Port2/10 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1E:4F:91:64:70 | 00:1E:4F | 172.21.111.57 | bnhd0072.brc.gbl | 35 | Port2/3 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:40:8C:55:60:8B | 00:40:8C | 172.21.110.31 | 172.21.110.31 | 14 | Port1/14 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:50:DA:C6:69:50 | 00:50:DA | 172.21.111.46 | bnhd0060.brc.gbl | 37 | Port2/5 | 2010-06-17 17:37:47 | 0 |
+---------+-----------+--------------+-------------+---------+-----------+-------------------+------------+---------------+------------------+-------------+-----------+---------------------+------------+
So my stacks just adds the portnumbers up. It's 3300xm, 3300tm, a mix really.
| site_id | device_id | hostname | device_name | vlan_id | vlan_name | mac_address | vendor_mac | ip_address | dns_hostname | port_number | port_name | scan_date | authorized |
+---------+-----------+--------------+-------------+---------+-----------+-------------------+------------+---------------+------------------+-------------+-----------+---------------------+------------+
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:0B:D7:00:0E:3D | 00:0B:D7 | 172.21.110.57 | 172.21.110.57 | 37 | Port2/5 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:0B:DB:50:45:A1 | 00:0B:DB | 172.21.111.19 | bnhd0021.brc.gbl | 33 | Port2/1 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:11:43:2F:D8:0B | 00:11:43 | 172.21.111.49 | bnhd0043.brc.gbl | 10 | Port1/10 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:11:43:2F:D9:98 | 00:11:43 | 172.21.111.20 | bnhd0045.brc.gbl | 36 | Port2/4 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:13:72:A4:18:C6 | 00:13:72 | 172.21.111.31 | bnhd0058.brc.gbl | 18 | Port1/18 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:18:8B:19:C0:1C | 00:18:8B | 172.21.111.33 | bnhd0066.brc.gbl | 13 | Port1/13 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1C:F0:C6:D1:BF | 00:1C:F0 | 172.21.110.48 | 172.21.110.48 | 15 | Port1/15 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1E:0B:08:ED:F4 | 00:1E:0B | 172.21.110.22 | 172.21.110.22 | 42 | Port2/10 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:1E:4F:91:64:70 | 00:1E:4F | 172.21.111.57 | bnhd0072.brc.gbl | 35 | Port2/3 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:40:8C:55:60:8B | 00:40:8C | 172.21.110.31 | 172.21.110.31 | 14 | Port1/14 | 2010-06-17 17:37:47 | 0 |
| 20 | 118 | 172.21.110.9 | BNHX3002 | N/A | N/A | 00:50:DA:C6:69:50 | 00:50:DA | 172.21.111.46 | bnhd0060.brc.gbl | 37 | Port2/5 | 2010-06-17 17:37:47 | 0 |
+---------+-----------+--------------+-------------+---------+-----------+-------------------+------------+---------------+------------------+-------------+-----------+---------------------+------------+
So my stacks just adds the portnumbers up. It's 3300xm, 3300tm, a mix really.
| 20 | 116 | 172.21.110.6 | BNHX3001 | N/A | N/A | 00:1C:23:2D:CD:EA | 00:1C:23 | 172.21.111.6 | bnhl0004.brc.gbl | 25 | RMON:GE Port 25 on Unit 1 | 2010-06-17 16:55:08 | 0 |
| 20 | 116 | 172.21.110.6 | BNHX3001 | N/A | N/A | 00:1C:23:44:16:76 | 00:1C:23 | 172.21.110.91 | bnhl0026.brc.gbl | 25 | RMON:GE Port 25 on Unit 1 | 2010-06-17 16:55:08 | 0 |
| 20 | 116 | 172.21.110.6 | BNHX3001 | N/A | N/A | 00:1C:23:55:DA:97 | 00:1C:23 | 172.21.111.21 | bnhl0033.brc.gbl | 25 | RMON:GE Port 25 on Unit 1 | 2010-06-17 16:55:08 | 0 |
port name differs for GE interfaces
| 20 | 116 | 172.21.110.6 | BNHX3001 | N/A | N/A | 00:1C:23:44:16:76 | 00:1C:23 | 172.21.110.91 | bnhl0026.brc.gbl | 25 | RMON:GE Port 25 on Unit 1 | 2010-06-17 16:55:08 | 0 |
| 20 | 116 | 172.21.110.6 | BNHX3001 | N/A | N/A | 00:1C:23:55:DA:97 | 00:1C:23 | 172.21.111.21 | bnhl0033.brc.gbl | 25 | RMON:GE Port 25 on Unit 1 | 2010-06-17 16:55:08 | 0 |
port name differs for GE interfaces
snmp walk of a stack with one member with GE port
Looks like for 3com stacks easiest would be if we could ignore on ifindex ? It looks like that follows the "unitnumber""portnumber".
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.122 = INTEGER: 122
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.123 = INTEGER: 123
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.124 = INTEGER: 124
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.125 = INTEGER: 125
---------------
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.123 = STRING: RMON:10/100 Port 23 on Unit 1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.124 = STRING: RMON:10/100 Port 24 on Unit 1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.125 = STRING: RMON:GE Port 25 on Unit 1
As you said, that's the new function you want to implement, that would also fix this.
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.122 = INTEGER: 122
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.123 = INTEGER: 123
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.124 = INTEGER: 124
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.125 = INTEGER: 125
---------------
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.123 = STRING: RMON:10/100 Port 23 on Unit 1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.124 = STRING: RMON:10/100 Port 24 on Unit 1
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifDescr.125 = STRING: RMON:GE Port 25 on Unit 1
As you said, that's the new function you want to implement, that would also fix this.
- Attachments
-
- 3comstackwalk.zip
- (423.07 KiB) Downloaded 162 times
Who is online
Users browsing this forum: No registered users and 1 guest