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 ... 44, 45, 46
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
mastrboy



Joined: 02 Aug 2006
Posts: 3

PostPosted: Tue Aug 15, 2006 2:42 am    Post subject: Reply with quote

where is the file
Back to top
williem
Cacti User


Joined: 08 Feb 2005
Posts: 59

PostPosted: Tue Aug 15, 2006 7:53 am    Post subject: mactrack and 8600 Reply with quote

Hey,

The 8600 requires the get_norbay_accelar_switch_ports. Otherwise it will not pull the bridge/vlan info properly.

Regards,

Willie


emerillat wrote:
Okay when i run the poller I get no output it just dumps back out to the command line with no errors. I am using the following command.

php /var/www/html/cacti/plugins/mactrack/poller_mactrack.php

In Cacti itself I have three device types setup for Passport 8600, Baystack 470, and Baystack 450. Each one of these device types has a switch defined for it and are pointing at the get_norbay_switch_ports scanning function. I can manually scan them and get information but the poller doesn't seem to be working when I manually run it. Any ideas as to how to fix this?

Thanks!
Back to top
mars246



Joined: 24 Aug 2006
Posts: 2
Location: Coulmbia,SC

PostPosted: Thu Aug 24, 2006 3:40 pm    Post subject: Mactrack not get ipaddress Reply with quote

Mactrack will get the ip address of the router that is pluged into the last port on the HP switch but It wont get any of the host ipaddress any ideas theses are on Hp procurve switches
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Mon Dec 04, 2006 12:12 pm    Post subject: Re: Mactrack not get ipaddress Reply with quote

mars246 wrote:
Mactrack will get the ip address of the router that is pluged into the last port on the HP switch but It wont get any of the host ipaddress any ideas theses are on Hp procurve switches


Hi Mars246,
I have same problem, I have couple of 2650 a 3500 ProCurve switches and MacTrack do nothing. How can I debug MacTrack process ?

Running poller_mactrack.php with d switch shows no error.

From log file in DEBUG mode :

Code:

12/05/2006 12:12:39 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','7','172.X.X.X','HP-57-MUSO','4456','00:......:40','172.X.X.X','2006-12-05 00:12:37')" 
12/05/2006 12:12:39 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','7','172.X.X.X','HP-57-MUSO','362','00:......:A3','172.X.X.X'','2006-12-05 00:12:37')" 
12/05/2006 12:12:39 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','7','172.X.X.X'','HP-57-MUSO','362','00:......:EC','172.X.X.X'','2006-12-05 00:12:37')"


Something gets MACTrack from devices, but I do not see it on listing below.



mactrack.jpg
 Description:
 Filesize:  63.73 KB
 Viewed:  6549 Time(s)

mactrack.jpg


Back to top
airwalk
Cacti User


Joined: 18 Aug 2006
Posts: 103
Location: MSK, RU

PostPosted: Thu Dec 07, 2006 4:48 am    Post subject: Reply with quote

I've got a number of questions.

1. Does the plugin version is compatible with 0.8.6i? If I replace /lib/functions.php then I cannot see cacti log as it curse for unidentified function. If leave the original version of functions.php and snmp.php in place then mactrack doesn't look to be working. And as a follow-up: what's been changed in snmp.php and how it affect the work of mactrack. SVN comment doesn't look clear.

2. After issuing database_upgrade.php I received the folllowing sql errors - see attachement. Is it normal?

3. Keeping in mind previous considerations I'm having troubles running mactrack as a plugin. I've added two switches to one site. These switches are equal but the first is enabled for routing so I marked it as switch/router. The second one I've marked as switch/hub. Since these are nortel devices I attached them to mactrack_norbay.php.
With this configuration IP's are not populated in switch though they are being collected from router.

Actually what bothers me most is why I've got 11 trunk ports on my switch while there should be 0.

In the documentation i've seen that "1) Entering Device Types will not affect scanning. There is an incomplete function called mactrack_scanner.php that requires modifications prior to you being able to add/remove devices from the Device Types table and have that impact scanning."

Setting logging to debug shows nothing special.

What modifications one need to perform? Is this really the cause of the problem?

I attach a number of sreenshots for your convenience and an output of "mactrack_scanner.php -d" if executed manually for each of these devices.

Thanks in advance.



switch.PNG
 Description:
 Filesize:  38.83 KB
 Viewed:  6464 Time(s)

switch.PNG



mactrack_devices.PNG
 Description:
 Filesize:  7.75 KB
 Viewed:  6476 Time(s)

mactrack_devices.PNG



mactrack_poller.png
 Description:
 Filesize:  55.14 KB
 Viewed:  6477 Time(s)

