Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho