Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


End Device Tracking Add-On for Cacti
Goto page Previous  1, 2, 3 ... 42, 43, 44, 45, 46  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Mon Jul 10, 2006 1:36 pm    Post subject: making some progress...no last octect on IP's Reply with quote

i think i found somethign very odd.

in my mac_track_ips table, under the "ip_address" column, none of the IP's have the last octet, it is just the network part of the address.

all i see are 192.168.36 or 172.16.24 (never the last part of the IP address)

any ideas?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Tue Jul 11, 2006 9:27 pm    Post subject: Reply with quote

That does seem quite odd. Have you run a debug run of the host by hand and viewed the output?

There may be a parsing error in the code that is specific to your router device. It is likely that the arp table is not being returned correctly. You may have to create a new scanning function for the device.

What type of device is it? Can you please run a snmpwalk of the arp table and post it here?

TheWitness
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Tue Jul 11, 2006 9:30 pm    Post subject: Reply with quote

[quote="TheWitness"]That does seem quite odd. Have you run a debug run of the host by hand and viewed the output?

There may be a parsing error in the code that is specific to your router device. It is likely that the arp table is not being returned correctly. You may have to create a new scanning function for the device.

What type of device is it? Can you please run a snmpwalk of the arp table and post it here?

TheWitness[/quote]

The devices I am trying to scan are Cisco 2950 and 3560 Catalyst switches, along with a 6509 and 4500 series chassis with 48 port copper gig blades in them.

Do you happen to know the OID I can use to scan the devices?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Tue Jul 11, 2006 9:32 pm    Post subject: Reply with quote

Well, what is your layer3 device for that site? Please advise.

TheWitness
Back to top
pincher



Joined: 31 May 2006
Posts: 11

PostPosted: Wed Jul 12, 2006 5:58 am    Post subject: Addons for Cacti Reply with quote

Hello!
I'm setingup mactrack, but find mactrack tab.

#php mactrack_scanner.php -d
Notice: Undefined variable: device_id in /usr/local/share/cacti/plugins/mactrack/mactrack_scanner.php on line 104
Notice: Undefined variable: device_id in /usr/local/share/cacti/plugins/mactrack/mactrack_scanner.php on line 108
Notice: Undefined variable: device_id in /usr/local/share/cacti/plugins/mactrack/mactrack_scanner.php on line 110
DEBUG: ERROR: Device with Id of '' not found in database. Can not continue.
Notice: Undefined variable: device_id in /usr/local/share/cacti/plugins/mactrack/mactrack_scanner.php on line 111

In log look like:
07/12/2006 01:56:41 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('', '79816', 'Running', NOW())"
07/12/2006 01:56:41 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed "SELECT * FROM mac_track_devices WHERE device_id ="
07/12/2006 01:56:41 PM - MACTRACK: Poller[0] ERROR: Device with Id of '' not found in database. Can not continue.
07/12/2006 01:56:41 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id=''"

How i'm understand my problem as example of situation Mr. Ddonohue and Mr.Jforman.
Please help me tuning mactrack.
THX.
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Wed Jul 12, 2006 6:54 am    Post subject: Reply with quote

[quote="TheWitness"]Well, what is your layer3 device for that site? Please advise.

TheWitness[/quote]

My router is a Cisco MSFC3 6000 series router, C6MSFC3-PSV-M, which is listed in the device tables

As for the switches which have user ports plugged into them:
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA6, RELEASE SOFTWARE (fc1)
jforman@nms04 ~ $ snmpwalk -v 1 -c public 192.168.1.22 .1.3.6.1.2.1.4.22.1.2
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.1 = STRING: 0:0:c:7:ac:0
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.2 = STRING: 0:d0:2b:d9:24:fc
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.3 = STRING: 0:d0:2b:d9:30:fc
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.22 = STRING: 0:f:23:8c:de:c0
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.206 = STRING: 0:3:b2:13:db:c0
IP-MIB::ipNetToMediaPhysAddress.52.192.168.1.207 = STRING: 0:3:b2:14:7:40


Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(25)SED1, RELEASE SOFTWARE (fc1)
jforman@nms04 ~ $ snmpwalk -v 1 -c public 192.168.1.24 .1.3.6.1.2.1.4.22.1.2
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.1 = STRING: 0:0:c:7:ac:0
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.2 = STRING: 0:d0:2b:d9:24:fc
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.3 = STRING: 0:d0:2b:d9:30:fc
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.11 = STRING: 0:d0:2b:d9:30:ff
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.24 = STRING: 0:16:46:1d:39:c0
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.206 = STRING: 0:3:b2:13:db:c0
IP-MIB::ipNetToMediaPhysAddress.1.192.168.1.207 = STRING: 0:3:b2:14:7:40


Odd thing is, I know there are a ton more users plugged into both the 192.168.1.{22,24} switches.
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Wed Jul 12, 2006 7:46 am    Post subject: progress Reply with quote

I am making some very good progress as of late. I found that the SNMP version in all devices, must be set to version 2.

But now I've got another interesting issue. In what would be the MAC/IP Report, under "Network Hostname", it shows the corresponding IP of the switch the user is connected to, but in the following column, "End Device IP Address", it is blank.

Under the "Devices" list, the column of "Total IP's" shows "N/A" for each switch.

All other information in the table looks correct (which I was very pleased to see)