mactrack_poller.png



router.txt
 Description:

Download
 Filename:  router.txt
 Filesize:  18.17 KB
 Downloaded:  318 Time(s)


switch.txt
 Description:

Download
 Filename:  switch.txt
 Filesize:  1.13 KB
 Downloaded:  288 Time(s)

Back to top
jgisler
Cacti User


Joined: 28 Sep 2005
Posts: 63

PostPosted: Sun Dec 10, 2006 5:10 pm    Post subject: Reply with quote

is there a scanning function profile for extreme switches? I have this up & running with my cisco gear. We also use alot of extreme switches. The get_generic_switch_ports doesn't seem to grab all the data. Should I be using a different one? or is there a way to create one that is needed?
Back to top
TheWitness
Developer


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

PostPosted: Mon Jan 01, 2007 3:09 pm    Post subject: Reply with quote

All,

If you have any bug reports or feature requests you would like addressed, please post here. I am working on an upgrade and want to make sure I get everything.

TheWitness

http://forums.cacti.net/viewtopic.php?p=87581#87581
Back to top
pepj2



Joined: 14 Apr 2006
Posts: 4
Location: switzerland

PostPosted: Fri Mar 23, 2007 5:00 pm    Post subject: snmp PHP classes Reply with quote

Hello TheWitness

You 've done a lot of great work....

1/ Do you plan SNMP v3 for mactrac?
2/ Do you plan to use a auto-detection of the hardware (no get_..., no device type)?

If you are interested: For the point 2/ I could give you my Object Oriented network classes (with examples) in order to have no more to insert the get_... functions like get_norbay_accelar_switch_ports or add "device type".
You have to give only for example (for any vendors):
Code:

  $obdevice->priv("VLAN"); ---> to get the vlans
or
  $obdevice->priv("LACP"); ---> to get the lacp channels
  $obdevice->priv("PaGP");---> to get the pagp channels
  $obdevice->priv("Channel");---> to get the all channels
  .....

I have coded for cisco,foundry,cabletron,hp,nortel,avaya,a3com,dell, and default.
- tested for cisco,foundry, (some hp devices)
- tested for v1,v2,v3
- tested for PHP snmp and NET-SNMP

I've developped this last year for an other plugin (no more time to finish it now) and I think OO-Classes could reduce the work for other plugin development. Naturally GNU.
Back to top
chubes



Joined: 12 Mar 2007
Posts: 9

PostPosted: Fri Mar 23, 2007 7:33 pm    Post subject: Reply with quote

Also curious about support for SNMPv3.

Great work!
Back to top
adrianmarsh
Cacti User


Joined: 17 Aug 2005
Posts: 417
Location: UK

PostPosted: Fri Apr 20, 2007 3:03 pm    Post subject: Reply with quote

Anyone know how to fix the DBs when you get :

CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max"

?
Back to top
TheWitness
Developer


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

PostPosted: Fri Apr 20, 2007 8:59 pm    Post subject: Reply with quote

Use MySQL Query Browser to review your fields in the DB. You may be missing a field. Once you have identified it, goto the database_upgrade script and see if you can locate the missing (aka broken) add column statement.

TheWitness
Back to top
adrianmarsh
Cacti User


Joined: 17 Aug 2005
Posts: 417
Location: UK

PostPosted: Sat Apr 21, 2007 4:30 am    Post subject: Reply with quote

found it... it was mac_track_ip_ranges..
Back to top
TheWitness
Developer


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

PostPosted: Sat Apr 21, 2007 8:03 am    Post subject: Reply with quote

Pepj,

The current product does perform auto discovery. However, the flexibility is that you control how it discovers using the device_types table. It's sort of like a "system" based reference table.

In a commercial product, it would be provided by a vendor. In this product, it is maintained by the individual, and intended to be shared.

I guess that I could do some magic in the code, but the method I choose, felt like the right way to handle it.

TheWitness
Back to top
daveyw



Joined: 19 Apr 2008
Posts: 3
Location: Netherlands

PostPosted: Fri Jun 13, 2008 8:41 am    Post subject: Reply with quote

I've uploaded and installed this plugin. I see the button "Mactrack" in the header but I got "Access denied".

Also on when i'm on the Plugin management then i receive

Code:
Notice: Undefined index: plugins.php: in /usr/local/cacti/lib/functions.php on line 1363

Code:
   $current_array = $nav{$current_page . ":" . $current_action};


When I check the "User management" I also can't find anything about "Mactrack" to give me access.

Please could somebody help me?
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 ... 44, 45, 46
Page 46 of 46

 



Powered by phpBB © 2001, 2005 phpBB Group