Ask how to decide useing which OID....

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

Moderators: Developers, Moderators

Post Reply
playerk
Posts: 1
Joined: Wed Feb 08, 2006 8:09 pm

Ask how to decide useing which OID....

Post by playerk »

Dear all,
I can't get snmp data with the wrong OID

Code: Select all

command:snmpwalk -c hibanknw -v2c -On <host> .enterprises.8837 > temp.txt
the temp.txt file returns:

Code: Select all

.1.3.6.1.4.1.8837.4.1.1.1.0 = STRING: "AscenVision (AscenLink)"
.1.3.6.1.4.1.8837.4.1.1.2.0 = STRING: "ascenlink"
.1.3.6.1.4.1.8837.4.1.1.3.0 = STRING: "V5.01-B1018-M800-F0-P14"
.1.3.6.1.4.1.8837.4.1.1.4.0 = ""
.1.3.6.1.4.1.8837.4.1.1.5.0 = ""
.1.3.6.1.4.1.8837.4.1.1.6.0 = INTEGER: 79
.1.3.6.1.4.1.8837.4.1.1.7.0 = INTEGER: 1
.1.3.6.1.4.1.8837.4.1.1.8.0 = STRING: ""
.1.3.6.1.4.1.8837.4.1.2.1.1.0 = INTEGER: 25
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.1 = INTEGER: 1
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.2 = INTEGER: 2
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.3 = INTEGER: 3
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.4 = INTEGER: 4
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.5 = INTEGER: 5
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.6 = INTEGER: 6
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.7 = INTEGER: 7
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.8 = INTEGER: 8
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.9 = INTEGER: 9
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.10 = INTEGER: 10
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.11 = INTEGER: 11
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.12 = INTEGER: 12
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.13 = INTEGER: 13
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.14 = INTEGER: 14
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.15 = INTEGER: 15
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.16 = INTEGER: 16
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.17 = INTEGER: 17
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.18 = INTEGER: 18
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.19 = INTEGER: 19
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.20 = INTEGER: 20
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.21 = INTEGER: 21
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.22 = INTEGER: 22
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.23 = INTEGER: 23
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.24 = INTEGER: 24
.1.3.6.1.4.1.8837.4.1.2.1.2.1.1.25 = INTEGER: 25
.1.3.6.1.4.1.8837.4.1.2.1.2.1.2.1 = STRING: "WAN 1"
.1.3.6.1.4.1.8837.4.1.2.1.2.1.2.2 = STRING: "WAN 2"
Then I put ".1.3.6.1.4.1.8837.4.1.1" as OID in the xml file

Code: Select all

<interface>
        <name>Get AscenLink Information</name>
        <description>Get SNMP Information out of AscenLink 800</description>
        <index_order_type>numeric</index_order_type>
        <oid_index>.1.3.6.1.4.1.8837.4.1.2.1.2.1.1</oid_index>

        <fields>
                <AscenlinkIndex>
                        <name>Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.8837.4.1.2.1.2.1.1</oid>
                </AscenlinkIndex>
        </fields>
</interface>
Cacti ruturn :

Code: Select all

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/AscenLink.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8837.4.1.2.1.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/AscenLink.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/AscenLink.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/AscenLink.xml'
Please tell me which OID should be given, thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, all seems pretty good, so I'm at a loss. Please tell us about your versions (see my signature)
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you purposfully leave off the rest of what the OID walk returned or is that truly all there is? Because if thats all there is, it looks mainly like it's just a list of interfaces and no data to return. Try something like this:

Code: Select all

<interface>
        <name>Get AscenLink Information</name>
        <description>Get SNMP Information out of AscenLink 800</description>
        <index_order_type>numeric</index_order_type>
        <oid_index>.1.3.6.1.4.1.8837.4.1.2.1.2.1.1</oid_index>
        <oid_num_indexes>.1.3.6.1.4.1.8837.4.1.2.1.1.0</oid_num_indexes>

        <fields>
                <AscenlinkIndex>
                        <name>Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.8837.4.1.2.1.2.1.1</oid>
                </AscenlinkIndex>
                <AscIfDesc>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.8837.4.1.2.1.2.1.2</oid>
                </AscIfDesc>
        </fields>
</interface>
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest