Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Wed Jun 19, 2013 7:39 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Using Parts of the Index in Data Queries
PostPosted: Wed Feb 22, 2012 9:12 am 
Offline

Joined: Wed Feb 22, 2012 9:07 am
Posts: 1
I have an issue with data queries.

Basically I have an index a.b.c.d.e.f (there are 13 index numbers here I have shortened for ease of reading!!)

One of the things I would like to do is find out the Access point from which this SSID (which is what the index refers to) is on. The index of the access point is the first part of the index of the SSID ie: a.b.c.

Is there any way in the query of donig this??

I have the following so far...

Code:
<interface>
   <name>Aruba OS AP Info</name>
   <description>Queries an Aruba controller for AP Information</description>
   <oid_index>.1.3.6.1.4.1.14823.2.2.1.5.2.1.7.1</oid_index>
   <oid_index_parse>OID/REGEXP:^.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)$</oid_index_parse>
   <index_order_type>numeric</index_order_type>

   <fields>
      <apName>
         <name>AP Name</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid_index_parse>OID/REGEXP:^.*\.([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$</oid_index_parse>
         <oid>.1.3.6.1.4.1.14823.2.2.1.5.2.1.4.1.3</oid>
      </apName>
      <apSSID>
         <name>SSID</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.14823.2.2.1.5.2.1.7.1.2</oid>
      </apSSID>
      <apNumStations>
         <name>Connected Stations</name>
         <method>walk</method>
         <source>value</source>
         <direction>output</direction>
         <oid>.1.3.6.1.4.1.14823.2.2.1.5.2.1.7.1.12</oid>
      </apNumStations>
   </fields>
</interface>


The above gives me a list of SSIDs then the list of the AP names after without matching them up as if it is creating a new index for the apName field.

Any ideas?

Many thanks

James


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group