From:             
Operating system: Linux
PHP version:      Irrelevant
Package:          SNMP related
Bug Type:         Bug
Bug description:SNMPv3 cannot connect after reboot

Description:
------------
Under certain conditions, it is not possible to reconnect to a device that
has 
rebooted while using SNMPv3.

This happens if a PHP script is connecting with authNoPriv or authPriv.

After the device reboots, PHP's SNMPv3 routines do not take note of the
modified 
msgAuthoritativeEngineReboots count and the modified
msgAuthoritativeEngineTime 
values - they continue trying to use the old values, and as a result are
never 
able to communicate after a reboot.

During device maintenance, it is often necessary to reboot a device - such
as 
after a firmware upgrade. So this is actually something that is needed.

Basically, there needs to be a way to discard existing session information.

Test script:
---------------
<?php
for ( ; ; ) {
$result =
snmp3_get( "192.168.1.1",
           "admin",
           "authNoPriv",
           "MD5",
           "Password01",
           "DES",
           "ciscocisco",
           "1.3.6.1.2.1.47.1.1.1.1.2.1",
           500000,
           0 );
var_dump( $result );
sleep(30);
}
?>

Expected result:
----------------
Run this script, verify that it successfully reads the data. Reboot the
device and 
see that it is unable to read the data after the device is back up. Use
Wireshark 
to observe that the boot count and time values have changed, but the PHP
SNMP 
routines ignore the new values.



-- 
Edit bug report at https://bugs.php.net/bug.php?id=61197&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61197&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61197&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61197&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61197&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61197&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61197&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61197&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61197&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61197&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61197&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61197&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61197&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61197&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61197&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61197&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61197&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61197&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61197&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61197&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61197&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61197&r=mysqlcfg

Reply via email to