Gossamer Forum
Home : General : Perl Programming :

PERL-SNMP

Quote Reply
PERL-SNMP
i'm new to both perl and snmp

i've compiled an mib and integrated it to an agent... the problem is i can't get and set requests to the table or to those oids generated by the object type syntax SEQUENCE OF

here is a part of the mib...
Code:
...securia OBJECT IDENTIFIER ::= { enterprises 30000 }unic OBJECT IDENTIFIER ::= { securia 1 }unicModules OBJECT IDENTIFIER ::= { securia 2 } unicGenericStatus OBJECT-TYPE SYNTAX INTEGER { initializing (1), initialized (2), be-in-normal (3), be-in-emergency (4), absence-normal (5), absence-warning-fire-alarm (6), absence-warning-intruder (7), absence-goods-aliving (8) } MAX-ACCESS read-write STATUS current DESCRIPTION "Generic Status"::= { unic 1 } 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 }...

i'd appreciate any help
thank you....