note 28186 added to function.snmpset

From: Date: Sun, 05 Jan 2003 09:14:18 +0000
Subject: note 28186 added to function.snmpset
Groups: php.notes 
Request: Send a blank email to php-notes+get-41682@lists.php.net to get a copy of this message
Hi there, maybe you should use: snmpset( $IP, $Writecomm, $OID, "i", 2 ); This works for me to deactivate a port, where snmpget returns "up(1)" for an activated, and "down(2)" for a deactivated Port. I've also recognized switches that use 0 and 1 instead of 1 and 2, but also return up(1) and down(2), so maybe you should try to set it to 0... -- http://www.php.net/manual/en/function.snmpset.php http://master.php.net/manage/user-notes.php?action=edit+28186 http://master.php.net/manage/user-notes.php?action=delete+28186 http://master.php.net/manage/user-notes.php?action=reject+28186

« previous php.notes (#41682) next »