|
|
| Author |
Message |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Tue Sep 04, 2007 9:18 am Post subject: Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b |
|
|
Hi,
I've created a small plugin to monitor Cisco SFP's (with DOM -- digital optical monitoring) (like this one http://www.cisco.com/en/US/products/hw/modules/ps5455/products_data_sheet0900aecd8033f885.html ) and create a graph with the optical transmit/receive values.
Since the OID's for DOM monitoring are a bit funky I created this plugin. It's my first plugin -- so please be a bit gentile with me
I've included a patch for thold (v3.4) since thold (baseline function) can't handle negative values. (this patch works for me -- your mileage may vary)
| Description: |
|
| Filesize: |
60.17 KB |
| Viewed: |
8117 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cisco-sfp-v0.2.4.tgz |
| Filesize: |
11.38 KB |
| Downloaded: |
127 Time(s) |
| Description: |
| script server (plugin) v0.2.3 |
|
 Download |
| Filename: |
cisco-sfp-v0.2.3.tgz |
| Filesize: |
11.36 KB |
| Downloaded: |
132 Time(s) |
Last edited by sodium on Tue Apr 29, 2008 2:11 am; edited 12 times in total |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9719 Location: MI, USA
|
Posted: Tue Sep 04, 2007 9:35 am Post subject: |
|
|
Once Tony resolved your issue, I can audit. It may be better to host it somewhere and simply provide the link here though.
TheWitness
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Tue Sep 04, 2007 10:17 am Post subject: |
|
|
| Forum permissions have been update, you should be able to attach the files you want now.
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Tue Sep 04, 2007 11:44 am Post subject: |
|
|
Rony, thanks for for the changes in my profile -- file is attached now
|
|
| Back to top |
|
 |
tl1997
Joined: 03 Feb 2007 Posts: 19 Location: Coral Gables, FL
|
Posted: Thu Sep 06, 2007 12:24 pm Post subject: Re: Cisco SFP (with DOM) Optical value plugin v0.1 |
|
|
These are awesome! I posted a message to the template forum the other day to see if anyone had done this, I was having trouble with it myself. Works great! I haven't tried the negative value thold patch yet as my thold plugin is a little out of date.
My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre.
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Thu Sep 06, 2007 1:15 pm Post subject: Re: Cisco SFP (with DOM) Optical value plugin v0.1 |
|
|
| tl1997 wrote: | | These are awesome! I posted a message to the template forum the other day to see if anyone had done this, I was having trouble with it myself. Works great! I haven't tried the negative value thold patch yet as my thold plugin is a little out of date. |
I'm glad that it helped you... If you look at the patch you'll see that my additions are pretty slim and easy to port to other versions then v3.4 (you can wait for the developer of thold if he ok's my changes)
| tl1997 wrote: | | My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre. |
Good Idea I'll look into that. -- You're right about the bizarre part
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Fri Sep 07, 2007 6:30 am Post subject: Re: Cisco SFP (with DOM) Optical value plugin v0.1 |
|
|
| tl1997 wrote: | | My only suggestion would be picking up ifAlias some how so that when you run the query, you'll get the description of the interface instead of just the name. Not sure how one would do that though, Cisco's SNMP implementation of DOM is pretty bizarre. |
I added the ifAlias (Description field) to the plugin. I'm calling it beta because I do not like the solution... it's too processor intensive (3 queries to the mysql database -- and they need to be optimized) but it works (flaky) hence Beta
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Fri Sep 14, 2007 6:29 am Post subject: |
|
|
Have not seen any bug reports after the latest release, it seems that the plugin is working
|
|
| Back to top |
|
 |
Tekk
Joined: 16 Aug 2006 Posts: 34 Location: France
|
Posted: Fri Sep 21, 2007 10:08 am Post subject: |
|
|
Hi sodium,
I tried your plugin and it doesn't work for me. I have a sfp 1000 base ZX on a Cisco Catalyst 3750.
Do you have the name of the MIB or some OIDs ?
Thanks
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Sat Sep 22, 2007 2:31 am Post subject: |
|
|
Hi,
do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 and look for strings like this:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4048 = STRING: "TenGigabitEthernet4/4 Module Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4049 = STRING: "TenGigabitEthernet4/4 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4050 = STRING: "TenGigabitEthernet4/4 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4051 = STRING: "TenGigabitEthernet4/4 Transmit Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4052 = STRING: "TenGigabitEthernet4/4 Receive Power Sensor"
These are typical DOM strings from the CISCO-ENTITY-SENSOR-MIB
see http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094b9e.shtml
for details
|
|
| Back to top |
|
 |
Tekk
Joined: 16 Aug 2006 Posts: 34 Location: France
|
Posted: Fri Sep 28, 2007 8:49 am Post subject: |
|
|
| sodium wrote: | Hi,
do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 and look for strings like this:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4048 = STRING: "TenGigabitEthernet4/4 Module Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4049 = STRING: "TenGigabitEthernet4/4 Supply Voltage Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4050 = STRING: "TenGigabitEthernet4/4 Bias Current Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4051 = STRING: "TenGigabitEthernet4/4 Transmit Power Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4052 = STRING: "TenGigabitEthernet4/4 Receive Power Sensor"
These are typical DOM strings from the CISCO-ENTITY-SENSOR-MIB
see http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094b9e.shtml
for details |
I have no response when I do a snmpwalk on .1.3.6.1.4.1.9.9.91.1.1.1.1.2 .
Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750...
Thanks
|
|
| Back to top |
|
 |
sodium
Joined: 01 Feb 2006 Posts: 24
|
Posted: Sat Sep 29, 2007 1:49 am Post subject: |
|
|
| Tekk wrote: | | Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750... |
In the config of our 65xx's are the following commands: (in IOS release 12.2(18)SXF )
!
transceiver type all
monitoring
!
|
|
| Back to top |
|
 |
jjalert
Joined: 01 Oct 2007 Posts: 1
|
Posted: Mon Oct 01, 2007 5:30 pm Post subject: |
|
|
| sodium wrote: | | Tekk wrote: | | Do I have to enable something on my cisco 3750 to have transceiver monitoring ? For example, I found something like "transceiver type all" but this command doesn't exist on a 3750... |
In the config of our 65xx's are the following commands: (in IOS release 12.2(18)SXF )
!
transceiver type all
monitoring
! |
According to the cisco feature navigator, DOM isn't supported on the 3750 platform. The only platforms listed are the 6500 and 7600.
You also have to have the SFP's with part number starting in SFP-, and not GLC- parts.
|
|
| Back to top |
|
 |
cwahlin Cacti User
Joined: 10 Oct 2003 Posts: 87
|
Posted: Wed Oct 10, 2007 6:29 am Post subject: |
|
|
Works great for me. But it seems I only get out 10GE interfaces. Guess we do not have the right SFPs
/Carl
|
|
| Back to top |
|
 |
egarnel Cacti Pro User
Joined: 21 Nov 2002 Posts: 630 Location: Austin, TX
|
Posted: Wed Oct 10, 2007 8:39 am Post subject: |
|
|
| Dohhh, the command is not supported in 12.2(18)SXD7a ip base
|
|
| Back to top |
|
 |
|