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>
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 = ""
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.