I am replacing an existing SNMP system from TCL Scotty to NetSNMP.   As
a part of it, I am planning to write a TCL interface over NetSNMP.
There are few commands in Scotty, for which I am not able to find any
SNMP equivalent API

 

Ex: 

 

     To get syntax/Type of a particular OID field 

mib syntax $field

 

 

     To get name of the ASN.1 macro used to define MIB node and validate
trap

mib macro $trap_name

 

 

 

for the below MIB node

 

MyProcessName                 OBJECT-TYPE

                             SYNTAX      DisplayString (SIZE (0..32))

                             MAX-ACCESS  accessible-for-notify

                             STATUS      current

                             DESCRIPTION "Process raising the alarm.

                                         "

                             ::=  { ProcessInfo 1 }

 

 

Once the mib is loaded, If I  invoke   

 

     mib syntax MyProcessName in TCL   or getOIDSytax(MyProcessName) in
'C';              

 

This should return  "DisplayString"

 

 

Similarly , if I invoke

                mib macro MyProcessName in TCL  or
getOIDMacro(MyProcessName) in 'C';

 

                This should return "OBJECT-TYPE"

 

As per my current understanding there is no direct NetSNMP API , which
can help me in doing so.   

Can someone me please give me some tips on how to write these new API.
Or some code snippet to which I can refer to.

 

 

Regards,

Chiranjeevi

This e-mail and any attachments may be confidential and/or legally privileged. 
If you have received this e-mail and you are not a named addressee, please 
inform Evolving Systems TIS at [email protected] and then delete the e-mail 
from your system. If you are not a named addressee you must not use, disclose, 
distribute, copy, print or rely on this e-mail. To ensure regulatory compliance 
and for the protection of our clients and business, Evolving Systems may 
monitor and read e-mails sent to and from its servers. Although Evolving 
Systems routinely screens for viruses, addressees should scan this e-mail and 
any attachments for viruses. Evolving Systems makes no representation or 
warranty as to the absence of viruses in this e-mail or any attachments.

Registered Office: 3rd Floor, Gurudas Heritage, 59/2, 100 Feet Ring Road, 
Banashankari II Stage, Bangalore - 560 070 India
------------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to