Greetings to all.
Thanks for your inputs on this. I am facing one more problem while brining
up my sub-agent.
I believe init_snmp() does a lot of work besides just loading MIBS. It
initializes many components of the library and cannot be skipped. This API
has no return type. Please correct me if my understanding on this
is incorrect.
I am calling init_snmp() in my application and the flow of my application
depends on the return value from this API. But init_snmp() does not return
anything on success or failure. If it fails to connect to Master-agent, it
just prints a trace in syslog. I need to control the flow of my application
dependent on whether the sub-agent could successfully connect or not to
snmpd. How can I achieve this.. to say How do I find out whether sub-agent
actually connected to snmpd or not.
Is there any alternative API I can call in my code to achieve the same. Any
clues on this from the group will be appreciated. Thanks.
Regards,
Shivani
On 6/13/07, Awadhesh Kumar <[EMAIL PROTECTED]> wrote:
Use following in ur agent code.
#define
AGENTX_ADDRESS "<machine ip>:<port>"
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET, AGENTX_ADDRESS);
Regards
Awadhesh
On 6/12/07, Shivani Garg <[EMAIL PROTECTED]> wrote:
> Greetings to all.
>
> Can anyone help me with this. My master agent snmpd daemon is running on
> a different machine. How can I configure my sub-agent to connect to the
> same?
> Thanks.
>
> Regards,
> Shivani
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders