How do I use AgentX++'s subagent example with snmpd (UCD-SNMPimplementation)?

Frank Fock Frank.Fock____t-online.de
Fri Nov 1 12:07:02 CET 2002


Hi Betty,

if you run both agents under root, you most likely have not
to care about permissions. So, everything seems to be fine.

You can disable the logging/trace output by changing the
logging level to 0 for all logging types in the subagent.cpp
file:

#ifndef _NO_LOGGING
	DefaultLog::log()->set_filter(ERROR_LOG, 0);
	DefaultLog::log()->set_filter(WARNING_LOG, 0);
	DefaultLog::log()->set_filter(EVENT_LOG, 0);
	DefaultLog::log()->set_filter(INFO_LOG, 0);
	DefaultLog::log()->set_filter(DEBUG_LOG, 0);
#endif

(Another approach for production systems is to disable
logging at all be defining _NO_LOGGING in agent++.h. This
significantly increases speed and reduces code size)

Best regards,
Frank

Goh, Betty wrote:
> Hi Frank,
> 
> Yes, the subagent is running. It keeps reflecting back these messages:
> 20021101.15:15:01 1115: (5)INFO    : AgentXSlave: no request within (milli
> seconds): (20000)
> 20021101.15:15:01 1115: (3)EVENT   : AgentX: sending agentx pdu
> (sd)(type)(sid)(tid)(pid)(err))(errind): (5), (13), (5), (119), (137), (0),
> (0)
> 
> I went to the /var/agentx directory and saw that the access rights are as
> follows:
> 
> drwx------ 2 root root   4096   Nov 1 15:01 agentx
> 
> inside agentx directory
> srwxr-xr-x 1 root root   0      Nov 1 15:01 master
> srwxr-xr-x 1 root root   0      Nov 1 15:02 subagent13115
> 
> The date and time of both these files are updated when I run the commands
> for snmpd and subagent.
> 
> I'm running all these as root. What should be the owner and access rights
> for the master file in /var/agentx directory?
> 
> Thanks!
> 
> regards,
> Betty
> 
> Tel:(65)6483-9702
> Email:betty.goh at glenayre.com
> 
> 
> -----Original Message-----
> From: Frank.Fock____t-online.de [mailto:Frank.Fock____t-online.de]
> Sent: Friday, November 01, 2002 9:41 AM
> To: Goh, Betty
> Cc: 'agentpp-dl____agentpp.com'
> Subject: Re: How do I use AgentX++'s subagent example with snmpd
> (UCD-SNMPimplementation)?
> 
> 
> Hi Betty,
> 
> I saw your post on com.protocols.snmp. Did you get the
> AgentX++ subagent running?
> 
> You will need to create /var/agentx/master with an
> appropriate owner and access rights.
> 
> (May be its easier to run AgentX over TCP for the first
> attempt.)
> 
> Hope this helps.
> 
> Best regards,
> Frank
> 
> 
> Goh, Betty wrote:
> 
>>Hi Everyone,
>>
>>I'm new to snmp and AgentX++ and I have some questions that I hope you can
>>help me. 
>>
>>I've just downloaded AgentX++/AGENT++/SNMP++ to try out the AgentX
>>implementation and followed the instructions on the INSTALL file compiling
>>them. I first tested AgentX++'s master agent and subagent implementation
> 
> and
> 
>>it seemed to work okay when I use SNMP++'s snmpGet and snmpWalk..
>>
>>However when I tried to use AgentX++'s subagent with snmpd (as the master
>>agent), it doesn't work. 
>>
>>I ran the snmpd with the following command "snmpd -p 4700 -x
>>/var/agentx/master". 
>>
>>Then I did a snmpwalk like this "snmpwalk -t 120 -p 4700 linux3 public
>>.1.3.6.1.4.1.4976.6.1.2". It gave me timeout error. I tried to ping linux3
>>and linux3 is up and running.
>>
>>Can someone guide me step by step as to how to make this work?
>>
>>By the way, I'm working on Linux version 7.2 and the UCD-SNMP is version
>>4.1.2.
>>
>>Many thanks.
>>
>>regards,
>>Betty
>>
>>
> 
> 
> 
> 
> 







More information about the AGENTPP mailing list