• June 16, 2024, 11:01:09 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Device timeouts when sending SNMP commands  (Read 5237 times)

mehow

  • Level 1 Member
  • *
  • Posts: 1
Device timeouts when sending SNMP commands
« on: April 04, 2010, 01:20:30 AM »

Hi everyone,
I'm trying to enable/disable port speed on DES 1228 switch. I'm using PHP SNMP library and simple HTML form with checkbox for every port. The configuration is being changed as a result.  However, after the first snmpset request switch becomes unresponsive and the more ports I try to change at one go the more timeout I get from switch. This is for example output for the ping command when sending two snmpset commands:

Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1683ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=2711ms TTL=255
Forespørsel avbrutt.
Svar fra 192.168.80.80: byte=32 tid=1240ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=5ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=2ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255


and this is what's happening when I try to change 8 ports at once:

Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=9ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1266ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=2685ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=4031ms TTL=255
Forespørsel avbrutt.
Forespørsel avbrutt.
Forespørsel avbrutt.
Forespørsel avbrutt.
Forespørsel avbrutt.
Forespørsel avbrutt.
Forespørsel avbrutt.
Svar fra 192.168.80.80: byte=32 tid=6ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255
Svar fra 192.168.80.80: byte=32 tid=1ms TTL=255

There is 1 second of sleep period between each snmp request send to the switch. I tested the code under Windows and Linux boxes with same result. Disabling SmartGuide engine does not make any difference.  Before 1228 I tried same code with 1216 mode and it was even worse, longer timeouts.

Have anyone came across such a issue with these switches? Or does anyone use successfully some kind of SNMP managing with them ?

Thanks,
Michal
Logged

poyicameo

  • Level 1 Member
  • *
  • Posts: 8
Re: Device timeouts when sending SNMP commands
« Reply #1 on: June 07, 2010, 07:23:31 AM »

Dear Michal,

About your description DES-1228 ping no reply when SNMP setting that is a normal behavior for DES-1228.
Because DES-1228 CPU process SNMP task priority is highest that will cause CPU pause process other low priority task when SNMP setting request forward to DES-1228 CPU. Thanks a lot.

Poyi
Logged