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    


Enterasys Matrix E7 Cards

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 153

PostPosted: Fri Mar 16, 2007 6:52 am    Post subject: Enterasys Matrix E7 Cards Reply with quote

I've written a scanning function to scan Enterasys E7 cards running version 4 firmware. Everything works ok but I've had to add some odd if statements into the code.

Where it reads in the ifType from the mib, I'm getting back ethernetCsmacd(6) as I would expect, and indeed do with my Foundry script. However, where in the Foundry script the lines if (($ifType >= 6) && ($ifType <=9)) work fine, they don't in the Enterasys script and I've had to add an if statement above to convert the field from ethernetCsmacd(6) to just 6.

This wouldn't ordinarily be a problem except for the fact that it means I need to do the same conversion in the get_base_dit1dTpFdbEntry_ports function in the mactrack_functions.php file. Not an ideal situation.

Any ideas why this would be happening??



mactrack_foundry.php.txt
 Description:

Download
 Filename:  mactrack_foundry.php.txt
 Filesize:  5.58 KB
 Downloaded:  170 Time(s)


mactrack_enterasys.php.txt
 Description:

Download
 Filename:  mactrack_enterasys.php.txt
 Filesize:  5.74 KB
 Downloaded:  192 Time(s)

Back to top
TheWitness
Developer


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

PostPosted: Fri Mar 16, 2007 3:49 pm    Post subject: Reply with quote

Are you using php_snmp or net-snmp for your get requests. The binary version of net-snmp can vary quite a bit on "how" things are setup. There is a net-snmp option for turning off that information.

If using net-snmp, an easy way to solve this is to simply not have any mib files loaded to translate the value to it's units. It's a pain, but this is where I typically go. Turn off mib file loading at all costs.

TheWitness
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 153

PostPosted: Mon Oct 29, 2007 7:34 am    Post subject: Reply with quote

TheWitness wrote:
Are you using php_snmp or net-snmp for your get requests. The binary version of net-snmp can vary quite a bit on "how" things are setup. There is a net-snmp option for turning off that information.

If using net-snmp, an easy way to solve this is to simply not have any mib files loaded to translate the value to it's units. It's a pain, but this is where I typically go. Turn off mib file loading at all costs.

TheWitness


Would it be better to use php_snmp rather than net-snmp then?
Back to top
TheWitness
Developer


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

PostPosted: Mon Oct 29, 2007 6:50 pm    Post subject: Reply with quote

So long as your are running PHP 5.1.x or better, yes. You should be able to kick the maximum concurrent processes pretty hard too. Like 4x the number of processors.

TheWitness
Back to top
msw1970
Cacti User


Joined: 09 Jan 2007
Posts: 153

PostPosted: Tue Oct 30, 2007 5:31 am    Post subject: Reply with quote

TheWitness wrote:
So long as your are running PHP 5.1.x or better, yes. You should be able to kick the maximum concurrent processes pretty hard too. Like 4x the number of processors.

TheWitness


How do I use php-snmp then?
Back to top
TheWitness
Developer


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

PostPosted: Tue Oct 30, 2007 5:57 am    Post subject: Reply with quote

If you run the command:

Code:
php -m


And snmp is not on the list. Then, depending on OS:

yum install php-snmp (or php_snmp)
up2date -i php-snmp (or php_snmp)
apt-get install php-snmp
yast ???

With Windows, you are sort of screwed.

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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group