Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP SNMP Printers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mit
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 260
Location: Under a rock.

PostPosted: Mon Mar 22, 2004 12:21 pm    Post subject: PHP SNMP Printers Reply with quote

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
View user's profile Send private message
Air-Op
n00b
n00b


Joined: 02 Apr 2003
Posts: 52

PostPosted: Mon Mar 22, 2004 1:01 pm    Post subject: try diffing your .config files? Reply with quote

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
View user's profile Send private message
Mit
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 260
Location: Under a rock.

PostPosted: Mon Mar 22, 2004 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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