>  abc           OBJECT IDENTIFIER ::= { enterprises 1234 }
>  abcSamples    OBJECT IDENTIFIER ::= { abc 2356 }
>  systemsummary OBJECT IDENTIFIER ::= { abcSamples 1 }



> static oid       abc_variables_oid[] = { 1, 3, 6, 1, 4, 1, 1234};
> 
> 
> struct variable4 via_variables[] = {
>     {SSNAME, ASN_OCTET_STR, RONLY, var_abc, 2, {1,1}},
> }

You're quite correct - the code generated by mib2c is wrong.


> struct variable7 via_variables[] = {
>     {SSNAME, ASN_OCTET_STR, RONLY, var_abc, 3, {2356, 1,1}},
> }

That looks correct.
  (You should be able to get away with "struct variable3" or
   "struct variable4", but that's not really relevant here).



> but i also can't get SSNAME, Could you kind show me what should I do ?

How did you try to get SSNAME.
What was the exact command you gave?

Have you tried working through the checklist in the FAQ entry:
  I've added my code to this template and it still doesn't work.  Why not?

Dave

PS: Please - no HTML mail.  Thanks



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to