For cricket you need to use the full OID. So add 1.3.6.1.2.1 to the
beginning of your OID and it should work.
Steven Nemetz phone: 650-330-9063
Network Security Manager fax: 650-566-0382
exp.com
1374 Willow Road
Menlo Park, CA 94025
www.exp.com
-----Original Message-----
From: Grimshaw Stuart [mailto:stuart.grimshaw@blackburn.gov.uk]
Sent: Friday, January 07, 2000 5:09 AM
To: 'cricket-users@onelist.com'
Subject: [cricket-users] Getting Pagecount from a printer.
You may have seen my post yesterday about trying to get a pagecount from
my HP Laserjet 4000, at the time I didn't think the question was a topic
for this list, however a little further investigation, and I think it
might be.
this command :
snmpget 10.18.2.4 public 43.10.2.1.4.1.1
will return the pagecount.
43.10.2.1.4.1.1 = 56152
However, when I try to set up a cricket config for the printer :
# Cricket 'Defaults' file for HP Laserjet 4000 printers
# Created 05/01/2000 Stuart M. Grimshaw
OID hplj_pagecount 43.10.2.1.4.1.1
datasource hplj_pagecount
ds-source = snmp://%snmp%/hplj_pagecount
# Graph defaults
graph hplj_pagecount
color = orange
draw-as = AREA
legend = "Pages Printed"
y-axis = "Pages"
# Target Type
targetType hp-lj4000
ds = "hplj_pagecount"
view = "Pages: hplj_pagecount"
and the actual file from deeper in the tree :
target sysadmin-printer
target-type = hp-lj4000
snmp-host = 10.18.2.4
and then run it through collect-subtrees, I get the following error
message.
[07-Jan-2000 13:00:49*] cannot encode Object ID 43.10.2.1.4.1.1: first
subid too big in Object ID 43.10.2.1.4.1.1 at
usr/lib/perl5/site_perl/5.005/SNMP_util.pm line 942.
I'm guessing there must be some errors in my Defaults and other files?
Might I be missing a MIB file? I've downloaded one for an HPJetdirect 3,
which is what these printers have inside them to the best of my
knowledge, but it stiall makes no difference.
TIA,
Stu.
--------------------------- ONElist Sponsor ----------------------------
Hey Freelancers: Find your next project through JobSwarm!
You can even make money in your sleep by referring friends.
<a href=" http://clickme.onelist.com/ad/jobswarm1 ">Click Here</a>
------------------------------------------------------------------------
--------------------------- ONElist Sponsor ----------------------------
Independent contractors: Find your next project gig through JobSwarm!
You can even make money by referring friends.
<a href=" http://clickme.onelist.com/ad/jobswarm2 ">Click Here</a>
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:08 PST