HI,
The definition of the index object should have max-access value
of "not-accessible".
A set to object office."Rodolfo Giometti" with value "Colognora"
should change it, assuming you have authorization to modify
values.
At 06:32 PM 6/24/2004 +0200, Rodolfo Giometti wrote:
>Hi,
>
>I defined a table like this:
>
> infoTable OBJECT-TYPE
> SYNTAX SEQUENCE OF infoEntry
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION "Staff members"
> ::= { staff 1 }
>
> infoRow OBJECT-TYPE
> SYNTAX infoEntry
> MAX-ACCESS not-accessible
> STATUS current
> DESCRIPTION "A row describing a staff's member"
> INDEX { name }
> ::= {infoTable 1 }
>
> infoEntry ::= SEQUENCE {
> name,
> office,
> email
> }
>
> name OBJECT-TYPE
> SYNTAX simpleString
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "Staff member's name"
> ::= { infoRow 1 }
>
> office OBJECT-TYPE
> SYNTAX simpleString
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "Staff member's office address/phone number"
> ::= { infoRow 2 }
>
> email OBJECT-TYPE
> SYNTAX simpleString
> MAX-ACCESS read-create
> STATUS current
> DESCRIPTION "Staff member's e-mail"
> ::= { infoRow 3 }
>
>The corresponding tree is:
>
> +--staff(2)
> | |
> | +--infoTable(1)
> | |
> | +--infoRow(1)
> | | Index: name
> | |
> | +-- CR-- String name(1)
> | | Textual Convention: simpleString
> | | Size: 0..255
> | +-- CR-- String office(2)
> | | Textual Convention: simpleString
> | | Size: 0..255
> | +-- CR-- String email(3)
> | Textual Convention: simpleString
> | Size: 0..255
>
>If I use the snmpwalk command everything works:
>
> SELTASYS-MIB::name."...." = STRING: Rodolfo Giometti
> SELTASYS-MIB::name."...." = STRING: Veronica Rainone
> SELTASYS-MIB::office."...." = STRING: Porcari
> SELTASYS-MIB::office."...." = STRING: Formia
> SELTASYS-MIB::email."...." = STRING: rodolfo (dot) giometti (at) enneenne (dot) com
> SELTASYS-MIB::email."...." = STRING: veronica (dot) rainone (at) enneenne (dot) com
>
>but the question is that I didn't find a good command to change this
>values. For example, which command I should use to change the string
>�Porcari� in �Colognora�?
>
>I tried to find this command on the net but with poor results...
>
>Thanks in advance,
>
>Rodolfo
Regards,
/david t. perkins
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders