[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

1315.0. "eSNMP programming questions/bug reports" by SMURF::DANIELE () Mon Jun 19 1995 14:46

T.RTitleUserPersonal
Name
DateLines
1315.35specific traps implemented in eSNMP ?FRUST::LUKASUnix starts with an `L'Fri Jul 07 1995 05:1014
1315.2SMURF::DANIELETue Jul 11 1995 16:3011
1315.3How to develop Extended Agent right now ?JUMPER::hbcHenri BENOIT-DE-COIGNAC @atyWed Jul 19 1995 14:157
1315.4right now! :-)SMURF::DANIELEWed Jul 19 1995 14:4518
1315.5Set, noSuchInstanceATLBOO::ADAMSHope I die before I get oldMon Jul 31 1995 12:2845
1315.6SMURF::DANIELETue Aug 01 1995 10:2039
1315.7string return >128 chars bugFRUST::LUKASUnix starts with an `L'Tue Aug 15 1995 09:3118
1315.8SMURF::DANIELETue Aug 15 1995 10:1911
1315.9some architectural questionsFRUST::LUKASUnix starts with an `L'Wed Aug 16 1995 09:1730
1315.10SMURF::DANIELEWed Aug 16 1995 10:1243
1315.11SMURF::DANIELEThu Aug 17 1995 13:1516
1315.12snmpwalk MIB testing tool on alpha.zk3.dec.comFRUST::LUKASUnix starts with an `L'Mon Aug 21 1995 05:0522
1315.13Also in ISODE and CMU kitsMARVIN::ROBINSONLet me manage your Video Player for youMon Aug 21 1995 06:2420
1315.14many free tools, but one complete eSNMP toolkitFRUST::LUKASUnix starts with an `L'Mon Aug 21 1995 10:0719
1315.15SMURF::DANIELEMon Aug 21 1995 15:2218
1315.16Problems receiving traps with snmp_traprcvFRUST::LUKASUnix starts with an `L'Wed Sep 06 1995 08:2934
1315.17SMURF::DANIELEWed Sep 06 1995 10:227
1315.18to test trapsSMURF::DANIELEWed Sep 06 1995 12:0643
1315.19snmpd messages in daemon.logFRUST::LUKASUnix starts with an `L'Thu Sep 07 1995 02:2828
1315.20Sorry, it was my faultFRUST::LUKASUnix starts with an `L'Thu Sep 07 1995 07:1715
1315.21Questions about eSNMP_X321FRUST::LUKASUnix starts with an `L'Tue Sep 12 1995 05:2925
1315.22Still strings>127 chars bug ?FRUST::LUKASUnix starts with an `L'Tue Sep 12 1995 11:0823
1315.23not supportedSMURF::DANIELETue Sep 12 1995 11:5011
1315.24What is "Error code set in packet - General error: 0"FRUST::LUKASUnix starts with an `L'Wed Sep 13 1995 07:1848
1315.25Cold Start Trap is sent with enterpr. spec. trapsFRUST::LUKASUnix starts with an `L'Thu Sep 14 1995 04:4431
1315.26on trapsSMURF::DANIELEThu Sep 14 1995 09:5633
1315.27SMURF::DANIELEThu Sep 14 1995 10:1535
1315.28It doesMARVIN::ROBINSONLet me manage your Video Player for youThu Sep 14 1995 11:1513
1315.29'no buffer space available' error messagesFRUST::LUKASUnix starts with an `L'Mon Oct 16 1995 10:3124
1315.30bugs in new eSNMP_X322FRUST::LUKASUnix starts with an `L'Tue Oct 24 1995 07:1625
1315.31eSNMP: What v2 PDU format?TAEC::ANDREASSONCogito, ergo amFri Dec 01 1995 04:4219
1315.32SMURF::DANIELEFri Dec 01 1995 10:1216
1315.34eSNMP support for multiple trap destinations ?TRUCKS::MOIRMon Dec 04 1995 05:2921
1315.33Thanks.TAEC::ANDREASSONCogito, ergo amTue Dec 05 1995 05:285
1315.36SMURF::DANIELEWed Dec 06 1995 11:0630
1315.37Same sub-tree registered by different processes?CHEFS::silwud.reo.dec.com::brendanMon Feb 19 1996 09:4929
1315.38SMURF::DANIELEMon Feb 19 1996 12:0134
1315.39how to create an instance of a mib2 interface?BROUGH::HEALEYBrendan Healey, PSC Telecomms 780-2043Fri Mar 01 1996 08:3518
1315.40SMURF::DANIELEFri Mar 01 1996 09:2922
1315.41Esnmp problemsCSC32::B_GRUBBSMon Mar 04 1996 17:5247
1315.42os_mibs boot errorCSC32::B_GRUBBSTue Mar 05 1996 12:2212
1315.43Status of esnmp and esnmp.hMPGS::ARNOLDTue Mar 05 1996 16:457
1315.44snmpd using a whole cpuMPGS::ARNOLDWed Mar 06 1996 17:4518
1315.45SMURF::DANIELEMon Mar 11 1996 12:1819
1315.46SMURF::DANIELEMon Mar 11 1996 12:2919
1315.47SMURF::DANIELEMon Mar 11 1996 12:3424
1315.48CSC32::B_GRUBBSMon Mar 11 1996 12:4722
1315.49Polling Question...GTDANE::GOYETTETue Apr 16 1996 18:2114
1315.50SNMP management for STREAMS modulesRDGENG::HAQUEShaheed R. Haque, 830-3531, reo2-f/b3Wed Apr 17 1996 05:1267
1315.51SMURF::DANIELEWed Apr 17 1996 10:0639
1315.52GTDANE::GOYETTEWed Apr 17 1996 12:1944
1315.53SMURF::DANIELEWed Apr 17 1996 16:1214
1315.54Got it..GTDANE::GOYETTEThu Apr 18 1996 12:357
1315.55snmpi Segementation faultTAEC::ANDREASSONCogito, ergo amThu May 09 1996 09:1417
1315.56.-1 snmpi fails - additional infoTAEC::ANDREASSONCogito, ergo amThu May 09 1996 09:4612
1315.57esnmp_init.c can't send (no such file or directiory)SWTHOM::DORNANOMon Jun 10 1996 11:1314
1315.58SMURF::DANIELETue Jun 11 1996 11:337
1315.59problem with os_mib reporting incorrect values?CSC32::B_GRUBBSTue Jun 11 1996 14:0439
1315.60yepSMURF::DANIELEWed Jun 12 1996 15:4239
1315.61CSC32::B_GRUBBSThu Jun 13 1996 13:0016
1315.62COMICS::CORNEJWhat's an Architect?Thu Jul 18 1996 07:5515
1315.63Improper GET-NEXT reply codeCSC32::PITTThu Jul 18 1996 15:3451
1315.64SMURF::DANIELEMon Jul 29 1996 17:3314
1315.65SMURF::DANIELEMon Jul 29 1996 17:3911
1315.66dialogue between master and sub agents.TAEC::WASSIFITue Jul 30 1996 05:5212
1315.67limit of 30 esnmp_trap's?RHETT::AMANThu Sep 26 1996 10:5518
1315.68error code for .67RHETT::AMANThu Sep 26 1996 12:0913
1315.69SMURF::DANIELEFri Sep 27 1996 12:199
1315.70Thank you! re .69RHETT::AMANMon Sep 30 1996 16:318
1315.71esnmp does not startAUSS::BELLCaritas Patiens estTue Oct 08 1996 22:2751
1315.72Problem fixed.AUSS::BELLCaritas Patiens estWed Oct 09 1996 05:315
1315.73What does these WARNING messages mean?NETRIX::"[email protected]"Keith AustinFri Jan 17 1997 13:4820
1315.74SNMPV2 supported in UNIX 4.0B?RDGENG::ROBINSONLet me manage your Video Player for youThu Apr 03 1997 10:397
Mike,

Is SNMPV2 supported on UNIX 4.0B? We are interested in
using GET_BULK and the 64 bit counters

	Dave

1315.75Planned for SteelSMURF::DANIELEThu Apr 03 1997 10:5213
>Mike,

>Is SNMPV2 supported on UNIX 4.0B? We are interested in
>using GET_BULK and the 64 bit counters

>	Dave

No.  v2 support arrives in the release currently called Steel.

(The code has been submitted.  If you'd like a tar-ball to try out
v2 features I'd be happy to put one together.)

Mike
1315.76libesnmp thread safe?BHAJEE::pluto.rto.dec.com::markusMarkus Gutschmidt Patis Engineering NSIS MunichFri Apr 04 1997 07:1410
Mike,

Is libesnmp thread safe? We are using esnmp in a multi threaded 
process, where the main thread is processing SNMP requests while 
another thread simultaneously might want to generate a trap.

Additional question: Are the utility functions multi-thread safe?

Thanks,
Markus
1315.77SMURF::DANIELEFri Apr 04 1997 10:146
It is not explcitly thread-safe.

But I think the usage you are planning (traps fro one thread,
all other eSNP processing from another) will work.

Mike
1315.78question on instance evaluationSMURF::DANIELEWed Apr 23 1997 10:1032
       <<< TURRIS::DISK$NOTES_PACK2:[NOTES$LIBRARY]DIGITAL_UNIX.NOTE;1 >>>
                               -< DIGITAL UNIX >-
================================================================================
Note 9592.0                sequence and oid2instance()                   1 reply
TAEC::RAYBAUD                                        26 lines  23-APR-1997 04:30
--------------------------------------------------------------------------------
Hi,

I am trying to develop a sub-agent with the esnmp APIs and I am in trouble 
with getting back the name of the required instance value.
The instance is defined as a sequence :

ttrEntry OBJECT-TYPE
	SYNTAX TtrEntry
	ACCESS not-accessible
	STATUS mandatory
	DESCRIPTION
		"An entry in the TTRTable"
	INDEX {ttrId,ttrParentId}
	::={ttrTable 1}

ttrId is INTEGER (0..3)
ttrParentId is DisplayString

oid2instance() returns 0 as the instance value.
Moreover, the oid received is ended by 0 and not by the instance value.

Is there a problem with esnmp when we use a sequence as the instance name ?

Regards,

sacha 
1315.79SMURF::DANIELEWed Apr 23 1997 10:1061
       <<< TURRIS::DISK$NOTES_PACK2:[NOTES$LIBRARY]DIGITAL_UNIX.NOTE;1 >>>
                               -< DIGITAL UNIX >-
================================================================================
Note 9592.1                sequence and oid2instance()                    1 of 1
SMURF::DANIELE                                       55 lines  23-APR-1997 09:08
--------------------------------------------------------------------------------
>                      <<< Note 9592.0 by TAEC::RAYBAUD >>>
>                        -< sequence and oid2instance() >-

>Hi,

>I am trying to develop a sub-agent with the esnmp APIs and I am in trouble >
>with getting back the name of the required instance value.

The instance portion of the oid in a SNMP request could be anything.
It need not fully qualify the object identifier prefix that it
references.

For instance, if snmpd receives a a GetNext request for the oid 1.2.3.4.5,
and your subagent has registered the subtree 1.2.3, your subagent will be 
dispatched to.

>The instance is defined as a sequence :

>ttrEntry OBJECT-TYPE
>	SYNTAX TtrEntry
>	ACCESS not-accessible
>	STATUS mandatory
>	DESCRIPTION
>		"An entry in the TTRTable"
>	INDEX {ttrId,ttrParentId}
>	::={ttrTable 1}

>ttrId is INTEGER (0..3)
>ttrParentId is DisplayString

>oid2instance() returns 0 as the instance value.
>Moreover, the oid received is ended by 0 and not by the instance value.

Within your subagent, libesnmp.so finds the OBJECT in the
object table you registered that is the longest oid match with the
requested oid.  oid2instance returns the remainder when you "subtract"
the OBJECT's oid (the object identifier prefix) from the requested oid.

It could be anything.  A return value of 0 (the instance length)
means the requested oid is exactly the same as the OBJECT's oid.

>Is there a problem with esnmp when we use a sequence as the instance name ?

No.  I think you're just not understanding the basic operation of a method
routine.  oid2instance tells you what the requested instance was (with
respect to the OBJECT pointed to in the METHOD).  You need to figure out
if you can return something, and if so, what its instance value should be.

Have you read the chapter on eSNMP in Network Programming?

I'm going to move these notes to be replies to 1315.  Please follow up
there.

Regards,
Mike
1315.80esnmp pthread trap ?KERNEL::SMITHFri May 16 1997 10:5730
    Hi,
    
My SNMP programs compile and run successfully when linked with

   cxx  <various .o files> -lesnmp -lutil

but when linked with pthreads:

   cxx  <various .o files> -lesnmp -lutil -lpthread

will either fail by freezing completely when a trap is generated by an
SNMP request (even CTRL-C does not interrupt) or give an error straight
away:
    
   DECthreads Last Chance handler: thread 2 exiting on status exception
0x177db005
   Exception: Invalid memory address (dce / thd)

I have also tried compiling all the programs as directed in the man page
for pthread, using -pthread on the compiler line and -lpthread -lmach
-lexc -lc on the linker line.

While this could be a coding error on my part, I need to know whether
SNMP is capable of being used with threads. That is, is it "thread
safe"?
    
    Any ideas would be very much appreciated.
    
    Thanks
    ewan smith - uk csc
1315.81SMURF::DANIELEFri May 16 1997 15:199
libesnmp.so is not explicitly thread-safe.

But I believe other programmers have developed eSNMP subagents
that do use pthreads, and confine their eSNMP usage to a
particular thread.

I'd assume you have a programming error.

Mike
1315.82multicast SNMP pdu?CHEFS::DAVIDSONSWed May 28 1997 18:326
    Is it possible to multicast an SNMP pdu?
    
    eg. multicast a single SNMP set to multiple systems?
    
    Thanks,
    	Stuart.
1315.83SMURF::DANIELEMon Jun 02 1997 14:2723
>    Is it possible to multicast an SNMP pdu?
 
>    eg. multicast a single SNMP set to multiple systems?
    
If you mean IP Multicast, then "no".  The agent would have to specifically
bind UDP 161 to multicast groups, and I strongly doubt that many
do so.  Ours doesn't.

If you're using the term "multicast" more loosely, I guess the
answer is "yes".  An application could build an SNMP message, then
send it to lots of different agents.  (This is how most
netman apps check the status of all systems on their map, etc).

The same access control and view of managed objects would have to
exist on all nodes receiving the SNMP request.  (This might be a reasonable 
assumption for say, reading the system group using community "public".
It's probably not a reasonable assumption for issuing Sets.)

If you're asking "does Digital UNIX have any tools that do this
out of the box", the answer is "no".

Hope this helps,
Mike
1315.84IP multicastCHEFS::DAVIDSONSTue Jun 03 1997 16:444
    I meant IP multicast, so you've answered my question.
    
    Thanks,
    	Stuart.