Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: Dart SNMP Manager repoting error usmstatsnotintime window to agent
Farhana

From: India
Posts: 5
Member Since: 10/29/15
posted October 29, 2015 9:05 AM

I'am Using PowerSNMP_48 for developing a SNMP manager application using dart.dll.

I have implemented the code to receive SNMP v3 inform massages form an SNMP agent. And its working fine. but the snmp v3 inform packets are not receiving in manager once it got restarted and manager is sending an error report to agent ie 'USMStatsnotintimewindow' for all inform packets . The is solved once the agent also restarted . But I need to fix this issue without restarting the agent . Please help if you have any idea. Thanks in advance
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted October 30, 2015 2:24 PM

Hello Farhana,

Manager.Security.AuthoritativeEngine.Time is reset to 0 when your application is restarted. The Agent, however, is using the Time value it previously discovered for its Inform message. The 'USMStatsnotintimewindow' report correctly indicates this situation. The Agent, however, is not updating it's Time value to the new value included in the Report.

Can you please identify what software is being used as the Agent? We like to keep track of issues encountered w/ 3rd party products.

As a work-around, you can set Manager.AuthoritativeEngine.Time to a new Time after restarting the AuthoritativeEngine. Please look at our Manager C# sample as an example of how this might be done.

Thank you for being our customer!
Farhana

From: India
Posts: 5
Member Since: 10/29/15
posted November 3, 2015 7:00 AM

Hi Mike,

We are using 'NetSNMP' for our SNMP agent.
We tested the agent with MGSoft Mib browser as snmp manager.
Here its working fine Event after manager is restarted.
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted November 3, 2015 9:26 AM

Hello Farhana,

Thank you for sharing this with us. It is possible that the MBSoft Mib browser persists it's Authoritative Engine's Time and Boots values between restarts. That would explain how it's synchronization persists (we do the same thing in our Manager sample).

However, I can't explain why the NetSNMP agent does not update it's Time and Boots values (from the USMStatsnotintimewindow report) and retry sending the Inform message (this would be the expected behavior, and is what our product does).

Please keep us posted with any new information you gather.

Kind Regards, mike
anoop.ag

From: India
Posts: 1
Member Since: 11/24/15
posted November 24, 2015 1:50 AM

We have discussed this issue with our technical architect. his response is as follows.

"Dart is not advancing the engineBoots when it reboot. Net-snmp will reject the message if engineBoots is the same and engineTime is less than the expected value. Please inform Dart accordingly, and ask for a fix."

I have sent a mail to support@dart.com with communication scenario.
Mike Baldwin (Admin)



From: Rome, NY USA
Posts: 114
Member Since: 04/11/00

Extra Support Options
Custom Application Development

posted November 24, 2015 12:22 PM

Hello Farhana,

Thank you for furnishing your technical information, which I'll restate:
Scenario 1:
-     Started agent and manager.
-     Send two alarms to manager from agent.
-     Alarm received in manager and send back acknowledgement to the agent.
Scenario 2:
-     The manager restarted.
-     Send one alarm from agent.
-     Manager is not sending acknowledgement, instead it is sending “USMStatsnotintimewindow” error report to agent.

In scenario 1, the agent and manager are accidentally synchronized (Boots initialized to 1 and Time initialized to 0) so when the manager receives the alarms they are within the time window and default processing occurs as expected. If the manager application is restarted it reinitializes Boots to 1 and Time counter to 0, so if 150 seconds have elapsed they are no longer synchronized and we send the USMStatsnotintimewindow report.

To confirm our understanding, can you please start your agent, wait at least 150 seconds, and start the manager. Then the manager should send the same report a Scenario 2.

At this point I am wondering if the MGSoft Mib Browser "works" because it does not attempt to confirm time window security. I am also wondering whether the NetSNMP agent performs SNMP 'discovery' to dynamically synchronize the time window when it receives the USMStatsnotintimewindow report.

It is true that our Manager component does not automatically persist the last Boots value when it is initialized ... any persistence of this nature must be maintained at the application level, and set to your desired value when your application is restarted. Our Manager sample application illustrates how this can be done. So your architect's suggestion must be implemented by your application.

Please provide us with the results of your testing ... also, please advise if you want the time synchronization to work properly, or whether you simply want a work-around for disabling the default behavior.

Kind Regards, mike

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Farhana

From: India
Posts: 5
Member Since: 10/29/15
posted November 30, 2015 6:21 AM

Hi Mike,
The issue is fixed by updating fixed by updating
the engine boot value each time when engine is re started in application level.
Thank you very much for your support :)

I have added Test scenario and result , after adding this fix in code.


1. agent and manager started .
2.Send two alarms to manager. Alarm received and send the acknowledgement.
3.Then manager restarted.
4.Send alarm from agent.
result:-
Manager is not sending ack, instead it is sending “USMStatsnotintimewindow” error report to agent.
In the very next packet agent send the packet with updated engine time.

once again thanks for your support :)

Regards,
Farhana
Farhana

From: India
Posts: 5
Member Since: 10/29/15
posted August 22, 2016 7:04 AM

Hi ,

I have got a doubt in sending an Inform Message from an agent to a Dart Snmp Manager.
First the agent send a get a request mgs to manager with empty Engine Id, Boot and Engine time .
Then the Dart SNMP manager Send a report ‘ SNMP-USER-BASED-SM-MIB::usmStatsUnknownEngineIDs.0’ to Agent with engine Id , and boot and Engine time as Zero.

My doubt is can I send this report with current engine Time and Boot also so that agent will get synchronized with first report itself .

Regards,
Farhana
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 23, 2016 11:54 AM

Hello,

I've posted a response in your new topic here:
http://support.dart.com/postings?topicid=8769
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX