On Mon, Aug 17, 2009 at 5:06 PM, Jaskiewicz,
Michael-P49499<michael.jaskiew...@gdc4s.com> wrote:
>
>        Looking at the net-snmp-config.h file, I noticed that the some
> of the #defines point to programs like ps for looking at running
> processes. PSCMD for example points to /bin/ps which isn't available for
> Win32 (unless maybe I run it in Cygwin).
>        Is it possible in any way to run the program from a normal Win32
> cmd line or do I have to use Cygwin? The readme.win32 file led me to
> believe that Cygwin was not a requirement.

In the Net-SNMP project there are separate net-snmp-config.h files for
Unix systems and for Windows systems. The file that is relevant for
Windows can be found in the win32 directory
(http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/win32/net-snmp/net-snmp-config.h?view=log).

And for obtaining process information on Windows systems, use the
HOST-RESOURCES-MIB via the WinExtDLL module. See also
http://www.net-snmp.org/docs/README.win32.html for more information.
This approach will obtain process information by calling functions in
Microsoft's hostmib.dll SNMP extension DLL and without spawning any
new process.

Bart.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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