Data Queries OLD-CISCO-INTERFACES-MIB

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Data Queries OLD-CISCO-INTERFACES-MIB

Post by eterzella.r.t »

What do a data_queries the MIB OLD-CISCO-INTERFACES-MIB.

I do not think a numerical index to perform in snmpwalk queries.

So I found the index as a string.

You can perform a search in mib?


MIB: OLD-CISCO-INTERFACES-MIB

.1.3.6.1.4.1.9.2.2.1.1.1.1 "Gt96k FE"
.1.3.6.1.4.1.9.2.2.1.1.1.2 "Gt96k FE"
.1.3.6.1.4.1.9.2.2.1.1.1.3 "GT96K Serial"
.1.3.6.1.4.1.9.2.2.1.1.1.4 "GT96K Serial"
.1.3.6.1.4.1.9.2.2.1.1.1.5 "GT96K Serial"
.1.3.6.1.4.1.9.2.2.1.1.1.6 "GT96K Serial"
.1.3.6.1.4.1.9.2.2.1.1.1.7 "Unknown"
.1.3.6.1.4.1.9.2.2.1.1.2.1 1
.1.3.6.1.4.1.9.2.2.1.1.2.2 0
.1.3.6.1.4.1.9.2.2.1.1.2.3 1
.1.3.6.1.4.1.9.2.2.1.1.2.4 1
.1.3.6.1.4.1.9.2.2.1.1.2.5 1
.1.3.6.1.4.1.9.2.2.1.1.2.6 1
.1.3.6.1.4.1.9.2.2.1.1.2.7 1
.1.3.6.1.4.1.9.2.2.1.1.3.1 4
.1.3.6.1.4.1.9.2.2.1.1.3.2 -634260416
.1.3.6.1.4.1.9.2.2.1.1.3.3 1408
.1.3.6.1.4.1.9.2.2.1.1.3.4 1428
.1.3.6.1.4.1.9.2.2.1.1.3.5 1448
.1.3.6.1.4.1.9.2.2.1.1.3.6 1468
.1.3.6.1.4.1.9.2.2.1.1.3.7 -634260316
.1.3.6.1.4.1.9.2.2.1.1.4.1 16
.1.3.6.1.4.1.9.2.2.1.1.4.2 -634260272
.1.3.6.1.4.1.9.2.2.1.1.4.3 80
.1.3.6.1.4.1.9.2.2.1.1.4.4 40
.1.3.6.1.4.1.9.2.2.1.1.4.5 40
.1.3.6.1.4.1.9.2.2.1.1.4.6 100
.1.3.6.1.4.1.9.2.2.1.1.4.7 -634260172
.1.3.6.1.4.1.9.2.2.1.1.5.1 -634260152
.1.3.6.1.4.1.9.2.2.1.1.5.2 -634260132
.1.3.6.1.4.1.9.2.2.1.1.5.3 -634260112
.1.3.6.1.4.1.9.2.2.1.1.5.4 -634260092
.1.3.6.1.4.1.9.2.2.1.1.5.5 -634260072
.1.3.6.1.4.1.9.2.2.1.1.5.6 -634260052
.1.3.6.1.4.1.9.2.2.1.1.5.7 -634260032
.1.3.6.1.4.1.9.2.2.1.1.6.1 1261000
.1.3.6.1.4.1.9.2.2.1.1.6.2 0
.1.3.6.1.4.1.9.2.2.1.1.6.3 79000
.1.3.6.1.4.1.9.2.2.1.1.6.4 86000
.1.3.6.1.4.1.9.2.2.1.1.6.5 83000
.1.3.6.1.4.1.9.2.2.1.1.6.6 82000
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

I make this XML.

<host>
<name>OLD-CISCO-INTERFACES-MIB</name>
<description>OLD-CISCO-INTERFACES-MIB</description>
<index_order_type>numeric</index_order_type>
<index_order>locIfDescr:locIfHardType</index_order>
<oid_index>.1.3.6.1.4.1.9.2.2.1.1.1</oid_index>
<fields>
<locIfHardType>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.2.2.1.1.1</oid>
</locIfHardType>
<locIfDescr>
<name>Alias (IF-MIB)</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.2.2.1.1.28</oid>
</locIfDescr>
<locIfLineProt>
<name>locIfLineProt</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.2.2.1.1.2</oid>
</locIfLineProt>
</fields>
</host>


When I run the command "Verbose Query" the HOST debug it shows the following.


+ Running data query [30].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/teste.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.2.2.1.1.1'
+ Located input field 'locIfHardType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.2.2.1.1.1'
+ Found item [locIfHardType='Gt96k FE'] index: 1 [from value]
+ Found item [locIfHardType='Gt96k FE'] index: 2 [from value]
+ Found item [locIfHardType='GT96K Serial'] index: 3 [from value]
+ Found item [locIfHardType='GT96K Serial'] index: 4 [from value]
+ Found item [locIfHardType='GT96K Serial'] index: 5 [from value]
+ Found item [locIfHardType='GT96K Serial'] index: 6 [from value]
+ Found item [locIfHardType='Unknown'] index: 7 [from value]
+ Located input field 'locIfDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.2.2.1.1.28'
+ Found item [locIfDescr='F0/0'] index: 1 [from value]
+ Found item [locIfDescr=''] index: 2 [from value]
+ Found item [locIfDescr='LINK 1 DIVEO - 2048 KBPS'] index: 3 [from value]
+ Found item [locIfDescr='LINK 2 DIVEO - 2048 KBPS'] index: 4 [from value]
+ Found item [locIfDescr='LINK 3 DIVEO - 2048 KBPS'] index: 5 [from value]
+ Found item [locIfDescr='LINK 4 DIVEO - 2048 KBPS'] index: 6 [from value]
+ Found item [locIfDescr=''] index: 7 [from value]
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/teste.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/teste.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/teste.xml'

--------------------------------------------------------------------------

So it can not generate the Data Source, as he did not find what Output Type ID, Index Value, Index Type should use.

Even using, "Per-Use Data Source Value (Ignore this Value)"

Thx for help.
eterzella.r.t
Cacti User
Posts: 75
Joined: Thu Oct 25, 2007 8:20 pm

Post by eterzella.r.t »

Help plz..
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests