Well House Consultants Ltd

Search site for:

Further Information:
Home
What's New
Resource Centre
WHC Library
Opentalk Forum
About Us

AA AA AA AA
Accessability
Perl Programming - Perl, mod-perl, CGI, etc.

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 }




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.

WELL HOUSE CONSULTANTS LTD
404, The Spa • Melksham, Wiltshire SN12 6QL • United Kingdom
PHONE: 01144 1225 708225 • FACSIMLE 01144 1225 707126 • EMAIL: info@wellho.net
You are currently on our United States site. Change your country
Updated Sunday, April 28th 2024 Privacy and Copyright Statement © 2024