SNMP newbee question

Do you know any source from where i can get the source code for the Pdu's (get,getnext,set,getresponse,trap).I am implementing these pdu's to manage a system on a linux network using linux socket programming.
sriram123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mhomannCommented:
try the source for the CMNU SNMP Daemon which should come with your linux distribution...
0
sriram123Author Commented:
I am implementing the pdu's(ie writing
code for get,getnext,set,getresponse,
trap.If u know any source where i can find code/code samples in 'c'.Pl.let me know
Thanks
123
0
mhomannCommented:
try the source for the CMNU SNMP package which should come with
your linux distribution... there is snmp-get/set and snmpwalk with it, and it is c...
otherwise ask freshmeat
0
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

sriram123Author Commented:
hi,
   u have not understood my question
0
sriram123Author Commented:
hi,
   u have not understood my question
0
mhomannCommented:
Here's the content and overview  of the snmp RPM form the SuSE 6.2 CD's...

Name        : snmp                         Relocations: (not relocateable)
Version     : 3.6                               Vendor: SuSE GmbH, Nuernberg, Germany
Release     : 4                             Build Date: Fri Jul 23 01:50:31 1999
Install date: Sun Sep  5 01:27:48 1999      Build Host: Zuse.suse.de
Group       : unsorted                      Source RPM: snmp-3.6-4.src.rpm
Size        : 626154                           License: Copyright 1988, 1989 by Carnegie Mellon University
Packager    : feedback@suse.de
Summary     : CMU SNMP
Description :
SNMP is the Simple Network Management Protocol of the
Internet defined as a standard in RFC 1155 and 1157 and 1901
up to 1908. The protocol allows mainly to retrieve and set
variables, addressed as objects in the MIB (Management
Information Base).  The well-known MIB-2 is defined in RFC
1213 and contains variables related to the TCP/IP protocol
suite.

Authors:
--------
    Erik Schoenfelder <schoenfr@gaertner.de>
/etc/snmpd.agentinfo
/etc/snmpd.conf
/sbin/init.d/rc2.d/K20snmpd
/sbin/init.d/rc2.d/S20snmpd
/sbin/init.d/rc3.d/K20snmpd
/sbin/init.d/rc3.d/S20snmpd
/sbin/init.d/snmpd
/usr/bin/authkey
/usr/bin/nstat
/usr/bin/snmpget
/usr/bin/snmpgetnext
/usr/bin/snmpnetstat
/usr/bin/snmpset
/usr/bin/snmptest
/usr/bin/snmptrap
/usr/bin/snmpwalk
/usr/doc/packages/snmpd
/usr/doc/packages/snmpd/README
/usr/doc/packages/snmpd/README.linux
/usr/doc/packages/snmpd/README.usec
/usr/doc/packages/snmpd/installconf
/usr/include/snmp
/usr/include/snmp/asn1.h
/usr/include/snmp/parse.h
/usr/include/snmp/snmp.h
/usr/include/snmp/snmp_api.h
/usr/include/snmp/snmp_client.h
/usr/include/snmp/snmp_impl.h
/usr/lib/libsnmp.so
/usr/lib/libsnmp.so.3.6
/usr/lib/mib.txt
/usr/man/man1/authkey.1.gz
/usr/man/man1/nstat.1.gz
/usr/man/man1/snmpget.1.gz
/usr/man/man1/snmpgetnext.1.gz
/usr/man/man1/snmpnetstat.1.gz
/usr/man/man1/snmpset.1.gz
/usr/man/man1/snmptest.1.gz
/usr/man/man1/snmptrap.1.gz
/usr/man/man1/snmpwalk.1.gz
/usr/man/man3/snmp_api.3.gz
/usr/man/man5/snmpd.conf.5.gz
/usr/man/man5/variables.5.gz
/usr/man/man8/snmpd.8.gz
/usr/man/man8/snmptrapd.8.gz
/usr/sbin/rcsnmpd
/usr/sbin/snmpd
/usr/sbin/snmptrapd
/var/adm/fillup-templates/rc.config.snmp

So get the source of it (ftp://ftp.suse.com/pub/suse/6.2/zq1/snmp.spm), install it with RPM -vhU, then You'll find the source tarball in /usr/src/packages/SOURCES (assuming a SuSE system, on redhat it would be in /usr/src/redhat/...

as there are binaries for snmpget etc in the binary RPM, there should be the source of them in the source RPM, shouldn't it??
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.