Hi I used the mib2c int template to convert a mib with a single
read-write object successfully , however now I face a new issue the
value that I need to snmpset is `date +%s` (Linux APOC) which I assume
will not fit into an integer field  , I assume I will need to change the
field type to counter32  , however I simply do not know which template
to use , nor to code the missing lines after mib2c , below my MIB.

Please Assist.

Thanks

 

MY-COMPANY4-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises, Counter32 FROM SNMPv2-SMI;

-- root of our MIB will point to enterprises

myCompany4MIB MODULE-IDENTITY
LAST-UPDATED
"201011210000Z"
ORGANIZATION
"my org"
CONTACT-INFO
"email: r...@localhost"
DESCRIPTION
"Example MIB"
REVISION
"201011210001Z"
DESCRIPTION
"snmp SET test mib"
::= { enterprises 36506 }

Apoc32Value OBJECT IDENTIFIER ::= { myCompany4MIB 1 }

-- time to define apoc values

apoc32 OBJECT-TYPE
SYNTAX Counter3MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Apoc Set from script"
::= { Apoc32Value2

END


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to