gud day!
i have compiled a custom mib. i can set requests to scalar type variables but i cant do it on Table type variables...
in both cases, i have an error in getting requests..
is there something i'm missing out?
can i set/get requests to table type oids individually or do i need to do an snmpwalk or whatever?
heres the mib...
unicRecordingStatus OBJECT-TYPE
SYNTAX SEQUENCE OFUnicRecordingStatusEntry
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..
tia..
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.