Need Help <[EMAIL PROTECTED]> wrote: In the NetSNMP FAQ section there is an 
entry discussing "How can I run AgentX with a different socket address".  It 
basically states the master agent and subagent must agree on the same port 
number.  

As an example, it indicates the following line can be added to the "snmpd.conf" 
file to indicate the master agent must use port 705 ....

   agentxsocket localhost:705

... and the following code can be added to the "subagent.c" file to indicate 
the subagent should use port 705:

   netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
                                      NETSNMP_DS_AGENT_X_SOCKET,  
"localhost:705");


Now, just below this information the following information is provided:


With the example subagent code from the Net-SNMP tutorial, this line
  would be added immediately before the 'init_agent' call.

  The same approach can also be used to listen on a different named
  socket, using:

         agentxsocket /tmp/agentx
         agentxperms 777 777 myuser mygroup
      or
         snmpd -x /tmp/agentx ....
      or
          netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
                               NETSNMP_DS_AGENT_X_SOCKET, "/tmp/agentx");

   as appropriate.

   But also see the mention of AgentX security (or the lack of it!) in the 
earlier entry.


Questions:

1) Please explain what the text "/tmp/agentx" represents?  Does it somehow 
represent a port number?

2) What is the "agentxperms 777 777 myuser mygroup" text represent?   How is it 
related to the "agentxsocket" text line provided above it?

        

---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.  
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  
http://get.splunk.com/_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
       
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to