[INUG-Users] Proviso - OSPF formulas

Henderson, James jhenderson at windwardits.com
Wed Feb 17 12:23:22 EST 2010


Technically speaking, you can run a collection formula at the device level (NULL subelement).  You'll need to use aggregation functions (IE sum/min/max/count/ave...) and some other trickery within the collection formula, but it is possible.


________________________________________
From: users-bounces at netcoolusers.org [users-bounces at netcoolusers.org] On Behalf Of Michael Shannon [shannomi at us.ibm.com]
Sent: Wednesday, February 17, 2010 10:42 AM
To: users at netcoolusers.org
Subject: Re: [INUG-Users] Proviso - OSPF formulas

Have you created a discovery formula to create the resources you are going
to report on?  You can't run an OSPF collection against a device (NULL
subelement); you need a resource to collect against.  Just like interfaces
- you need to discover the interfaces, then collect interface statistics
against them.  The OSPF subelements you create should be indexed by the
same four indices that you have used in your collection formula.

Michael




From:
Ivan Colak <icolak at cs.hr>
To:
users at netcoolusers.org
Date:
02/17/2010 08:34 AM
Subject:
Re: [INUG-Users] Proviso - OSPF formulas
Sent by:
users-bounces at netcoolusers.org



Daniel, Michael,

OSPF is running.
Here is the test output from FormEdit:
 Launch On

            Server : SZG01NETMGMT01:3002

            host : azg01tkcc761.data.centar (10.1.255.2)

  DATA FORMULA Dim I1 AS Integer Default *; Dim I2 AS Integer Default *;
Dim
I3 AS Integer Default *; Dim I4 AS Integer Default *;
distrib(delta(sysUpTime.0),"default:1")*ospfAreaLsaCount.%I1.%I2.%I3.%I4

  INSTANCE = I1<*> - MIBS = ospfAreaLsaCount:OSPF-MIB.mib
sysUpTime:rfc1907-SNMPv2-MIB


Information:+=======================================================================================


Information:!


  Information:!  Warning, testing with more than one subElement cancels
the
LiteFormula optimization.

  Information:!  Retry this formula with only one subElement to simulate
real SNMP collection.


Information:!



Information:+=======================================================================================

  Information:Expression: compiling: Dim I1 AS Integer Default *;

  Information:Expression: compiling: Dim I2 AS Integer Default *;

  Information:Expression: compiling: Dim I3 AS Integer Default *;

  Information:Expression: compiling: Dim I4 AS Integer Default *;

  Information:Expression: compiling:
distrib(delta(sysUpTime.0),"default:1")*ospfAreaLsaCount.%I1.%I2.%I3.%I4;

  Information:Running Formula ...

  Information:Using mibs: ospfAreaLsaCount:OSPF-MIB.mib
sysUpTime:rfc1907-SNMPv2-MIB rfc1213-MIB-II

  Information:Executing: DIM I1 As INTEGER Default *

  Information:Executing: DIM I2 As INTEGER Default *

  Information:Executing: DIM I3 As INTEGER Default *

  Information:Executing: DIM I4 As INTEGER Default *

  Information:

  Information:Executing: Expression
distrib(delta(sysUpTime.0),"default:1")*ospfAreaLsaCount.%I1.%I2.%I3.%I4
...

  Information:Merging results into current result set (init size = 0) with
key format=(H1,I1,I2,I3,I4)

  Information:Formula has generated 0 line(s) in 0 sec [Init 3 /Snmp 6
/Eval
4 /Store 0]

DATA at 2010/02/17 09:26:10

  Information:Running Formula ...

  Information:Using mibs: ospfAreaLsaCount:OSPF-MIB.mib
sysUpTime:rfc1907-SNMPv2-MIB rfc1213-MIB-II

  Information:Executing: DIM I1 As INTEGER Default *

  Information:Executing: DIM I2 As INTEGER Default *

  Information:Executing: DIM I3 As INTEGER Default *

  Information:Executing: DIM I4 As INTEGER Default *

  Information:

  Information:Executing: Expression
distrib(delta(sysUpTime.0),"default:1")*ospfAreaLsaCount.%I1.%I2.%I3.%I4
...

  Information:Merging results into current result set (init size = 0) with
key format=(H1,I1,I2,I3,I4)

  Information:Formula has generated 8 line(s) in 0 sec [Init 2 /Snmp 6
/Eval
4 /Store 0]

DATA at 2010/02/17 09:26:13

  HOST = 10.1.255.2 INSTANCE = 0.0.0.0 VALUE = 4233

  HOST = 10.1.255.2 INSTANCE = 0.10.0.0 VALUE = 6672

  HOST = 10.1.255.2 INSTANCE = 0.17.0.0 VALUE = 2747

  HOST = 10.1.255.2 INSTANCE = 0.18.0.0 VALUE = 4109

  HOST = 10.1.255.2 INSTANCE = 0.20.0.0 VALUE = 1384

  HOST = 10.1.255.2 INSTANCE = 0.30.0.0 VALUE = 9172

  HOST = 10.1.255.2 INSTANCE = 0.53.0.0 VALUE = 4090

  HOST = 10.1.255.2 INSTANCE = 0.55.0.0 VALUE = 5365

End: End of Request



I just can't see why this should not work against Sub-Element~Devices~IP
Device group!?



Regards,

Ivan
_______________________________________________
Sent by the netcoolusers.org "users" mailing list
Post: users at netcoolusers.org
Unsubscribe: users-unsubscribe at netcoolusers.org
Search: http://netcoolusers.org/Search


_______________________________________________
Sent by the netcoolusers.org "users" mailing list
Post: users at netcoolusers.org
Unsubscribe: users-unsubscribe at netcoolusers.org
Search: http://netcoolusers.org/Search


More information about the Users mailing list