|
|
| Author |
Message |
msw1970 Cacti User
Joined: 09 Jan 2007 Posts: 153
|
Posted: Fri Mar 16, 2007 6:52 am Post subject: Enterasys Matrix E7 Cards |
|
|
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??
| Description: |
|
 Download |
| Filename: |
mactrack_foundry.php.txt |
| Filesize: |
5.58 KB |
| Downloaded: |
170 Time(s) |
| 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
|
Posted: Fri Mar 16, 2007 3:49 pm Post subject: |
|
|
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
|
Posted: Mon Oct 29, 2007 7:34 am Post subject: |
|
|
| 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
|
Posted: Mon Oct 29, 2007 6:50 pm Post subject: |
|
|
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
|
Posted: Tue Oct 30, 2007 5:31 am Post subject: |
|
|
| 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
|
Posted: Tue Oct 30, 2007 5:57 am Post subject: |
|
|
If you run the command:
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 |
|
 |
|