I am trying to make a subagent for the UPS-MIB.
I generate the code with  mib2c -c mib2c.conf upsMIB
I select 1) ucd-snmp style code


I get upsMIB.c

I am trying to fill in var_upsAlarmTable, but am running into lots of
little errors.  Does anybody havae
any example code I might be able to review?

basically, how might I fill in:
  switch(vp->magic) {
    case UPSALARMID:
        VAR = VALUE;    /* XXX */
        return (u_char*) &VAR;
    case UPSALARMDESCR:
        VAR = VALUE;    /* XXX */
        return (u_char*) &VAR;
    case UPSALARMTIME:
        VAR = VALUE;    /* XXX */
        return (u_char*) &VAR;
    default:
      ERROR_MSG("");

Thank you!  Any advice would be appreciated.
-Mike

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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