Re: example-demon
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
2009/4/24 Kovit Karawatreedech <[email protected]>:
> Thanks for your information, I have run Net-SNMP service but this message
> still be shown. I am not sure if my step is correct. Please see my step
> below.
>
> 1. I have install net-snmp-5.4.2.1-1.win32.exe on my machine.
> 2. Create snmpd.conf in C:\usr\etc\snmp
> 3. Register Net-SNMP Agent and Start it.
Can you query the agent at this point?
Try an "snmpget" request on "sysUpTime.0"
Also try "snmpgetnext" on "interfaces"
That will tell you whether the agent is running correctly,
and whether access control is set up.
Run
"netstat -a"
in a command window.
Do you see a TCP session listening on port 705.
> I forgot insert "master agentx" in snmpd.conf.
> After insert it, this message still be shown
If you don't see a session listening on port 705,
then you should add the line
agentxSocket localhost:705
to snmpd.conf, and then restart the agent.
> 4. Run example-demon.
You'll probably need to add the following line of code
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET, "localhost:705");
immediately after
netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_ROLE, 1);
Dave
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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