View previous topic :: View next topic |
Author |
Message |
Mit Apprentice
Joined: 13 Apr 2003 Posts: 260 Location: Under a rock.
|
Posted: Mon Mar 22, 2004 12:21 pm Post subject: PHP SNMP Printers |
|
|
Got an odd one here, i've re-compiled the kernel on my box and since doing so, a little script i'd made to get values from networked printers (using SNMP) now only half works.
Updated from Gentoo-Sources 2.4.22-r5 to r7
Not touched anything with PHP / SNMP, was wondering if anyone had any ideas what could cause this. (no firewall rules on the box)
I CAN still get the printer status, but not the page count or hostname.
Code: |
$Status = @snmpget($ResRow['ip'], $community, ".1.3.6.1.4.1.11.2.3.9.1.1.3.0", $timeout, $retries);
$Name = @snmpget($ResRow['ip'], $community, "system.sysName.0", $timeout, $retries);
$Pages = @snmpget($ResRow['ip'], $community, ".1.3.6.1.2.1.43.10.2.1.4.1.1", $timeout, $retries);
|
|
|
Back to top |
|
|
Air-Op n00b
Joined: 02 Apr 2003 Posts: 52
|
Posted: Mon Mar 22, 2004 1:01 pm Post subject: try diffing your .config files? |
|
|
Maybe there is a config option different between kernels?
try diffing them.
diff .config_backup .config
or whatever.
www.subverted.net/wakka used to be a nice resource... it appears to be down. |
|
Back to top |
|
|
Mit Apprentice
Joined: 13 Apr 2003 Posts: 260 Location: Under a rock.
|
Posted: Mon Mar 22, 2004 1:23 pm Post subject: |
|
|
the r7 was an exact copy of the r5 one with 2 minor changes with the hardware (i had to replace one of the network cards - the external one, the one i don't use SNMP over).
Tried running snmpget from the command line, it just reports a timeout now. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|