Rob Morton | 2 May 2012 20:46
Favicon

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

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.morton@... 
<mailto:rob.d.morton@...>
Phone: +1 613 784 6855
Frank Fock | 2 May 2012 21:26
Favicon

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

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

--

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
(Continue reading)

Rob Morton | 2 May 2012 21:29
Favicon

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


   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
Rob Morton | 4 May 2012 21:21
Favicon

BaseAgent vs AgentXMasterAgent

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
Frank Fock | 8 May 2012 01:22
Favicon

Re: BaseAgent vs AgentXMasterAgent

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
>

--

-- 
(Continue reading)

ravi theja | 8 May 2012 08:56
Picon

Re: BaseAgent vs AgentXMasterAgent

I have written a proxy agent and assigned set of oids in experimental
section . When i give snmpbulkget for respective oid am getting response ,
but this
only with 1st 3 oids which i have declared . For remaining oids when i give
a response   , i get this response ..

enterprises.4976.10.1.1.1.1.1.1.0 = STRING:
"org.snmp4j.log.LogFactory <at> 1484a05"

How do i fix this ??

ANY HELP ???

--

-- 
Ravi
Rob Morton | 8 May 2012 15:31
Favicon

Re: BaseAgent vs AgentXMasterAgent


   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?
>>
(Continue reading)

Rob Morton | 31 May 2012 19:01
Favicon

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

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
(Continue reading)

Rob Morton | 31 May 2012 21:44
Favicon

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


   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,
>>>
(Continue reading)

Rob Morton | 5 Jun 2012 01:43
Favicon

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

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
>
(Continue reading)

Rob Morton | 6 Jun 2012 02:03
Favicon

net-snmp and snmp4j agentx

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
Frank Fock | 6 Jun 2012 11:39
Favicon

Re: net-snmp and snmp4j agentx

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.0 = No Such Object available
(Continue reading)


Gmane