| |||||||||||
MIB Posted by LAPSWINWOLF (LAPSWINWOLF), 26 August 2004 Good Day!I'm using PERL in creating an SNMP manager. Our SNMP agent have custom MIB. I have some difficulty on how to set/get request with the TABLE OBJECT. Is anyone here have some idea on this on how to access unicSelectedCameraNumber and unicCameraStatus in my Example MIB? the only way i know to access the MIB is like this: get_request($OID); set_request($OID, $ASNtype, $value); Hope someone can help me with this. Thank you very much. Ex MIB. unicRecordingStatus OBJECT-TYPE SYNTAX SEQUENCE OF UnicRecordingStatusEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "A" INDEX { unicSelectedCameraNumber } ::= { unic 2 } unicRecordingStatusEntry OBJECT-TYPE SYNTAX UnicRecordingStatusEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "-" INDEX { unicSelectedCameraNumber } ::= { unicRecordingStatus 1 } UnicRecordingStatusEntry ::= SEQUENCE { unicSelectedCameraNumber INTEGER, unicCameraStatus INTEGER } unicSelectedCameraNumber OBJECT-TYPE SYNTAX INTEGER{ camera1 (1), camera2 (2), camera3 (3) } MAX-ACCESS read-write STATUS current DESCRIPTION "Selected Camera Number" ::= { unicRecordingStatusEntry 1 } unicCameraStatus OBJECT-TYPE SYNTAX INTEGER { recording (1), completed (2), failed (3), canceled (4), pre-recording (5), stand-by (6) } MAX-ACCESS read-write STATUS current DESCRIPTION "Status of Camera" ::= { unicRecordingStatusEntry 2 } Posted by admin (Graham Ellis), 27 August 2004 I've moved this question here as it seems to be more about SNMP than Perl. There already a very similar question just been started in the Perl section, so by moving the question here you have two chances of people seeing it. You may be lucky, but don't hold your breath - this is a set of boards about Open Source programming languages so SNMP is off-topic.Posted by admin (Graham Ellis), 27 August 2004 Just to add ... you may have noticed another recent post in the Perl section about the use of Perl to run SNMP queries. That comes from exactly the same IP address that you're using according to the logs that I'm seeing as the administrator, so it looks like you have a co-worker with similar issues. It might be a good idea to seek him out. If you can't guess who he is from his post, use our personal message facility. This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |