Re: Can not get remote engineTime.

2011-03-23 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-03-11 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-03-10 Thread Zongjun
* 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

Re: Can not get remote engineTime.

2011-03-10 Thread Zongjun
* 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

Re: Can not get remote engineTime.

2011-03-09 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-03-08 Thread Zongjun
* * 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. > > >

Re: Can not get remote engineTime.

2011-03-08 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-03-07 Thread Zongjun
* 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

Re: Can not get remote engineTime.

2011-03-07 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-03-04 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-03-04 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-03-01 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-28 Thread Zongjun
* 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

Re: Can not get remote engineTime.

2011-02-23 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-22 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-02-17 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-17 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-17 Thread Zongjun
*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:

Re: Can not get remote engineTime.

2011-02-17 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-16 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-02-16 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-16 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-02-16 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-16 Thread Zongjun
*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

Re: Can not get remote engineTime.

2011-02-16 Thread Dave Shield
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

Re: Can not get remote engineTime.

2011-02-15 Thread Zongjun
* * 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. >

Re: Can not get remote engineTime.

2011-02-15 Thread Wes Hardaker
> 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

Re: Can not get remote engineTime.

2011-02-15 Thread Zongjun
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

Re: Can not get remote engineTime.

2011-02-15 Thread Wes Hardaker
> 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

Re: Can not get remote engineTime.

2011-02-15 Thread Zongjun
*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

Can not get remote engineTime.

2011-02-11 Thread Zongjun
*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

Can not get remote engineTime.

2011-02-10 Thread Zongjun
*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