Any information about why the end device IP address would be blank?
Back to top
ddonohue
Cacti User


Joined: 10 Jul 2006
Posts: 75

PostPosted: Wed Jul 12, 2006 4:55 pm    Post subject: Reply with quote

The issue w/ the scanner, is i don't thin it's getting back the right device id's from the database. ie, it's just feeding back blank, i can reproduce this. If you run the scanner and start at 1 with id=1 and then go up from there, you can at elast get the scans done.

donohue
Back to top
ddonohue
Cacti User


Joined: 10 Jul 2006
Posts: 75

PostPosted: Wed Jul 12, 2006 4:57 pm    Post subject: Reply with quote

jforman wrote:
TheWitness wrote:
Well, what is your layer3 device for that site? Please advise.

TheWitness


My router is a Cisco MSFC3 6000 series router, C6MSFC3-PSV-M, which is listed in the device tables




I'm looking out the output of my device table, and not seeing a refernece to that MSFC

C6MSFC2-JK2SV-M2
C6MSFC2-JSV-M2

These are the two i'm seeing, It might just be as simple as my fix was, which was adding in a row for the id name.

donohue
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Wed Jul 12, 2006 6:42 pm    Post subject: Reply with quote

ddonohue wrote:
jforman wrote:
TheWitness wrote:
Well, what is your layer3 device for that site? Please advise.

TheWitness


My router is a Cisco MSFC3 6000 series router, C6MSFC3-PSV-M, which is listed in the device tables




I'm looking out the output of my device table, and not seeing a refernece to that MSFC

C6MSFC2-JK2SV-M2
C6MSFC2-JSV-M2

These are the two i'm seeing, It might just be as simple as my fix was, which was adding in a row for the id name.

donohue


Already got those in there. the latter is what my router shows up as. It picks up 879 Total IP's, but no users/trunks. But still no IP's on my user connected switches
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Wed Jul 12, 2006 7:48 pm    Post subject: Reply with quote

Ok everyone here are some basics:

1) A Hub/Switch - Will NOT show IP's, but should show Ports
2) A Switch/Router (L3 Switch) - Will show Trunks, IP's and Ports
3) A Router - Will show IP's, but will NOT show Trunks or Ports

A Site is a group of any of the above services by one or more routers, either traditional or L3 switches. To show the association between MAC's and IP's, you must have at least one router at the site.

Does that help?

TheWitness
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Wed Jul 12, 2006 8:23 pm    Post subject: Reply with quote

[quote="TheWitness"]Ok everyone here are some basics:

1) A Hub/Switch - Will NOT show IP's, but should show Ports
2) A Switch/Router (L3 Switch) - Will show Trunks, IP's and Ports
3) A Router - Will show IP's, but will NOT show Trunks or Ports

A Site is a group of any of the above services by one or more routers, either traditional or L3 switches. To show the association between MAC's and IP's, you must have at least one router at the site.

Does that help?

TheWitness[/quote]

Yes, I understand what is what. I've attached two graphics of a switch and a router, whose filenames are indicative of what they are.

SS-01 is a 4500 series switch running IOS
CR-01 is a 6500 series SUP 720 running CatOS



cat4000-I9S-M.JPG
 Description:
4000 series switch showing users connected to switch, but notice that the END DEVICE ip address does not show the last octect.
 Filesize:  173.89 KB
 Viewed:  3743 Time(s)

cat4000-I9S-M.JPG



C6MSFC3-PSV-M.JPG
 Description:
sup 720 router module in a 6500 chassis
 Filesize:  85.26 KB
 Viewed:  3743 Time(s)

C6MSFC3-PSV-M.JPG


Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Wed Jul 12, 2006 8:50 pm    Post subject: Reply with quote

Ok, so here's the trick, you need to open a console and run each device in debug mode. Here is the syntax:

Code:
>php mactrack_scanner.php -h
Network Mac Tracker Version 1.0, Copyright 2005 - Larry Adams

usage: mactrack_device.php -id=host_id [-d] [-h] [--help] [-v] [--version]

-id=host_id   - the mac_track_devices host_id to scan
-d            - Display verbose output during execution
-t            - Test mode, don't log a process id and interfere with system
-v --version  - Display this help message
-h --help     - display this help message

So, if the switch in question is a L3 switch, and definately for the router run the command using the "-d" option. Post the results.

TheWitness
Back to top
jforman



Joined: 29 Sep 2004
Posts: 27

PostPosted: Wed Jul 12, 2006 9:00 pm    Post subject: scanner output Reply with quote

attached you will find the output for both 192.168.1.3 and 192.168.1.13

command was
php mactrack_scanner.php -id=# -d > ~/$ip-scanner.txt



192.168.1.13-scanner.txt
 Description:

Download
 Filename:  192.168.1.13-scanner.txt
 Filesize:  66.65 KB
 Downloaded:  182 Time(s)


192.168.1.3-scanner.txt
 Description:

Download
 Filename:  192.168.1.3-scanner.txt
 Filesize:  192.14 KB
 Downloaded:  135 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Wed Jul 12, 2006 9:40 pm    Post subject: Reply with quote

Your IP's appear to be IPv6. Is this correct. I currently do not support IPv6. Please respond.

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... 42, 43, 44, 45, 46  Next
Page 43 of 46

 



Powered by phpBB © 2001, 2005 phpBB Group