Re: Tcl wrapper over net-snmp library

This is a discussion on Re: Tcl wrapper over net-snmp library within the SNMP Coders forums, part of the Networking and Network Related category; > We are writing a Tcl Wrapper over the NET-SNMP library as we did > not want to use ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-22-2005
cnelson@nycap.rr.com
 
Posts: n/a
Default Re: Tcl wrapper over net-snmp library

> We are writing a Tcl Wrapper over the NET-SNMP library as we did
> not want to use the library executables directly because of
> performance issues.
>
> The library uses fprintf(stderr,...) statements to print the ouput.
>
> With the Tcl Wrapper, the net-snmp commands can be executed from
> the tcl shell as commands.
>
> The problem is, the output of the command execution is displayed on
> the terminal because of the fprintf's used within the library.
> Since I am calling the command from within a tcl script, I am not
> able to capture the result (printed on the stderr).
>
> I execute the net-snmp commands by using
>
> if {![catch {eval $cmd} status]} {
>
> #print the required message or the result
>
> }
>
> There is nothing stored in the status variable.
>
> I would appreciate any kind of help here...


You're saying you used swig or something to wrap the Net-SNMP API rather
than using snmpget, etc.?

Why not use Scotty? (Though I have to admit that I've had trouble
cross-building Scotty for my embedded platform.)

I might also suggest asking on news:comp.lang.tcl.

Chris


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0