Here is the output after changing the "snmpd.conf" file to have the following
lines:
master agentx
agentxsocket 127.0.0.1:1610
rocommunity mycommunity_ro
Here is the "netstat -an" output:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 138 10.0.0.2:23 10.0.0.3:3455 ESTABLISHED
udp 0 0 0.0.0.0:1024 0.0.0.0:*
udp 0 0 0.0.0.0:800 0.0.0.0:*
udp 0 0 0.0.0.0:161 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 39 /var/dev/log
unix 2 [ ACC ] STREAM LISTENING 111
/tmp/xfs_fragtask_mnt_gpfs_ew_media_content_recorded
unix 2 [ ] DGRAM 126
/tmp/inm_unix_sock_worker
unix 2 [ ] DGRAM 128 /tmp/inm_unix_sock_main
unix 2 [ ACC ] STREAM LISTENING 495 127.0.0.1:1610
unix 3 [ ] STREAM CONNECTED 113
/tmp/xfs_fragtask_mnt_gpfs_ew_media_content_recorded
unix 3 [ ] STREAM CONNECTED 117
unix 2 [ ] DGRAM 115
unix 2 [ ] DGRAM 109
unix 2 [ ] DGRAM 43
Does the master agent look like it is started on port 1610 now? I am not sure
how to read this output correctly (obviously).
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
---------------------------------
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.-------------------------------------------------------------------------
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