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

-- 

GNU/Linux Solutions                  e-mail:    [EMAIL PROTECTED]
Linux Device Driver                             [EMAIL PROTECTED]
Embedded Systems                     home page: giometti.enneenne.com
UNIX programming                     phone:     +39 349 2432127


-------------------------------------------------------
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

Reply via email to