Adva FSP150MG Interfaces

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
flazzarini
Posts: 2
Joined: Mon Feb 03, 2014 9:56 am

Adva FSP150MG Interfaces

Post by flazzarini »

Hi there I am trying to create a snmp_query for parsing the interfaces information of some Adva FSP150MG devices. After looking up the private mib of Adva I tinkered around a little with snmpwalk to find the right information, but I can't get the verbose query to fetch the required data somehow. Here is what I did. It is really simplified the finally query should contain much more information, but for debugging purposes I keep it slim.


adva_interfaces.xml

Code: Select all

<interfaces>                                                                                                                                                                                           
    <name>Get Adva Interfaces information</name>                                                                                                                                                       
    <description>Get Adva Interfaces information and stats</description>                                                                                                                               
    <index_order>Index</index_order>                                                                                                                                                                   
    <index_order_type>numeric</index_order_type>                                                                                                                                                       
    <index_title_format>|chosen_order_field|</index_title_format>                                                                                                                                      
    <oid_index>.1.3.6.1.4.1.2544.1.10.2.3.3.1.1</oid_index>                                                                                                                                            
    <oid_index_parse>OID/REGEXP:^.+\.(\d+)$</oid_index_parse>                                                                                                                                          
                                                                                                                                                                                                       
    <fields>                                                                                                                                                                                           
        <Index>                                                                                                                                                                                        
            <name>Index</name>                                                                                                                                                                         
            <source>index</source>                                                                                                                                                                     
            <direction>input</direction>                                                                                                                                                               
        </Index>                                                                                                                                                                                       
                                                                                                                                                                                                       
        <ifAdminStatus>                                                                                                                                                                                
            <name>AdminStatus</name>                                                                                                                                                                   
            <method>walk</method>                                                                                                                                                                      
            <source>value</source>                                                                                                                                                                     
            <direction>input</direction>                                                                                                                                                               
            <oid>.1.3.6.1.4.1.2544.1.10.2.3.3.1.5</oid>                                                                                                                                                
        </ifAdminStatus>
    </fields>                                                                                                                                                                                          
</interfaces>
snmpwalk on fsp150fConfigUserString

Code: Select all

snmpwalk -On -v2c -c "public" 192.168.xx.xx .1.3.6.1.4.1.2544.1.10.2.3.3.1.1
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.6 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.7 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.8 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.9 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.10 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.11 = STRING: "Interface Config 12121212"
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.12 = STRING: "Interface Config 13131313"
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.13 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.14 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.15 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.106 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.107 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.108 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.109 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.110 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.111 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.112 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.113 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.114 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.115 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.116 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.117 = ""
.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.118 = ""
So in total I should have 15 oid_index entries if I were OID/REGEXP:^.+\.(\d+)$ as a regex for parsing. But when I launch the verbose query in cacti it only parses 10 indexes and the output is

Code: Select all

+ Running data query [11].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/cacti_backbone/app/resource/snmp_queries/adva_interfaces.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1' Index Count: 10
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.6' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.7' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.8' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.9' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.10' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.11' value: 'Interface Config 12121212'
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.12' value: 'Interface Config 13131313'
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.13' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.14' value: ''
+ Index found at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.15' value: ''
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.6' results: '6'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.7' results: '7'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.8' results: '8'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.9' results: '9'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.10' results: '10'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.11' results: '11'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.12' results: '12'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.13' results: '13'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.14' results: '14'
+ index_parse at OID: '.1.3.6.1.4.1.2544.1.10.2.3.3.1.1.15' results: '15'
+ Inserting index data for field 'Index' [value='6']
+ Inserting index data for field 'Index' [value='7']
+ Inserting index data for field 'Index' [value='8']
+ Inserting index data for field 'Index' [value='9']
+ Inserting index data for field 'Index' [value='10']
+ Inserting index data for field 'Index' [value='11']
+ Inserting index data for field 'Index' [value='12']
+ Inserting index data for field 'Index' [value='13']
+ Inserting index data for field 'Index' [value='14']
+ Inserting index data for field 'Index' [value='15']
+ Located input field 'ifAdminStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2544.1.10.2.3.3.1.5'


Any ideas what I am doing wrong here? Thanks a lot.
flazzarini
Posts: 2
Joined: Mon Feb 03, 2014 9:56 am

Re: Adva FSP150MG Interfaces

Post by flazzarini »

Hi there,

just as a quick reminder I think I found the problem. When I played arround with the Device->SNMP Options settings Maximum OID's Per Get Request I realized that if I set the Maximum oids per request to 5 the device suddenly replied with all the interface oids I was expecting.

So my initial snmp query was correct.

Thanks anyhow.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests