Re: [SNMP4J] net-snmp and snmp4j agentx

2012-06-07 Thread Rob Morton
Hi Frank,

   I built net-snmp 5.5.1 and tried it...it worked fine.

   Thanks for your assistance. :-)

Regards,
Rob

On 6/7/2012 9:44 AM, Rob Morton wrote:
 Hi Frank,

   I will upgrade to net-snmp 5.5 and try it with that version.

   Thank you :-)

 Regards,
 Rob

 On 6/6/2012 5:51 PM, Frank Fock wrote:
 Hi Rob,

 Bad news, it seems that this is simply a memory allocation bug in
 NET-SNMP. NET-SNMP 5.0.9 is very old and there are a lot of fixes
 regarding AgentX in newer versions. Are you able to upgrade?

 Best regards,
 Frank

 Am 06.06.2012 19:43, schrieb Rob Morton:
 Hi Frank,

   First, thank you very much for looking into this issue.  It is 
 very much appreciated.

   Second,  I have attached a master agent log(I use log4j too and 
 had to connect in your logsnmp4jfactory)...it shows the agent 
 starting up and the log messages generated as a result of the 
 net-snmp starting up and connecting then registering its MIB 
 regions...later in the log...it then reflects DEBUG info when I send 
 in the snmpget for the ifNumber OID as stated earlier in this email 
 thread.

   I removed my server's log entries as best I could but there might 
 still be a few entries reflecting my code...it will be prefixed with 
 com.alcatel.tpapps.*

 Thanks,
 Rob

 On 6/6/2012 11:55 AM, Frank Fock wrote:
 Hi Rob,

 The log of the sub-agent shows, that there is probably a region
 issue. To get the root cause, the log of the master agent is very
 important.

 It is likely, that we can find a workaround for that issue.
 NET-SNMP cannot handle big sub OIDs (between 2^31
 and 2^32-1) in registrations/requests correctly in all
 situations.

 Best regards,
 Frank

 Am 06.06.2012 15:47, schrieb Rob Morton:
 Hi Frank,

   Thank you for responding...

   Here are the details of the issue I'm facing:

   * I am using net-snmp v5.0.9 on Solaris 10 configured as a
 sub-agent to my AgentXMasterAgent-based master agent via the
 command:

 /usr/sfw/sbin/snmpd -X -DALL

   * with /etc/sma/snmp/snmpd.conf having the following entries:

 #to avoid re-registrations when I suspend the master agent's 
 threads in IntelliJ's debugger
 agentxPingInterval 6
 agentXSocket tcp:localhost:1705

   * I have no issues with connection nor registration...I have
 attached a SNMP walk of the master in which I grep'd for
 agentx to observe what was registered by the sub-agent (see
 attached snmpwalk-grepedForAgentX.log)...I used the following
 command:

 /usr/sfw/bin/snmpwalk -v2c -ccommunity string-M 
 /etc/sma/snmp/mibs -m ALL host IP@  1 | grep agentx  
 /opt/snmpwalk-grepedForAgentX.log

   * now.../_the problem_/...It is as follows...I am sending in a
 simple snmp get request to my master snmp agent (for an OID
 managed by the net-snmp sub-agent) with the following command:

 /usr/sfw/bin/snmpget -v2c -ccommunity string  -r 0 -t 60 host 
 IP@ 1.3.6.1.2.1.2.1.0 -- this OID is IF-MIB::ifNumber.0

   * to which I receive the following response:

 IF-MIB::ifNumber.0 = No Such Object available on this agent at 
 this OID --THE PROBLEM

   * I have attached the net-snmp debug log (see attached
 snmpd.log) for the above SNMP get request.

   * if I send in a simple get for an OID managed by the master
 locally, I have no issue:

 /usr/sfw/bin/snmpget -r 0 -t 600 -v2c -ccommunity stringhost 
 IP@sysContact.0
 SNMPv2-MIB::sysContact.0 = STRING: bob

   * I don't currently have a log for the master agent (I have
 issues linking in the log4j with my code base...am working on
 it) _but_ I have stepped through the code extensively and
 observed no exceptions or strange code paths for this
 request...it simply assesses that it must send a GET PDU to
 the sub-agent and does just that...I have also verified each
 byte in the encoded PDU...it all looks good.

   If more info is required please don't hesitate to ask.

 Thank you,
 Rob

 On 6/6/2012 5:39 AM, Frank Fock wrote:
 Hi Rob,

 With the NET-SNMP AgentX master and sub-agents several
 issues are known. Any of those, are caused by NET-SNMP's
 incorrect registration algorithms or simply other bugs
 which are not fixed for years now.

 For several issues there exists workarounds. So if you are
 using NET-SNMP as a subagent to SNMP4J-AgentX, nearly
 everythin should work. You can search for NET-SNMP
 in the sources of SNMP4J-AgentX to locate the various
 workarounds.

 We could probably better help, if you provide more details
 on the problem (master log output of the failed request
 as well as subagent output, also who is master and who
 subagent, etc.)

 Best regards,
 Frank

 Am 06.06.2012 02:03, schrieb Rob Morton:
 Hi,

  What version(s) of net-snmp are supported by snmp4j's agentxv2.1.0?

  I ask because I am getting peculiar 'get' failures on Solaris's
 net-snmpv5.0.9.  I get these errors after successful connection,
 registration, pings, etc...I perform an snmpget on IF-MIB::ifNumber.0
 (just an example) and get IF-MIB::ifNumber

[SNMP4J] net-snmp and snmp4j agentx

2012-06-05 Thread Rob Morton
Hi,

   What version(s) of net-snmp are supported by snmp4j's agentxv2.1.0?

   I ask because I am getting peculiar 'get' failures on Solaris's 
net-snmpv5.0.9.  I get these errors after successful connection, 
registration, pings, etc...I perform an snmpget on IF-MIB::ifNumber.0 
(just an example) and get IF-MIB::ifNumber.0 = No Such Object available 
on this agent at this OID This OID region is indeed registered.

Thanks,
Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] Need detailed procedure for making NET-snmp (sma) subgent to snmp4j

2012-06-04 Thread Rob Morton
Hi,

   A follow-up question to this post...

   I have net-snmp 5.0.9 on Solaris 10 running as a sub-agent to my 
snmp4j-based AgentXMasterAgent-extended agent...all seems connected and 
registered fine.

   I keep getting No Such Object available on this agent at this OID 
when I perform an snmpget of any OID (e.g. 
HOST-RESOURCES-MIB::hrSystemUptime.0) managed by the net-snmp 
sub-agent.  I have verified that the net-snmp agent does indeed have 
values for these OIDs and have verified that these MIB regions are 
registered with my master agent.

   Is there some config for net-snmp I need to do to allow agentx PDU 
get requests to generate the proper response instead of always getting 
No Such Object available on this agent at this OID???

   Any help is greatly appreciated :-)

Regards,
Rob

On 5/2/2012 3:26 PM, Frank Fock wrote:
 Hi Rob,

 See the FAQ at:
 http://server.oosnmp.net/confluence/pages/viewpage.action?pageId=3834109

 Best regards,
 Frank

 Am 02.05.2012 20:46, schrieb Rob Morton:
 Hi,

  I have a product which uses snmp4j agent as master agent.  The
 product shuts down the snmp stack on the OS (Solaris 10 or Red Hat
 Linux).  We would, however, like to have the OS snmp stack available as
 a sub-agent to our snmp4j-based master agent.  I have read in many
 instances where Franck Fock has recommended using snmp4j's agent as
 master and making sma a sub-agent...but I can't find any detailed
 procedure to do so.

  Could someone provide this procedure or point me in the right direction?

 Thanks,
 Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] Need detailed procedure for making NET-snmp (sma) subgent to snmp4j

2012-05-31 Thread Rob Morton
Hi,

   All references I can find on net-snmp-5.5 seem to state that to run 
net-snmp as a subagent, you provide -X as an option to snmpd...no 
mention of a TCP port to connect to though...and also no mention of --X 
port as an option neither...

   So, I'm confused...what am I missing?  Could someone point me to a 
web page (other than the one below) which telss me how to connect 
net-snmp to my snmp4j AgentXMasteragent-based snmp agent...

Thanks,
Rob

On 5/2/2012 3:26 PM, Frank Fock wrote:
 Hi Rob,

 See the FAQ at:
 http://server.oosnmp.net/confluence/pages/viewpage.action?pageId=3834109

 Best regards,
 Frank

 Am 02.05.2012 20:46, schrieb Rob Morton:
 Hi,

  I have a product which uses snmp4j agent as master agent.  The
 product shuts down the snmp stack on the OS (Solaris 10 or Red Hat
 Linux).  We would, however, like to have the OS snmp stack available as
 a sub-agent to our snmp4j-based master agent.  I have read in many
 instances where Franck Fock has recommended using snmp4j's agent as
 master and making sma a sub-agent...but I can't find any detailed
 procedure to do so.

  Could someone provide this procedure or point me in the right direction?

 Thanks,
 Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] Need detailed procedure for making NET-snmp (sma) subgent to snmp4j

2012-05-31 Thread Rob Morton

   FYI...just found what I was looking for: snmpd -X -x tcp:localhost:705

On 5/31/2012 1:01 PM, Rob Morton wrote:
 Hi,

 All references I can find on net-snmp-5.5 seem to state that to run
 net-snmp as a subagent, you provide -X as an option to snmpd...no
 mention of a TCP port to connect to though...and also no mention of --X
 port as an option neither...

 So, I'm confused...what am I missing?  Could someone point me to a
 web page (other than the one below) which telss me how to connect
 net-snmp to my snmp4j AgentXMasteragent-based snmp agent...

 Thanks,
 Rob

 On 5/2/2012 3:26 PM, Frank Fock wrote:
 Hi Rob,

 See the FAQ at:
 http://server.oosnmp.net/confluence/pages/viewpage.action?pageId=3834109

 Best regards,
 Frank

 Am 02.05.2012 20:46, schrieb Rob Morton:
 Hi,

   I have a product which uses snmp4j agent as master agent.  The
 product shuts down the snmp stack on the OS (Solaris 10 or Red Hat
 Linux).  We would, however, like to have the OS snmp stack available as
 a sub-agent to our snmp4j-based master agent.  I have read in many
 instances where Franck Fock has recommended using snmp4j's agent as
 master and making sma a sub-agent...but I can't find any detailed
 procedure to do so.

   Could someone provide this procedure or point me in the right 
 direction?

 Thanks,
 Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] BaseAgent vs AgentXMasterAgent

2012-05-08 Thread Rob Morton

   Thanks Frank...:-)

On 5/7/2012 7:22 PM, Frank Fock wrote:
 Hi Rob,

 When converting from a BaseAgent based agent to a AgentXMasterAgent
 you will have to make some modifications on your agent class implementation,
 because the AgentXMasterAgent is AgentConfigManager based.

 You can compare the examples TestAgent (BaseAgent) and SampleAgent
 (AgentConfigManager). Once you have converted your agent similar
 to SampleAgent (using AgentConfigManager) converting that one
 to AgentXMasterAgent should be very easy. Basically you only have
 to exchange the config manager and set same additional options
 for AgentX.

 Best regards,
 Frank


 Am 04.05.2012 21:21, schrieb Rob Morton:
 Hi,

I have a BaseAgent-based snmp agent and want to be able to convert
 to an AgentXMasterAgent-based agent so that I can connect sub-agents
 to my Master agent in the future.

What is the path of least resistance?

 Thanks,
 Rob


___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


[SNMP4J] BaseAgent vs AgentXMasterAgent

2012-05-04 Thread Rob Morton
Hi,

   I have a BaseAgent-based snmp agent and want to be able to convert to 
an AgentXMasterAgent-based agent so that I can connect sub-agents to my 
Master agent in the future.

   What is the path of least resistance?

Thanks,
Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


[SNMP4J] Need detailed procedure for making NET-snmp (sma) subgent to snmp4j

2012-05-02 Thread Rob Morton
Hi,

   I have a product which uses snmp4j agent as master agent.  The 
product shuts down the snmp stack on the OS (Solaris 10 or Red Hat 
Linux).  We would, however, like to have the OS snmp stack available as 
a sub-agent to our snmp4j-based master agent.  I have read in many 
instances where Franck Fock has recommended using snmp4j's agent as 
master and making sma a sub-agent...but I can't find any detailed 
procedure to do so.

   Could someone provide this procedure or point me in the right direction?

Thanks,
Rob
-- 
*Rob Morton*
5750 SSC/5780 DSC 4LS Support Engineer
Alcatel-Lucent
IPD - NSM

Web: www.alcatel-lucent.com http://www.alcatel-lucent.com/
Email: rob.d.mor...@alcatel-lucent.com 
mailto:rob.d.mor...@alcatel-lucent.com
Phone: +1 613 784 6855

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j


Re: [SNMP4J] Need detailed procedure for making NET-snmp (sma) subgent to snmp4j

2012-05-02 Thread Rob Morton

   Thank you

On 5/2/2012 3:26 PM, Frank Fock wrote:
 Hi Rob,

 See the FAQ at:
 http://server.oosnmp.net/confluence/pages/viewpage.action?pageId=3834109

 Best regards,
 Frank

 Am 02.05.2012 20:46, schrieb Rob Morton:
 Hi,

  I have a product which uses snmp4j agent as master agent.  The
 product shuts down the snmp stack on the OS (Solaris 10 or Red Hat
 Linux).  We would, however, like to have the OS snmp stack available as
 a sub-agent to our snmp4j-based master agent.  I have read in many
 instances where Franck Fock has recommended using snmp4j's agent as
 master and making sma a sub-agent...but I can't find any detailed
 procedure to do so.

  Could someone provide this procedure or point me in the right direction?

 Thanks,
 Rob

___
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j