Re: Array-user problem

Vinh Nguyen <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I have used those examples without any problems.

I believe the problem is with your query. The table itself is not
accessible, you can only access the entries (e.g. nsIETFWGChair1,
nsIETFWGChair2), with appropriate index
e.g. if you have one entry with named "abcd", then you would query it
like this:
snmpget -v 2c -c public localhost nsIETFWGChair1.4.97.98.99.100
note:
4 = number of entries in the index
97,98,99,100 = long values of "a","b","c","d"

Alternatively, you can try to walk the whole table, then I believe
"snmpwalk -v 2c -c public localhost netSnmpIETFWGTable" will work.

If that doesnt work, check if your daemon is connect to the master agent
properly. It should say so when it starts up.

Cheers,
Vinh

Mats M Lindberg wrote:
>
> Hi!
>
> Has anybody been successful writing a subagent with the examplecode 
> from NET-SNMP-TUTORIAL-MIB.txt 
> <http://www.net-snmp.org/tutorial-5/toolkit/mib_module/NET-SNMP-TUTORIAL-MIB.txt> 
> (Writing a subagent) with the array-user option?
>
> I'm using NET-SNMP-5.4.1 and the following files:
>
> Makefile 
> <http://openhpi.sourceforge.net/subagent-manual/c167.html#AEN173> (3.1.1)
>
> Sub-agent daemon code 
> <http://openhpi.sourceforge.net/subagent-manual/c167.html#AEN178> 
> (example-demon.c 3.1.2)
>
> NET-SNMP-EXAMPLES-MIB.txt
>
> Following two files are generated from
>
> mib2c -c mib2c.array-user.conf netSnmpIETFWGTable (2.1.3.2)
>
> netSnmpIETFWGTable.c
>
> netSnmpIETFWGTable.h
>
> When I send the following command
>
> snmpget -v 2c -c public localhost netSnmpIETFWGTable.0
>
> I get this as a response
>
> NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable.0 = No Such Object available 
> on this agent at this OID
>
> I’ve added the lines,
>
> master agentx
>
> rwcommunity public localhost
>
> to the file snmpd.conf.
>
> The snmpd and the example-demon are started as ROOT.
>
> Best regards
>
> Mats
>
> _______________________________
>
> Mats M Lindberg
>
> Software Engineer
>
> Teligent AB
>
> Konsul Jonssons väg 17
>
> P.O. Box 213
>
> SE 14923 Nynäshamn
>
> mail: mats.m.lindberg <mailto:[email protected]>@teligent.se 
> <mailto:[email protected]>
>
> web: www.teligent.se <http://www.teligent.se/>
>
> phone: +46 (0)8 410 17261
>
> mobile: +46 (0)733 117261
>
> fax: +46 (0)8 520 193 36
>
> _______________________________
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>   



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.