Never knew snmptranslate did stuff outside of the master agent ..... thanks
for telling me this. So, is there a certain command I could run to verify the
master agent is "working"? Come to think of it .... I guess I could do a
snmpget (or something) on the "IF-MIB" since the master agent implements this
MIB internally already.
I guess my "snmpd.conf" and "subagent.c" files should have "127.0.0.1::1610"
instead of "localhost:1610"?
I realize Robert indicated using the 127.0.0.1 before (instead of localhost),
but I thought that was just for when I executed a SNMP request (ie: snmpget,
snmpwalk ,etc...) for some reason.
So .... since my "snmpd.conf" and "subagent.c" files had "localhost::1610" all
this time, then how come issuing the following "snmpwalk" request "did" return
data for my OC-STB-HOST-MIB table? I mean I am giving the 127.0.0.1 address in
the snmpwalk request but it worked even though the files had the
"localhost::1610" value in it ..... why .... just curious?
snmpwalk -v1 -c mycommunity_ro 127.0.0.1 ocStbHostAVInterfaceTable
Dave Shield <[EMAIL PROTECTED]> wrote: On 20/07/07, Need Help wrote:
> 1) I performed the following "netstat -an" command to verify the snmpd
> master agent was indeed listening on port "1610":
No, it's not.
It's listening on a named Unix socket called "localhost:1610".
You embedded box doesn't recognise "localhost" as a hostname.
We've been through this once before.
> 2) I issued the following command and verified the master agent could
> process a master agent specific MIB request:
>
> /usr/local/bin # snmptranslate -On SNMPv2-MIB::sysUpTime.0
> .1.3.6.1.2.1.1.3.0
No, you haven't.
The "snmptranslate" command doesn't go anywhere near the SNMP agent.
It just works with the MIB files directly.
> 3) I issued the following command and verified the master agent knew about
> my MIB text file (OC-STB-HOST-MIB):
>
> /usr/local/bin # snmptranslate -Tp -IR
> OC-STB-HOST-MIB::ocStbHostAVInterfaceType.1
No, you haven't.
See above.
Dave
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel
and lay it on us.
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.-------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders