Hi,
I edited the HP Laserjet 2300 MIB a bit and made the prtCovertable writable
to test the Web Jet admin discovery.
the part i edited looks like this
prtCoverTable OBJECT-TYPE
SYNTAX SEQUENCE OF PrtCoverEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table of the covers and interlocks of the printer."
::= { prtCover 1 }
prtCoverEntry OBJECT-TYPE
SYNTAX PrtCoverEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Information about a cover or interlock.
Entries may exist in the table for each device
index whose device type is `printer'."
INDEX { prtCoverIndex }
::= { prtCoverTable 1 }
PrtCoverEntry ::= SEQUENCE {
prtCoverIndex Integer32,
prtcoverdescription OCTET STRING,
prtcoverstatus INTEGER
}
prtCoverIndex OBJECT-TYPE
SYNTAX Integer32 (1..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A unique value used by the printer to identify this Cover
sub-unit. Although these values may change due to a major
reconfiguration of the device (e.g. the addition of new
cover sub-units to the printer), values are expected to
remain stable across successive printer power cycles."
::= { prtCoverEntry 1 }
prtcoverdescription OBJECT-TYPE
SYNTAX OCTET STRING (SIZE(0..255))
ACCESS read-create
STATUS optional
DESCRIPTION
"The manufacturer provided cover sub-mechanism name in the
localization specified by prtGeneralCurrentLocalization.
Refer to Internet Draft Printer MIB, expiring Sept. 1997 for more details."
::= { prtCoverEntry 2 }
prtcoverstatus OBJECT-TYPE
SYNTAX INTEGER {
ePdoorOpen(3),
ePdoorClosed(4)
}
ACCESS read-create
STATUS optional
DESCRIPTION
"The status of this cover sub-unit.
Refer to Internet Draft Printer MIB, expiring Sept. 1997 for more details."
::= { prtCoverEntry 3 }
I run mib2c.mfd.conf to created the template code. But i don't exactly
know how to add a row to the table. Where in the resulting code can i do
this? I have looked at the netSnmpIETFWGTable example and at the ifTable
example but couldn't figure out what to do.
I tried to set the table with snmpset command and got following
snmpset -cpsi -v1 192.168.2.101 prtcoverdescription.0 s "DE"
prtcoverdescription.0 : (Index out of range: 0 (prtCoverIndex))
I would be very gratefull if someone can send me an example how to populate
this table
thanks in advance for any suggestions
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users