Re: Retrieving HOST-RESOURCES-MIB::hrSWRunName using net-snmp C Library

"Chun Tat David Chu" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,

I got it working now by looking at "snmpwalk.c".

Thanks!

- dc

On Wed, Jan 14, 2009 at 8:57 AM, Dave Shield <[email protected]>wrote:

> 2009/1/12 Chun Tat David Chu <[email protected]>:
> > I then proceeded to modify the OID to "1.3.6.1.2.1.25.4.2.1.2" which is
> > "HOST-RESOURCES-MIB::hrSWRunName".
> > When I ran the program, it shows "value #1 is NOT a string! Ack!".
>
> Please post the code of your program.
>
> It's not sensible for us to try and guess exactly what you changed,
> and hence what might be wrong with the new program.
>
>
> > What I am trying to do is retrieve a list of running processes.
>
> Then you need to send a series of GETNEXT requests (rather than a
> single GET request), to walk the hrSWRunName column.
>
> Try starting with the code for 'snmpwalk.c'.
> That's probably closer to what you need.
>
> Dave
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.