*Hi Dave,
I figured out the solution and it works in my v3 environment now.
Our agent does not register the snmpFramework module. So this is what I
did:
init_agent(agentName) ;
// BEGIN newly added the following two lines
should_init("snmpEngine");
init_mib_modules();
// END
init_snmp(agentName
On 10 March 2011 17:04, Zongjun wrote:
> I did get some result!
> snmpwalk -v 2c -c public localhost:6161 snmpFrameworkMIB
> SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00
> SNMP-FRAMEWORK-MIB::snmpEngineBoots.0 = INTEGER: 1
> SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 471 second
*
Dave,
I did get some result!
snmpwalk -v 2c -c public localhost:6161 snmpFrameworkMIB
SNMP-FRAMEWORK-MIB::snmpEngineID.0 = Hex-STRING: 80 00 1F 88 80 3F B3 8E 68
8A 01 79 4D 00 00 00
00
SNMP-FRAMEWORK-MIB::snmpEngineBoots.0 = INTEGER: 1
SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 471 second
*
Dave,
My bad. Here is the return. So it does show "The SNMP Management
Architecture MIB."
snmpwalk -v 2c -c public localhost:6161 sysORTable
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysOR
On 8 March 2011 17:28, Zongjun wrote:
>> What does walking the sysORTable show?
>
> Dave, it shows:
> snmpwalk localhost sysORTable
> SNMPv2-MIB::sysORTable = No Such Object available on this agent at this OID
I thought you were running the agent on port 6161?
You'd need to run the query
snm
*
*
On Tue, Mar 8, 2011 at 12:24 AM, Dave Shield wrote:
> On 7 March 2011 21:12, Zongjun wrote:
> > I have tried to use different ports other than 6161 (7161,9161,3456), and
> > still got the "bind failed" error below.
>
> You can ignore that error.
>
> >
On 7 March 2011 21:12, Zongjun wrote:
> I have tried to use different ports other than 6161 (7161,9161,3456), and
> still got the "bind failed" error below.
You can ignore that error.
> I was running at root. So
> permission is not a problem. And I wa
*
Dave,
Please find the output below.
I have tried to use different ports other than 6161 (7161,9161,3456), and
still got the "bind failed" error below. I was running at root. So
permission is not a problem. And I was using a port that was not used at
all. Not sure why the [init_smux] gave th
On 4 March 2011 18:47, Zongjun wrote:
> To list the complete information,
> I have all the output from net-snmp-config below:
[snip]
> [user@localhost ~]$ net-snmp-config --snmpd-module-list
> ... mibII/system_mib ucd-snmp/versioninfo ...snmpv3/snmpEngine
[snip]
OK- so the a
*To list the complete information, I have all the output from
net-snmp-config below:*
*
[user@localhost ~]$ net-snmp-config --cflags
-DINET6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -g -lcrypto
-DNETSNMP_NO_INLINE -Dlinu
*Dave,*
*
*
*Thanks so much for your time.*
*
*
*We are using the net-snmp release from Redhat*
*Red Hat Enterprise Linux Server release 5.3 (Tikanga)*
*
*
*Below is the configuration options*
*
net-snmp-config --configure-options
*
*
'--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gn
On 28 February 2011 19:20, Zongjun wrote:
> Besides our own MIB definitions, it outputs
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.1."public" = STRING: public
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.2."public" = STRING: public
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.3."public" = STRING: grppublic
*
Besides our own MIB definitions, it outputs *
*
SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.1."public" = STRING: public
SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.2."public" = STRING: public
SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.3."public" = STRING: grppublic
SNMP-VIEW-BASED-ACM-MIB::vacmSecurityToGroup
On 23 February 2011 01:05, Zongjun wrote:
> On my system, a GET on versionConfigureOptions.0 returns the following
> output:
> UCD-SNMP-MIB::versionConfigureOptions.0 = No Such Object
Hmmm... not what I'd expected.
Either:
- the agent has been compiled with a *very* restricted set of MIBs
*Thanks Dave for the comments. I am going to modify it for more security.*
On my system, a GET on versionConfigureOptions.0 returns the following
output:
UCD-SNMP-MIB::versionConfigureOptions.0 = No Such Object available on this
agent at this OID
On Thu, Feb 17, 2011 at 12:44 PM, Dave Shield wro
On 17 February 2011 17:40, Zongjun wrote:
>> What access control do you have in the snmpd.conf file.
>>
> rwuser public
> com2sec public default public
> group public v1 public
> access public "" any noauth exact all none none
Notwithstanding my concerns about these
On 17 February 2011 17:40, Zongjun wrote:
>> What access control do you have in the snmpd.conf file.
>>
> rwuser public
> com2sec public default public
> group public v1 public
> group public v2c public
> group public usm public
> view all included .1
> access
*Thanks Dave. Please see my access control inline below.
*
On Thu, Feb 17, 2011 at 12:34 AM, Dave Shield wrote:
> On 16 February 2011 21:21, Zongjun wrote:
> > Interesting, there DOES exist a difference. It returns the following:
> > snmpgetnext localhost snmpEngine
> > SNMP-VIEW-BASED-ACM-MIB:
On 16 February 2011 21:21, Zongjun wrote:
> Interesting, there DOES exist a difference. It returns the following:
> snmpgetnext localhost snmpEngine
> SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.1."public" = STRING: public
OK - so either the agent doesn't support these objects,
or the access control
*Hi Dave,*
**
*Interesting, there DOES exist a difference. It returns the following:*
*snmpgetnext localhost snmpEngine
SNMP-VIEW-BASED-ACM-MIB::vacmGroupName.1."public" = STRING: public
*
*
How so? I thought SNMPWALK will just call SNMPGETNEXT multiple times...
*
* *
On Wed, Feb 16, 2011 at 12:2
On 16 February 2011 17:58, Zongjun wrote:
> snmpwalk remoteHost snmpEngine
> SNMP-FRAMEWORK-MIB::snmpEngine = No Such Object available on this agent at
> this OID
Now can you try with the command "snmpgetnext", rather than "snmpwalk"
Thanks
Dave
*snmpwalk remoteHost snmpEngine
SNMP-FRAMEWORK-MIB::snmpEngine = No Such Object available on this agent at
this OID**
*
On Wed, Feb 16, 2011 at 9:15 AM, Dave Shield wrote:
> On 16 February 2011 17:11, Zongjun wrote:
> > I did an exhaustive WALK and GET on snmpEngineID, snmpEngineBoots, and
> > sn
On 16 February 2011 17:11, Zongjun wrote:
> I did an exhaustive WALK and GET on snmpEngineID, snmpEngineBoots, and
> snmpEngineTime. But always returns " No Such Object available on this agent
> at this OID". So I think the agent is not exposing the information to the
> SNMP interface?
What doe
*I did an exhaustive WALK and GET on **snmpEngineID, **snmpEngineBoots*, and
*snmpEngineTime. But always returns " No Such Object available on this
agent at this OID"*. So I think the agent is not exposing the information
to the SNMP interface? Or is there any option, including a compiling
optio
On 16 February 2011 02:38, Zongjun wrote:
>> Otherwise, sending a GET query to snmpEngine.0 is another way to go.
>
> I get the following response on a GET to snmpEngine.0.
> snmpget remoteBlade snmpEngine.0
> SNMP-FRAMEWORK-MIB::snmpEngine.0 = No Such Object
A better way to go is probably a GET
*
*
On Tue, Feb 15, 2011 at 2:37 PM, Wes Hardaker <
harda...@users.sourceforge.net> wrote:
> > On Tue, 15 Feb 2011 13:01:02 -0800, Zongjun
> said:
>
> Z> I am trying to get the engine time (esp. the engineBoots) of the remote
> Z> agent, by using get_enginetime_ex api. The api call fails.
>
> On Tue, 15 Feb 2011 13:01:02 -0800, Zongjun said:
Z> I am trying to get the engine time (esp. the engineBoots) of the remote
Z> agent, by using get_enginetime_ex api. The api call fails.
Hmm.. I thought that the enginetime was copied into the session
structure, but it may be only copied
Hi, Wes,
I am trying to get the engine time (esp. the engineBoots) of the remote
agent, by using get_enginetime_ex api. The api call fails.
I also tried another api, get_enginetime (though I think this one is
actually returning the local engine time). It also fails.*
*
Thanks,
Zongjun
On Tue, F
> On Tue, 15 Feb 2011 09:31:17 -0800, Zongjun said:
>> *I am using netsnmp 5.3.1. I am trying to get the authoritative engine
>> time by calling to get_enginetime(), but the function always fails.
Z> *Is there a configuration option to the NET-SNMP Agent in order to
Z> *expose* this informa
*Is there a configuration option to the NET-SNMP Agent in order to *expose*
this information?
*
On Thu, Feb 10, 2011 at 12:06 PM, Zongjun wrote:
> *Hi,*
> *
> *
> *I am using netsnmp 5.3.1. I am trying to get the authoritative engine
> time by calling to get_enginetime(), but the function always
*Hi,*
*
*
*I am using netsnmp 5.3.1. I am trying to get the authoritative engine ID
by calling to get_enginetime(), but the fuction always fails. The tshark
however shows the manager can successful talks to the agent with the right
msgAuthoritativeEngineBoot and **msgAuthoritativeEngineTime. And
*Hi,
I am using netsnmp 5.3.1. I am trying to get the authoritative engine ID by
calling to get_enginetime(), but the fuction always fails. The tshark
however shows the manager can successful talks to the agent with the right
msgAuthoritativeEngineBoot and msgAuthoritativeEngineTime. And I am u
32 matches
Mail list logo