Re: timeticks in second and send a easy trap
"Tako Chang" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2007/12/19, Dave Shield <[email protected]>: > > On 19/12/2007, Tako Chang <[email protected]> wrote: > > myMibTrap ::= { enterprise 920 999} > > myMibTrap0 ::= { myMibTrap 0 } > > demoTrap NOTIFICATION-TYPE ... ::= { myMibTrap0 1 } > > > > (assume 920 is my organization oid) > > I presume you are actually using a different number? > (920 is actually assigned to R.I.S Technologies) I don't know my organization id at this time. It's just a example > #define MY_MIB_TRAP_OID SNMP_OID_ENTERPRISES, 920, 999 > > oid trapoid[] = { MY_OID_TRAP_COMMON }; > > These two tokens need to be the same. > I'm surprised that this code actually compiles! > > Dave sorry, It's a typo !! trapcommon := { enterprise. 920. 999 } and demotrap := { trapcommon 0 1 } ==> trapoid[] = { SNMP_OID_ENTERPRISES, 920, 999 }; and oid of the variable i want to transmit is /* ,,,enterprise. my_org_id. department_id. 1 . 2 testFlagoid[] = {MY_OID_COMMON, 1, 2 } ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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