cl-net-snmp-general Mailing List for Common Lisp SNMP
Brought to you by:
binghe
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
(4) |
Apr
(5) |
May
|
Jun
|
Jul
(5) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(22) |
Feb
(20) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(1) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Chun T. (binghe) <bin...@gm...> - 2016-10-26 19:21:19
|
========================== SNMP 6.1 ============================= The CL-NET-SNMP project is pleased to announce the release of 6.1. This is a major patch release which contains numerous enhancements from the last 6.0.x releases. CL-NET-SNMP is a free, high-level implementation of the Simple Network Management Protocol (SNMP), which is common used for Unix/Linux system administration and network management. CL-NET-SNMP provides a fast ASN.1 BER encode/decode engine; a MIB to Common Lisp compiler; a dynamic MIB loader for runtime loading of MIB objects; a SNMP server which could run inside any supported Common Lisp platform for montoring your Lisp server-side applications; and an group of handful interface function for doing every SNMP operations. On LispWorks, CL-NET-SNMP has a GUI based "MIB Browser". CL-NET-SNMP supports SNMPv3 by help of the IRONCLAD crypto library, and do TCP/UDP networking based on USOCKET 0.5.x. CL-NET-SNMP is maintained by Chun Tian (binghe), a Chinese Common Lisp programmer. News in this release: * New features: - Add support for SNMP/TCP (client-side only), by using the optional keyword argument (:PROTOCOL :TCP) in SNMP:OPEN-SESSION or SNMP:WITH-OPEN-SESSION. - Add support for Macintosh Common Lisp (MCL/RMCL), TCP only. * Other changes: - Re-depend on trivial-gray-streams for MCL and SCL support. See <URL:http://common-lisp.net/projects/cl-net-snmp/> for download information, guidelines on reporting bugs, and mailing list details. I hope you can enjoy using this release of CL-NET-SNMP! --- Chun Tian (binghe) |
From: Chun T. (binghe) <bin...@gm...> - 2013-02-23 15:26:30
|
Hi Larry There's no formal user manual for cl-net-snmp yet, but there's a paper (doc/papers/ILC09-SNMP.pdf) for you to understand most of its APIs. In cl-net-snmp, all your used SNMP vendor MIBs need to be loaded into Lisp environment as CLOS objects. There're two ways to do this work: 1. Use the ASN.1 compiler (compile-asn.1), compile the MIB from ASN.1 to Common Lisp, and then compile/load it into your Lisp environment. You can either manually call 'compile-asn.1 from your application, or directly modify the variable *preload-mibs* in cl-net-snmp's "update-mib.lisp" and then call (update-mibs) to get ASDF-loadable source and system definitions. (in the latter way you're modifying cl-net-snmp for your application) 2. Use the ASN.1 interpreter (load-asn.1) to load MIB directly into Lisp environment. Notice the the interpreter may not be able to load some complex MIB definitions correctly. You should be able to see the syntax of above mentioned Lisp functions by directly looking into their source code. Once you have your MIBs loaded, getting the DESCRIPTION of any loaded OID will be quite easy: 1. Get the OID object by using ASN.1:OID function 2. Get the DESCRIPTION slot from the object. Following is a sample use: CL-USER 14 > (asn.1::oid-description (asn.1:oid "1.3.6.1.2.1.1.1")) "A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software." Regards, Chun Tian (binghe) Il giorno 23/feb/2013, alle ore 18:01, Song Lining <son...@gm...> ha scritto: > Hi, > > This seems to be the one I am looking for. --- I have tried the Perl SNMP:MIB:Compiler module but found it's rather primitive and got the same issue --- few documents :-) > > I have downloaded this package and am trying to run some test codes but I found myself no where to find any API documents especially some code examples. > > I am particularly interested to search inside the loaded MIB for details such as DESCRIPTION of certain OID (The final goal is to load all the Cisco MIB's and return the DESCRIPTION of any trap OID upon request). Is there API's (or any means) for this purpose? > > Thanks, > > Larry Song > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |
From: Song L. <son...@gm...> - 2013-02-23 10:01:34
|
Hi, This seems to be the one I am looking for. --- I have tried the Perl SNMP:MIB:Compiler module but found it's rather primitive and got the same issue --- few documents :-) I have downloaded this package and am trying to run some test codes but I found myself no where to find any API documents especially some code examples. I am particularly interested to search inside the loaded MIB for details such as DESCRIPTION of certain OID (The final goal is to load all the Cisco MIB's and return the DESCRIPTION of any trap OID upon request). Is there API's (or any means) for this purpose? Thanks, Larry Song |
From: Chun T. (binghe) <bin...@gm...> - 2011-07-05 14:41:49
|
Hi, Nicolas Thanks for your patch, I've merged it. [1] P.S. for your other issue, please give me some time investigating it, currently I'm a bit busy working on some CL-HTTP related work. --binghe [1] https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/branches/6 在 2011-7-5,19:59, Nicolas Martyanoff 写道: > > In snmp-6.0.1, the expansion of the macro DEF-SCALAR-VARIABLE is > incorrect if the body contains more than a single form. > > The following patch fixes the problem. > > --- server-base.lisp.orig 2011-07-05 13:55:33.905828250 +0200 > +++ server-base.lisp 2011-07-05 13:55:39.298523407 +0200 > @@ -53,7 +53,8 @@ > (defun ,oid (,agent &optional ,ids) > (declare (ignorable ,agent)) > (if (null ,ids) 0 > - ,@body)) > + (progn > + ,@body))) > (eval-when (:load-toplevel :execute) > (register-variable (oid ,name) #',oid) > ,oid)))) > > -- > Nicolas Martyanoff > http://codemore.org > kh...@gm... > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |
From: Nicolas M. <kh...@gm...> - 2011-07-05 12:00:26
|
In snmp-6.0.1, the expansion of the macro DEF-SCALAR-VARIABLE is incorrect if the body contains more than a single form. The following patch fixes the problem. |
From: Nicolas M. <kh...@gm...> - 2011-07-04 16:32:43
|
Given an object whose syntax is Unsigned32 or Gauge32, asking the server for the value of this object returns the correct value, but encoded as an INTEGER. Tested on snmp-6.0.1. -- Nicolas Martyanoff http://codemore.org kh...@gm... |
From: Chun T. (binghe) <bin...@gm...> - 2011-06-23 13:08:30
|
(This is a new bugfix release, new features in next version are undergoing) SNMP 6.0.2 - Fixed compilation on ABCL. - Remove snmp-mib.asd, splited into snmp.asd and snmp-server.asd - Add HOST-RESOURCES-MIB and IF-MIB to prebuilt MIB list - Logical pathname fixes for case-sensitive filesystems - More vendor code from GBBopen |
From: Chun T. (binghe) <bin...@gm...> - 2011-03-21 07:14:00
|
(Some coding styles caused the version 6.0 cannot be included in Quicklisp, so I have to update) Changes: - Change CL-YACC's warnings into style-warnings to make ASDF/SBCL happy. - Make class OBJECT-ID's definition appears before BASE-OID to make sure undefined type won't signal a WARNING, for the same reason. - Fixed a MIB compiler bug, wrongly added QUOTE in COMPILE-SEQUENCE case DEFCLASS forms in MIB compilation results not right. - Make UPDATE-MIB works in SBCL by adding the "**;*.*.NEWEST" pathname translations back. - Simple patch facility added (LOAD-ALL-PATCHES) - Fix for CLISP, import symbols from CLOS package (but still lack of networking) Download links: http://common-lisp.net/project/cl-net-snmp/release/snmp_6.0.1.tar.gz http://sourceforge.net/projects/cl-net-snmp/files/snmp/6.0/snmp_6.0.1.tar.gz/download |
From: Chun T. (binghe) <bin...@gm...> - 2011-03-18 20:47:47
|
========================== CL-NET-SNMP 6.0 ============================= The CL-NET-SNMP project is pleased to announce the release of 6.0. This is a major release which contains numerous enhancements and bug fixes from the last 5.x release. CL-NET-SNMP is a free, high-level implementation of the Simple Network Management Protocol (SNMP), which is common used for Unix/Linux system administration and network management. CL-NET-SNMP provides a fast ASN.1 BER encode/decode engine; a MIB to Common Lisp compiler; a dynamic MIB loader for runtime loading of MIB objects; a SNMP server which could run inside any supported Common Lisp platform for montoring your Lisp server-side applications; and an group of handful interface function for doing every SNMP operations. On LispWorks, CL-NET-SNMP has a GUI based "MIB Browser". CL-NET-SNMP supports SNMPv3 by help of the IRONCLAD crypto library, and do UDP networking based on USOCKET 0.5. CL-NET-SNMP is maintained by Chun Tian (binghe), a Chinese Common Lisp programmer. New in this release: * Feature enhancements: - The MIB Compiler now works on all supported platform. On platforms other than LispWorks, it use a customized CL-YACC for LALR parsing of ASN.1-formated MIB definition files. - The long awaited dynamic MIB loader has been added. It can be used to load any MIB file into Lisp image at runtime, without need of COMPILE-FILE, EVAL or other high-level Lisp functions. - The speed of ASN.1 BER encode has been much improved, thanks to J. Fremlin (MSI). * Bugfixes: - When calling SNMP:OPEN-SESSION with keyword :USER and no :VERSION, a v3-session but v2c-session should be created. * Other changes: - All ASN.1 related code has been merged into SNMP package. - Now we only depend on USOCKET 0.5 and IRONCLAD. - MIB files from IANA, IETF, Cisco, VMware, etc. has been updated. - Now 'snmp-mib.asd' only load very few prebuilt MIB files. For rest of them, user can load what they want using the new MIB loader, see function SNMP:LOAD-MIB See <URL: http://common-lisp.net/projects/cl-net-snmp/> for download information, guidelines on reporting bugs, and mailing list details. I hope you enjoy using this release of CL-NET-SNMP! --- Chun Tian (binghe) <bin...@gm...>, 2011-3-19 |
From: Chun T. (b. <bin...@gm...> - 2010-09-24 10:59:48
|
USOCKET-UDP 2.6 * improvement: Change constant value +max-datagram-packet-size+ from 65536 to 65507. * improvement: Fixed working with USOCKET trunk (0.5). * bugfix: Handle Null HOST argument in SOCKET-CONNECT for Clozure CL. SF & Cliki download links updated. (This maintenance release of USOCKET-UDP is mainly for people who is using old packages which still depend on USOCKET-UDP) |
From: Chun T. (binghe) <bin...@gm...> - 2010-07-09 10:25:53
|
Dear potential and current users, After more than one year breaking, now I pick up CL-NET-SNMP and continue improving it. In past days, I cleaned up the code base and port its networking code into USOCKET trunk [1], which will be USOCKET's new 0.5 release in short future. There will be lots of new features in the force coming CL-NET-SNMP 6.0. Some of them are done, and others are in progress. It's confirmed working but not limited on following platform+OS combinations: * LispWorks (Mac OS X, Windows XP) * ECL (Mac OS X) * Clozure CL (Mac OS X) * SBCL (Mac OS X) * CMUCL (Mac OS X) To try it by yourself, please check out following SVN repositories: * USOCKET trunk [1] * SNMP trunk [2] * ASN.1 trunk [3] For LispWorks, only these packages are enough. Other platforms may depends on several common used CL package which could be found through Cliki.net. For documentation, the first time I upload my ILC 2009 paper (SNMP for Common Lisp) into SVN repository [4]. It's a bit outdated, but should be useful for people understanding my overall work in this area. Regards, Chun Tian (binghe) [1] svn://common-lisp.net/project/usocket/svn/usocket/trunk [2] https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk [3] https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk [4] https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk/doc/papers/ILC09-SNMP.pdf |
From: David L. <le...@ma...> - 2009-07-16 19:19:54
|
I am using ASDF. (require 'asdf) (require 'snmp) are the first two lines in my file. Looks like it is then recompiling each time. I somehow thought I needed asdf loaded first to find snmp :-) Dave On Jul 16, 2009, at 12:15 PM, Chun Tian (binghe) wrote: > I'm curious, how do you load cl-net-snmp in SBCL? Are you using > ASDF? (I ask because when using ASDF we don't have any choice to > just load .lisp but .fasl files) > > And I should mention, when SBCL are compiling files, there're lots > of screen outputs. If your SBCL simply holds and no outputs, then I > should say I don't know either what's going on, but I'm sure that's > not my fault:) > > Wish you good luck ... > > --binghe > > 在 2009-7-17,02:48, David Leimbach 写道: > >> I compied it to a fasl, and am now loading that instead. It is not >> going any faster. >> >> I wonder if I should try deleting all my fasl files and re- >> requiring. I have no idea what SBCL is waiting for :-) >> >> Dave >> On Jul 16, 2009, at 11:45 AM, David Leimbach wrote: >> >>> Tian, >>> >>> This is every time I load my program. Is it because I didn't >>> compile >>> it from .lisp to a .fasl? >>> >>> Maybe I should do that and see if it helps. >>> >>> Dave >>> >>> >>> On Jul 16, 2009, at 11:37 AM, Chun Tian (binghe) wrote: >>> >>>> Hi, David >>>> >>>> If this is the first time you compiling fresh cl-net-snmp source >>>> code, I'm afraid it INDEED may take a long time, because all basic >>>> SNMP MIB definitions are compiled into Common Lisp source code (78 >>>> files and more than 40,000 lines of lisp code) when your computer >>>> is >>>> not fast. But I think for the second time SBCL won't compile them >>>> at >>>> all, just loading fasls, and that should be fast enough. SBCL's >>>> compile speed is relative slow among other CL platforms. >>>> >>>> The "Portable Threads" notes is reasonable because I used it for >>>> portable multi-threading API. >>>> >>>> Regards, >>>> >>>> Chun Tian (binghe) >>>> >>>> 在 2009-7-17,02:27, David Leimbach 写道: >>>> >>>>> I've been noticing that on trunk, when I use sbcl with cl-net-snmp >>>>> stuff being required, that it takes a very long time to get back >>>>> to >>>>> the REPL. >>>>> >>>>> It's almost a minute or more after I see the following that the >>>>> REPL >>>>> comes back and I'm interactive again. >>>>> >>>>> ;;; >>>>> ------------------------------------------------------------------------ >>>>> ;;; Portable Threads Interface 2.2 >>>>> ;;; >>>>> ;;; Developed and supported by the GBBopen Project (http:/ >>>>> GBBopen.org/) >>>>> ;;; (See http://GBBopen.org/downloads/LICENSE for license >>>>> details.) >>>>> ;;; >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> Is this something anyone else has experienced? Are there fixes >>>>> for >>>>> this? >>>>> >>>>> Dave >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Enter the BlackBerry Developer Challenge >>>>> This is your chance to win up to $100,000 in prizes! For a limited >>>>> time, >>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>> will have >>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>> full prize >>>>> details at: http://p.sf.net/sfu/Challenge >>>>> _______________________________________________ >>>>> cl-net-snmp-general mailing list >>>>> cl-...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited >>> time, >>> vendors submitting new applications to BlackBerry App World(TM) >>> will have >>> the opportunity to enter the BlackBerry Developer Challenge. See >>> full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> cl-net-snmp-general mailing list >>> cl-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >> > |
From: Chun T. (binghe) <bin...@gm...> - 2009-07-16 19:15:35
|
I'm curious, how do you load cl-net-snmp in SBCL? Are you using ASDF? (I ask because when using ASDF we don't have any choice to just load .lisp but .fasl files) And I should mention, when SBCL are compiling files, there're lots of screen outputs. If your SBCL simply holds and no outputs, then I should say I don't know either what's going on, but I'm sure that's not my fault:) Wish you good luck ... --binghe 在 2009-7-17,02:48, David Leimbach 写道: > I compied it to a fasl, and am now loading that instead. It is not > going any faster. > > I wonder if I should try deleting all my fasl files and re- > requiring. I have no idea what SBCL is waiting for :-) > > Dave > On Jul 16, 2009, at 11:45 AM, David Leimbach wrote: > >> Tian, >> >> This is every time I load my program. Is it because I didn't compile >> it from .lisp to a .fasl? >> >> Maybe I should do that and see if it helps. >> >> Dave >> >> >> On Jul 16, 2009, at 11:37 AM, Chun Tian (binghe) wrote: >> >>> Hi, David >>> >>> If this is the first time you compiling fresh cl-net-snmp source >>> code, I'm afraid it INDEED may take a long time, because all basic >>> SNMP MIB definitions are compiled into Common Lisp source code (78 >>> files and more than 40,000 lines of lisp code) when your computer is >>> not fast. But I think for the second time SBCL won't compile them at >>> all, just loading fasls, and that should be fast enough. SBCL's >>> compile speed is relative slow among other CL platforms. >>> >>> The "Portable Threads" notes is reasonable because I used it for >>> portable multi-threading API. >>> >>> Regards, >>> >>> Chun Tian (binghe) >>> >>> 在 2009-7-17,02:27, David Leimbach 写道: >>> >>>> I've been noticing that on trunk, when I use sbcl with cl-net-snmp >>>> stuff being required, that it takes a very long time to get back to >>>> the REPL. >>>> >>>> It's almost a minute or more after I see the following that the >>>> REPL >>>> comes back and I'm interactive again. >>>> >>>> ;;; >>>> ------------------------------------------------------------------------ >>>> ;;; Portable Threads Interface 2.2 >>>> ;;; >>>> ;;; Developed and supported by the GBBopen Project (http:/ >>>> GBBopen.org/) >>>> ;;; (See http://GBBopen.org/downloads/LICENSE for license >>>> details.) >>>> ;;; >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> Is this something anyone else has experienced? Are there fixes for >>>> this? >>>> >>>> Dave >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a limited >>>> time, >>>> vendors submitting new applications to BlackBerry App World(TM) >>>> will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>> full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> cl-net-snmp-general mailing list >>>> cl-...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>> >> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited >> time, >> vendors submitting new applications to BlackBerry App World(TM) >> will have >> the opportunity to enter the BlackBerry Developer Challenge. See >> full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> cl-net-snmp-general mailing list >> cl-...@li... >> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general > |
From: David L. <le...@ma...> - 2009-07-16 18:48:11
|
I compied it to a fasl, and am now loading that instead. It is not going any faster. I wonder if I should try deleting all my fasl files and re-requiring. I have no idea what SBCL is waiting for :-) Dave On Jul 16, 2009, at 11:45 AM, David Leimbach wrote: > Tian, > > This is every time I load my program. Is it because I didn't compile > it from .lisp to a .fasl? > > Maybe I should do that and see if it helps. > > Dave > > > On Jul 16, 2009, at 11:37 AM, Chun Tian (binghe) wrote: > >> Hi, David >> >> If this is the first time you compiling fresh cl-net-snmp source >> code, I'm afraid it INDEED may take a long time, because all basic >> SNMP MIB definitions are compiled into Common Lisp source code (78 >> files and more than 40,000 lines of lisp code) when your computer is >> not fast. But I think for the second time SBCL won't compile them at >> all, just loading fasls, and that should be fast enough. SBCL's >> compile speed is relative slow among other CL platforms. >> >> The "Portable Threads" notes is reasonable because I used it for >> portable multi-threading API. >> >> Regards, >> >> Chun Tian (binghe) >> >> 在 2009-7-17,02:27, David Leimbach 写道: >> >>> I've been noticing that on trunk, when I use sbcl with cl-net-snmp >>> stuff being required, that it takes a very long time to get back to >>> the REPL. >>> >>> It's almost a minute or more after I see the following that the REPL >>> comes back and I'm interactive again. >>> >>> ;;; >>> ------------------------------------------------------------------------ >>> ;;; Portable Threads Interface 2.2 >>> ;;; >>> ;;; Developed and supported by the GBBopen Project (http:/ >>> GBBopen.org/) >>> ;;; (See http://GBBopen.org/downloads/LICENSE for license >>> details.) >>> ;;; >>> ------------------------------------------------------------------------ >>> >>> >>> Is this something anyone else has experienced? Are there fixes for >>> this? >>> >>> Dave >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited >>> time, >>> vendors submitting new applications to BlackBerry App World(TM) >>> will have >>> the opportunity to enter the BlackBerry Developer Challenge. See >>> full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> cl-net-snmp-general mailing list >>> cl-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >> > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |
From: David L. <le...@ma...> - 2009-07-16 18:45:58
|
Tian, This is every time I load my program. Is it because I didn't compile it from .lisp to a .fasl? Maybe I should do that and see if it helps. Dave On Jul 16, 2009, at 11:37 AM, Chun Tian (binghe) wrote: > Hi, David > > If this is the first time you compiling fresh cl-net-snmp source > code, I'm afraid it INDEED may take a long time, because all basic > SNMP MIB definitions are compiled into Common Lisp source code (78 > files and more than 40,000 lines of lisp code) when your computer is > not fast. But I think for the second time SBCL won't compile them at > all, just loading fasls, and that should be fast enough. SBCL's > compile speed is relative slow among other CL platforms. > > The "Portable Threads" notes is reasonable because I used it for > portable multi-threading API. > > Regards, > > Chun Tian (binghe) > > 在 2009-7-17,02:27, David Leimbach 写道: > >> I've been noticing that on trunk, when I use sbcl with cl-net-snmp >> stuff being required, that it takes a very long time to get back to >> the REPL. >> >> It's almost a minute or more after I see the following that the REPL >> comes back and I'm interactive again. >> >> ;;; >> ------------------------------------------------------------------------ >> ;;; Portable Threads Interface 2.2 >> ;;; >> ;;; Developed and supported by the GBBopen Project (http:/ >> GBBopen.org/) >> ;;; (See http://GBBopen.org/downloads/LICENSE for license >> details.) >> ;;; >> ------------------------------------------------------------------------ >> >> >> Is this something anyone else has experienced? Are there fixes for >> this? >> >> Dave >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited >> time, >> vendors submitting new applications to BlackBerry App World(TM) >> will have >> the opportunity to enter the BlackBerry Developer Challenge. See >> full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> cl-net-snmp-general mailing list >> cl-...@li... >> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general > |
From: Chun T. (binghe) <bin...@gm...> - 2009-07-16 18:38:03
|
Hi, David If this is the first time you compiling fresh cl-net-snmp source code, I'm afraid it INDEED may take a long time, because all basic SNMP MIB definitions are compiled into Common Lisp source code (78 files and more than 40,000 lines of lisp code) when your computer is not fast. But I think for the second time SBCL won't compile them at all, just loading fasls, and that should be fast enough. SBCL's compile speed is relative slow among other CL platforms. The "Portable Threads" notes is reasonable because I used it for portable multi-threading API. Regards, Chun Tian (binghe) 在 2009-7-17,02:27, David Leimbach 写道: > I've been noticing that on trunk, when I use sbcl with cl-net-snmp > stuff being required, that it takes a very long time to get back to > the REPL. > > It's almost a minute or more after I see the following that the REPL > comes back and I'm interactive again. > > ;;; > ------------------------------------------------------------------------ > ;;; Portable Threads Interface 2.2 > ;;; > ;;; Developed and supported by the GBBopen Project (http:/ > GBBopen.org/) > ;;; (See http://GBBopen.org/downloads/LICENSE for license details.) > ;;; > ------------------------------------------------------------------------ > > > Is this something anyone else has experienced? Are there fixes for > this? > > Dave > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |
From: David L. <le...@ma...> - 2009-07-16 18:27:32
|
I've been noticing that on trunk, when I use sbcl with cl-net-snmp stuff being required, that it takes a very long time to get back to the REPL. It's almost a minute or more after I see the following that the REPL comes back and I'm interactive again. ;;; ------------------------------------------------------------------------ ;;; Portable Threads Interface 2.2 ;;; ;;; Developed and supported by the GBBopen Project (http:/ GBBopen.org/) ;;; (See http://GBBopen.org/downloads/LICENSE for license details.) ;;; ------------------------------------------------------------------------ Is this something anyone else has experienced? Are there fixes for this? Dave |
From: Chun T. (binghe) <bin...@gm...> - 2009-07-10 04:05:17
|
Hi, David You can "customize" that MIB list, by insert your own MIB into it, or remove those MIB which not used by you and your own MIB. For every time you modify the MIB list which defined in update- mib.lisp, you should re-run (SNMP:UPDATE-MIB) and then re-load SNMP package. This is another way to support user MIB in my design. Regards, Chun Tian (binghe) 在 2009-7-10,05:06, David Leimbach 写道: > Actually, now that I tried to use snmp:update-mib, I see that if I > don't give an exhaustive MIB list, I can break the whole system. > > What's the correct way for me to compile my own MIB and load it? > > Dave > On Jul 9, 2009, at 1:41 PM, David Leimbach wrote: > >> If I wanted to use snmp-dev, it appears I need cl-yacc. Which >> version though? The one I asdf-install:install'd doesn't seem to >> work. >> >> Dave >> On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: >> >>> >>> On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: >>> >>>> Hi, David >>>> >>>> Actually your question can be solved simply because you're using >>>> SBCL:) >>>> >>>> Let's assume you're not working on Windows platform and you know >>>> how >>>> to use a SVN (Subversion) client. (if I'm wrong, contact me again) >>> >>> I'm on Mac OS X, as you appear to be :-) >>> >>>> >>>> The result of ASDF-INSTALL is some links and directories in your >>>> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >>>> trunk depends on this package, so it's a good sample), I got >>>> messages below: >>>> >>>> * (asdf-install:install :cl-yacc) >>>> Install where? >>>> 1) System-wide install: >>>> System in /Users/binghe/lib/sbcl/site-systems/ >>>> Files in /Users/binghe/lib/sbcl/site/ >>>> 2) Personal installation: >>>> System in /Users/binghe/.sbcl/systems/ >>>> Files in /Users/binghe/.sbcl/site/ >>>> >>>> I hope you're always choosing option (2). And after installation, >>>> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >>>> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >>>> >>> >>> Oh yes, always (2) :-) >>> >>>> binghe@binghe-pro:~/.sbcl/site$ ls -l >>>> total 0 >>>> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >>>> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >>>> binghe@binghe-pro:~/.sbcl/systems$ ls -l >>>> total 8 >>>> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >>>> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >>>> >>>> So, if you follow this path rules made by SBCL, you can easily set >>>> up any other CL packages without directly using ASDF-INSTALL, just >>>> checkout any packages from SVN into $HOME/.sbcl/site, and do symbol >>>> link from all *.asd files into the $HOME/.sbcl/systems directory. >>>> >>>> My English is not quite good, I hope you can understand above >>>> notes, >>>> or you should go comp.lang.lisp to ask others before actaully try >>>> my >>>> trunk code:) >>> >>> Ah so I can just update my symlinks?! That's beautiful! >>> >>> Thank you a second time! >>> >>> Dave >>> >>>> >>>> Regards, >>>> >>>> Chun Tian (binghe) >>>> >>>>> I will try trunk. >>>>> >>>>> My next question is how exactly to build it and use it without >>>>> asdf- >>>>> install :-) >>>>> >>>>> I'm a bit new to all this common lisp packaging stuff and want to >>>>> make sure I get my paths correct or whatever I need to do to get >>>>> it >>>>> loaded. I suppose that's more of a question with an answer in the >>>>> SBCL manual. >>>>> >>>>> Thank you for your prompt reply! >>>>> >>>>> Dave >>>>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>>>> >>>>>> Hi, David >>>>>> >>>>>> Latest release of cl-net-snmp is a bit old, and your >>>>>> modifications >>>>>> on update-mib.lisp are not supported in theory. >>>>>> >>>>>> I'm not sure what exactly you want to do, but I suggest you >>>>>> trying >>>>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>>>> already. >>>>>> >>>>>> You'll need following packages directly from SVN: >>>>>> >>>>>> 1) SNMP trunk (pre 6.0), checkout from >>>>>> >>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>>>> >>>>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>>>> >>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>>>> >>>>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>>>> >>>>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>>>> experimental-udp >>>>>> >>>>>> I hope all your issues can be directly solved by these latest >>>>>> trunk code. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Chun Tian (binghe) >>>>>> >>>>>>> I, with the help of a friend, discovered that many functions are >>>>>>> not >>>>>>> exported unless used with the lispworks Common Lisp environment. >>>>>>> This >>>>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>>>> >>>>>>> I'd REALLY like to use this project to test an SNMP agent I've >>>>>>> been >>>>>>> developing in another language, but I really would like to be >>>>>>> able to >>>>>>> compile MIBs too. >>>>>>> >>>>>>> Here's what I've done so far. >>>>>>> >>>>>>> [on snmp version 5.19] >>>>>>> >>>>>>> 1. I've asdf-installed the whole snmp software stack >>>>>>> 2. I've removed the #+(lispworks) line from above >>>>>>> (:file "update-mib" :depends-on ("mib")) >>>>>>> >>>>>>> so that I can get that file compiled via sbcl >>>>>>> >>>>>>> 3. to make update-mib.lisp compile I've commented out: >>>>>>> ;;; Empty and old MIB module >>>>>>> ;(eval-when (:load-toplevel :execute) >>>>>>> ; (setf *mib-name-map* >>>>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>>>> ; (rfc1212 . nil) >>>>>>> ; (rfc-1212 . nil) >>>>>>> ; (rfc1213-mib . nil) >>>>>>> ; (rfc-1215 . nil))) >>>>>>> ; (make-mib-name-map)) >>>>>>> >>>>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>>>> stuff. >>>>>>> >>>>>>> 4. Now I can (require :asdf) and (require :snmp) and everything >>>>>>> seemingly loads up ok. But when I try to use snmp:update-mib >>>>>>> I get >>>>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>>>> >>>>>>> I'm at the point where I feel I need help, and would like to >>>>>>> make >>>>>>> sure >>>>>>> my changes, if they're any good, go upstream :-) >>>>>>> >>>>>>> >>>>>>> Any help would be greatly appreciated. I do love the with-open- >>>>>>> session and snmp-walk implementation and results by the way. >>>>>>> This >>>>>>> looks like a great package! I hope I can use it! >>>>>>> >>>>>>> Dave >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Enter the BlackBerry Developer Challenge >>>>>>> This is your chance to win up to $100,000 in prizes! For a >>>>>>> limited time, >>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>> will have >>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>>>> full prize >>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>> _______________________________________________ >>>>>>> cl-net-snmp-general mailing list >>>>>>> cl-...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>>>>> >>>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited >>> time, >>> vendors submitting new applications to BlackBerry App World(TM) >>> will have >>> the opportunity to enter the BlackBerry Developer Challenge. See >>> full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> cl-net-snmp-general mailing list >>> cl-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >> > |
From: Chun T. (binghe) <bin...@gm...> - 2009-07-10 03:51:29
|
Hi, David After you use ASN.1:COMPILE-ASN.1 to "compile" your MIB file into Lisp file, you should compile and load that Lisp file then, for example, put it into your project files list. There's also a ASN.1 "interpreter", but haven't finished. Also, textual convention support is on the way. Regards, Chun Tian (binghe) 在 2009-7-10,05:44, David Leimbach 写道: > I keep answering myself. > > Looks like if I use trunk and (require :asn.1-dev) I get access to > (asn.1:compile-asn.1) which will both compile the MIB, and read the > result into my environment, so I can do things like > snmp-walk with a non-numeric OID from my MIB. > > Is this correct? Sorry to be a pain. > > Dave > On Jul 9, 2009, at 2:06 PM, David Leimbach wrote: > >> Actually, now that I tried to use snmp:update-mib, I see that if I >> don't give an exhaustive MIB list, I can break the whole system. >> >> What's the correct way for me to compile my own MIB and load it? >> >> Dave >> On Jul 9, 2009, at 1:41 PM, David Leimbach wrote: >> >>> If I wanted to use snmp-dev, it appears I need cl-yacc. Which >>> version though? The one I asdf-install:install'd doesn't seem to >>> work. >>> >>> Dave >>> On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: >>> >>>> >>>> On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: >>>> >>>>> Hi, David >>>>> >>>>> Actually your question can be solved simply because you're using >>>>> SBCL:) >>>>> >>>>> Let's assume you're not working on Windows platform and you know >>>>> how >>>>> to use a SVN (Subversion) client. (if I'm wrong, contact me again) >>>> >>>> I'm on Mac OS X, as you appear to be :-) >>>> >>>>> >>>>> The result of ASDF-INSTALL is some links and directories in your >>>>> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >>>>> trunk depends on this package, so it's a good sample), I got >>>>> messages below: >>>>> >>>>> * (asdf-install:install :cl-yacc) >>>>> Install where? >>>>> 1) System-wide install: >>>>> System in /Users/binghe/lib/sbcl/site-systems/ >>>>> Files in /Users/binghe/lib/sbcl/site/ >>>>> 2) Personal installation: >>>>> System in /Users/binghe/.sbcl/systems/ >>>>> Files in /Users/binghe/.sbcl/site/ >>>>> >>>>> I hope you're always choosing option (2). And after installation, >>>>> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >>>>> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >>>>> >>>> >>>> Oh yes, always (2) :-) >>>> >>>>> binghe@binghe-pro:~/.sbcl/site$ ls -l >>>>> total 0 >>>>> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >>>>> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >>>>> binghe@binghe-pro:~/.sbcl/systems$ ls -l >>>>> total 8 >>>>> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >>>>> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >>>>> >>>>> So, if you follow this path rules made by SBCL, you can easily set >>>>> up any other CL packages without directly using ASDF-INSTALL, just >>>>> checkout any packages from SVN into $HOME/.sbcl/site, and do >>>>> symbol >>>>> link from all *.asd files into the $HOME/.sbcl/systems directory. >>>>> >>>>> My English is not quite good, I hope you can understand above >>>>> notes, >>>>> or you should go comp.lang.lisp to ask others before actaully >>>>> try my >>>>> trunk code:) >>>> >>>> Ah so I can just update my symlinks?! That's beautiful! >>>> >>>> Thank you a second time! >>>> >>>> Dave >>>> >>>>> >>>>> Regards, >>>>> >>>>> Chun Tian (binghe) >>>>> >>>>>> I will try trunk. >>>>>> >>>>>> My next question is how exactly to build it and use it without >>>>>> asdf- >>>>>> install :-) >>>>>> >>>>>> I'm a bit new to all this common lisp packaging stuff and want to >>>>>> make sure I get my paths correct or whatever I need to do to >>>>>> get it >>>>>> loaded. I suppose that's more of a question with an answer in >>>>>> the >>>>>> SBCL manual. >>>>>> >>>>>> Thank you for your prompt reply! >>>>>> >>>>>> Dave >>>>>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>>>>> >>>>>>> Hi, David >>>>>>> >>>>>>> Latest release of cl-net-snmp is a bit old, and your >>>>>>> modifications >>>>>>> on update-mib.lisp are not supported in theory. >>>>>>> >>>>>>> I'm not sure what exactly you want to do, but I suggest you >>>>>>> trying >>>>>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>>>>> already. >>>>>>> >>>>>>> You'll need following packages directly from SVN: >>>>>>> >>>>>>> 1) SNMP trunk (pre 6.0), checkout from >>>>>>> >>>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>>>>> >>>>>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>>>>> >>>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>>>>> >>>>>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>>>>> >>>>>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>>>>> experimental-udp >>>>>>> >>>>>>> I hope all your issues can be directly solved by these latest >>>>>>> trunk code. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Chun Tian (binghe) >>>>>>> >>>>>>>> I, with the help of a friend, discovered that many functions >>>>>>>> are >>>>>>>> not >>>>>>>> exported unless used with the lispworks Common Lisp >>>>>>>> environment. >>>>>>>> This >>>>>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>>>>> >>>>>>>> I'd REALLY like to use this project to test an SNMP agent >>>>>>>> I've been >>>>>>>> developing in another language, but I really would like to be >>>>>>>> able to >>>>>>>> compile MIBs too. >>>>>>>> >>>>>>>> Here's what I've done so far. >>>>>>>> >>>>>>>> [on snmp version 5.19] >>>>>>>> >>>>>>>> 1. I've asdf-installed the whole snmp software stack >>>>>>>> 2. I've removed the #+(lispworks) line from above >>>>>>>> (:file "update-mib" :depends-on ("mib")) >>>>>>>> >>>>>>>> so that I can get that file compiled via sbcl >>>>>>>> >>>>>>>> 3. to make update-mib.lisp compile I've commented out: >>>>>>>> ;;; Empty and old MIB module >>>>>>>> ;(eval-when (:load-toplevel :execute) >>>>>>>> ; (setf *mib-name-map* >>>>>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>>>>> ; (rfc1212 . nil) >>>>>>>> ; (rfc-1212 . nil) >>>>>>>> ; (rfc1213-mib . nil) >>>>>>>> ; (rfc-1215 . nil))) >>>>>>>> ; (make-mib-name-map)) >>>>>>>> >>>>>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>>>>> stuff. >>>>>>>> >>>>>>>> 4. Now I can (require :asdf) and (require :snmp) and >>>>>>>> everything >>>>>>>> seemingly loads up ok. But when I try to use snmp:update-mib >>>>>>>> I get >>>>>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>>>>> >>>>>>>> I'm at the point where I feel I need help, and would like to >>>>>>>> make >>>>>>>> sure >>>>>>>> my changes, if they're any good, go upstream :-) >>>>>>>> >>>>>>>> >>>>>>>> Any help would be greatly appreciated. I do love the with- >>>>>>>> open- >>>>>>>> session and snmp-walk implementation and results by the way. >>>>>>>> This >>>>>>>> looks like a great package! I hope I can use it! >>>>>>>> >>>>>>>> Dave >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Enter the BlackBerry Developer Challenge >>>>>>>> This is your chance to win up to $100,000 in prizes! For a >>>>>>>> limited time, >>>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>>> will have >>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. >>>>>>>> See >>>>>>>> full prize >>>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>>> _______________________________________________ >>>>>>>> cl-net-snmp-general mailing list >>>>>>>> cl-...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp- >>>>>>>> general >>>>>>> >>>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a >>>> limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) >>>> will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>> full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> cl-net-snmp-general mailing list >>>> cl-...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>> >> > |
From: David L. <le...@ma...> - 2009-07-09 23:21:09
|
got it working. Thank you for your help. One feature request i have is, when walking or snmp getting in general, if the value part of a varbind could translate to a textual convention. TruthValues have 1 for true and 2 for false. It would be great to see the 1s become "true" and the 2s become "false" Sent from my ïPhonë On Jul 9, 2009, at 2:44 PM, David Leimbach <le...@ma...> wrote: > I keep answering myself. > > Looks like if I use trunk and (require :asn.1-dev) I get access to > (asn.1:compile-asn.1) which will both compile the MIB, and read the > result into my environment, so I can do things like > snmp-walk with a non-numeric OID from my MIB. > > Is this correct? Sorry to be a pain. > > Dave > On Jul 9, 2009, at 2:06 PM, David Leimbach wrote: > >> Actually, now that I tried to use snmp:update-mib, I see that if I >> don't give an exhaustive MIB list, I can break the whole system. >> >> What's the correct way for me to compile my own MIB and load it? >> >> Dave >> On Jul 9, 2009, at 1:41 PM, David Leimbach wrote: >> >>> If I wanted to use snmp-dev, it appears I need cl-yacc. Which >>> version though? The one I asdf-install:install'd doesn't seem to >>> work. >>> >>> Dave >>> On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: >>> >>>> >>>> On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: >>>> >>>>> Hi, David >>>>> >>>>> Actually your question can be solved simply because you're using >>>>> SBCL:) >>>>> >>>>> Let's assume you're not working on Windows platform and you know >>>>> how >>>>> to use a SVN (Subversion) client. (if I'm wrong, contact me again) >>>> >>>> I'm on Mac OS X, as you appear to be :-) >>>> >>>>> >>>>> The result of ASDF-INSTALL is some links and directories in your >>>>> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >>>>> trunk depends on this package, so it's a good sample), I got >>>>> messages below: >>>>> >>>>> * (asdf-install:install :cl-yacc) >>>>> Install where? >>>>> 1) System-wide install: >>>>> System in /Users/binghe/lib/sbcl/site-systems/ >>>>> Files in /Users/binghe/lib/sbcl/site/ >>>>> 2) Personal installation: >>>>> System in /Users/binghe/.sbcl/systems/ >>>>> Files in /Users/binghe/.sbcl/site/ >>>>> >>>>> I hope you're always choosing option (2). And after installation, >>>>> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >>>>> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >>>>> >>>> >>>> Oh yes, always (2) :-) >>>> >>>>> binghe@binghe-pro:~/.sbcl/site$ ls -l >>>>> total 0 >>>>> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >>>>> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >>>>> binghe@binghe-pro:~/.sbcl/systems$ ls -l >>>>> total 8 >>>>> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >>>>> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >>>>> >>>>> So, if you follow this path rules made by SBCL, you can easily set >>>>> up any other CL packages without directly using ASDF-INSTALL, just >>>>> checkout any packages from SVN into $HOME/.sbcl/site, and do >>>>> symbol >>>>> link from all *.asd files into the $HOME/.sbcl/systems directory. >>>>> >>>>> My English is not quite good, I hope you can understand above >>>>> notes, >>>>> or you should go comp.lang.lisp to ask others before actaully >>>>> try my >>>>> trunk code:) >>>> >>>> Ah so I can just update my symlinks?! That's beautiful! >>>> >>>> Thank you a second time! >>>> >>>> Dave >>>> >>>>> >>>>> Regards, >>>>> >>>>> Chun Tian (binghe) >>>>> >>>>>> I will try trunk. >>>>>> >>>>>> My next question is how exactly to build it and use it without >>>>>> asdf- >>>>>> install :-) >>>>>> >>>>>> I'm a bit new to all this common lisp packaging stuff and want to >>>>>> make sure I get my paths correct or whatever I need to do to >>>>>> get it >>>>>> loaded. I suppose that's more of a question with an answer in >>>>>> the >>>>>> SBCL manual. >>>>>> >>>>>> Thank you for your prompt reply! >>>>>> >>>>>> Dave >>>>>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>>>>> >>>>>>> Hi, David >>>>>>> >>>>>>> Latest release of cl-net-snmp is a bit old, and your >>>>>>> modifications >>>>>>> on update-mib.lisp are not supported in theory. >>>>>>> >>>>>>> I'm not sure what exactly you want to do, but I suggest you >>>>>>> trying >>>>>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>>>>> already. >>>>>>> >>>>>>> You'll need following packages directly from SVN: >>>>>>> >>>>>>> 1) SNMP trunk (pre 6.0), checkout from >>>>>>> >>>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>>>>> >>>>>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>>>>> >>>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>>>>> >>>>>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>>>>> >>>>>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>>>>> experimental-udp >>>>>>> >>>>>>> I hope all your issues can be directly solved by these latest >>>>>>> trunk code. >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Chun Tian (binghe) >>>>>>> >>>>>>>> I, with the help of a friend, discovered that many functions >>>>>>>> are >>>>>>>> not >>>>>>>> exported unless used with the lispworks Common Lisp >>>>>>>> environment. >>>>>>>> This >>>>>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>>>>> >>>>>>>> I'd REALLY like to use this project to test an SNMP agent >>>>>>>> I've been >>>>>>>> developing in another language, but I really would like to be >>>>>>>> able to >>>>>>>> compile MIBs too. >>>>>>>> >>>>>>>> Here's what I've done so far. >>>>>>>> >>>>>>>> [on snmp version 5.19] >>>>>>>> >>>>>>>> 1. I've asdf-installed the whole snmp software stack >>>>>>>> 2. I've removed the #+(lispworks) line from above >>>>>>>> (:file "update-mib" :depends-on ("mib")) >>>>>>>> >>>>>>>> so that I can get that file compiled via sbcl >>>>>>>> >>>>>>>> 3. to make update-mib.lisp compile I've commented out: >>>>>>>> ;;; Empty and old MIB module >>>>>>>> ;(eval-when (:load-toplevel :execute) >>>>>>>> ; (setf *mib-name-map* >>>>>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>>>>> ; (rfc1212 . nil) >>>>>>>> ; (rfc-1212 . nil) >>>>>>>> ; (rfc1213-mib . nil) >>>>>>>> ; (rfc-1215 . nil))) >>>>>>>> ; (make-mib-name-map)) >>>>>>>> >>>>>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>>>>> stuff. >>>>>>>> >>>>>>>> 4. Now I can (require :asdf) and (require :snmp) and >>>>>>>> everything >>>>>>>> seemingly loads up ok. But when I try to use snmp:update-mib >>>>>>>> I get >>>>>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>>>>> >>>>>>>> I'm at the point where I feel I need help, and would like to >>>>>>>> make >>>>>>>> sure >>>>>>>> my changes, if they're any good, go upstream :-) >>>>>>>> >>>>>>>> >>>>>>>> Any help would be greatly appreciated. I do love the with- >>>>>>>> open- >>>>>>>> session and snmp-walk implementation and results by the way. >>>>>>>> This >>>>>>>> looks like a great package! I hope I can use it! >>>>>>>> >>>>>>>> Dave >>>>>>>> >>>>>>>> --- >>>>>>>> --- >>>>>>>> --- >>>>>>>> --- >>>>>>>> --- >>>>>>>> --------------------------------------------------------------- >>>>>>>> Enter the BlackBerry Developer Challenge >>>>>>>> This is your chance to win up to $100,000 in prizes! For a >>>>>>>> limited time, >>>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>>> will have >>>>>>>> the opportunity to enter the BlackBerry Developer Challenge. >>>>>>>> See >>>>>>>> full prize >>>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>>> _______________________________________________ >>>>>>>> cl-net-snmp-general mailing list >>>>>>>> cl-...@li... >>>>>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp- >>>>>>>> general >>>>>>> >>>>>> >>>>> >>>> >>>> >>>> --- >>>> --- >>>> --- >>>> --- >>>> ------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a >>>> limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) >>>> will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>> full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> cl-net-snmp-general mailing list >>>> cl-...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>> >> > |
From: David L. <le...@ma...> - 2009-07-09 21:44:59
|
I keep answering myself. Looks like if I use trunk and (require :asn.1-dev) I get access to (asn.1:compile-asn.1) which will both compile the MIB, and read the result into my environment, so I can do things like snmp-walk with a non-numeric OID from my MIB. Is this correct? Sorry to be a pain. Dave On Jul 9, 2009, at 2:06 PM, David Leimbach wrote: > Actually, now that I tried to use snmp:update-mib, I see that if I > don't give an exhaustive MIB list, I can break the whole system. > > What's the correct way for me to compile my own MIB and load it? > > Dave > On Jul 9, 2009, at 1:41 PM, David Leimbach wrote: > >> If I wanted to use snmp-dev, it appears I need cl-yacc. Which >> version though? The one I asdf-install:install'd doesn't seem to >> work. >> >> Dave >> On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: >> >>> >>> On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: >>> >>>> Hi, David >>>> >>>> Actually your question can be solved simply because you're using >>>> SBCL:) >>>> >>>> Let's assume you're not working on Windows platform and you know >>>> how >>>> to use a SVN (Subversion) client. (if I'm wrong, contact me again) >>> >>> I'm on Mac OS X, as you appear to be :-) >>> >>>> >>>> The result of ASDF-INSTALL is some links and directories in your >>>> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >>>> trunk depends on this package, so it's a good sample), I got >>>> messages below: >>>> >>>> * (asdf-install:install :cl-yacc) >>>> Install where? >>>> 1) System-wide install: >>>> System in /Users/binghe/lib/sbcl/site-systems/ >>>> Files in /Users/binghe/lib/sbcl/site/ >>>> 2) Personal installation: >>>> System in /Users/binghe/.sbcl/systems/ >>>> Files in /Users/binghe/.sbcl/site/ >>>> >>>> I hope you're always choosing option (2). And after installation, >>>> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >>>> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >>>> >>> >>> Oh yes, always (2) :-) >>> >>>> binghe@binghe-pro:~/.sbcl/site$ ls -l >>>> total 0 >>>> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >>>> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >>>> binghe@binghe-pro:~/.sbcl/systems$ ls -l >>>> total 8 >>>> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >>>> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >>>> >>>> So, if you follow this path rules made by SBCL, you can easily set >>>> up any other CL packages without directly using ASDF-INSTALL, just >>>> checkout any packages from SVN into $HOME/.sbcl/site, and do symbol >>>> link from all *.asd files into the $HOME/.sbcl/systems directory. >>>> >>>> My English is not quite good, I hope you can understand above >>>> notes, >>>> or you should go comp.lang.lisp to ask others before actaully try >>>> my >>>> trunk code:) >>> >>> Ah so I can just update my symlinks?! That's beautiful! >>> >>> Thank you a second time! >>> >>> Dave >>> >>>> >>>> Regards, >>>> >>>> Chun Tian (binghe) >>>> >>>>> I will try trunk. >>>>> >>>>> My next question is how exactly to build it and use it without >>>>> asdf- >>>>> install :-) >>>>> >>>>> I'm a bit new to all this common lisp packaging stuff and want to >>>>> make sure I get my paths correct or whatever I need to do to get >>>>> it >>>>> loaded. I suppose that's more of a question with an answer in the >>>>> SBCL manual. >>>>> >>>>> Thank you for your prompt reply! >>>>> >>>>> Dave >>>>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>>>> >>>>>> Hi, David >>>>>> >>>>>> Latest release of cl-net-snmp is a bit old, and your >>>>>> modifications >>>>>> on update-mib.lisp are not supported in theory. >>>>>> >>>>>> I'm not sure what exactly you want to do, but I suggest you >>>>>> trying >>>>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>>>> already. >>>>>> >>>>>> You'll need following packages directly from SVN: >>>>>> >>>>>> 1) SNMP trunk (pre 6.0), checkout from >>>>>> >>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>>>> >>>>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>>>> >>>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>>>> >>>>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>>>> >>>>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>>>> experimental-udp >>>>>> >>>>>> I hope all your issues can be directly solved by these latest >>>>>> trunk code. >>>>>> >>>>>> Regards, >>>>>> >>>>>> Chun Tian (binghe) >>>>>> >>>>>>> I, with the help of a friend, discovered that many functions are >>>>>>> not >>>>>>> exported unless used with the lispworks Common Lisp environment. >>>>>>> This >>>>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>>>> >>>>>>> I'd REALLY like to use this project to test an SNMP agent I've >>>>>>> been >>>>>>> developing in another language, but I really would like to be >>>>>>> able to >>>>>>> compile MIBs too. >>>>>>> >>>>>>> Here's what I've done so far. >>>>>>> >>>>>>> [on snmp version 5.19] >>>>>>> >>>>>>> 1. I've asdf-installed the whole snmp software stack >>>>>>> 2. I've removed the #+(lispworks) line from above >>>>>>> (:file "update-mib" :depends-on ("mib")) >>>>>>> >>>>>>> so that I can get that file compiled via sbcl >>>>>>> >>>>>>> 3. to make update-mib.lisp compile I've commented out: >>>>>>> ;;; Empty and old MIB module >>>>>>> ;(eval-when (:load-toplevel :execute) >>>>>>> ; (setf *mib-name-map* >>>>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>>>> ; (rfc1212 . nil) >>>>>>> ; (rfc-1212 . nil) >>>>>>> ; (rfc1213-mib . nil) >>>>>>> ; (rfc-1215 . nil))) >>>>>>> ; (make-mib-name-map)) >>>>>>> >>>>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>>>> stuff. >>>>>>> >>>>>>> 4. Now I can (require :asdf) and (require :snmp) and everything >>>>>>> seemingly loads up ok. But when I try to use snmp:update-mib >>>>>>> I get >>>>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>>>> >>>>>>> I'm at the point where I feel I need help, and would like to >>>>>>> make >>>>>>> sure >>>>>>> my changes, if they're any good, go upstream :-) >>>>>>> >>>>>>> >>>>>>> Any help would be greatly appreciated. I do love the with-open- >>>>>>> session and snmp-walk implementation and results by the way. >>>>>>> This >>>>>>> looks like a great package! I hope I can use it! >>>>>>> >>>>>>> Dave >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Enter the BlackBerry Developer Challenge >>>>>>> This is your chance to win up to $100,000 in prizes! For a >>>>>>> limited time, >>>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>>> will have >>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>>>> full prize >>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>> _______________________________________________ >>>>>>> cl-net-snmp-general mailing list >>>>>>> cl-...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>>>>> >>>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited >>> time, >>> vendors submitting new applications to BlackBerry App World(TM) >>> will have >>> the opportunity to enter the BlackBerry Developer Challenge. See >>> full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> cl-net-snmp-general mailing list >>> cl-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >> > |
From: David L. <le...@ma...> - 2009-07-09 21:07:15
|
Actually, now that I tried to use snmp:update-mib, I see that if I don't give an exhaustive MIB list, I can break the whole system. What's the correct way for me to compile my own MIB and load it? Dave On Jul 9, 2009, at 1:41 PM, David Leimbach wrote: > If I wanted to use snmp-dev, it appears I need cl-yacc. Which > version though? The one I asdf-install:install'd doesn't seem to > work. > > Dave > On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: > >> >> On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: >> >>> Hi, David >>> >>> Actually your question can be solved simply because you're using >>> SBCL:) >>> >>> Let's assume you're not working on Windows platform and you know how >>> to use a SVN (Subversion) client. (if I'm wrong, contact me again) >> >> I'm on Mac OS X, as you appear to be :-) >> >>> >>> The result of ASDF-INSTALL is some links and directories in your >>> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >>> trunk depends on this package, so it's a good sample), I got >>> messages below: >>> >>> * (asdf-install:install :cl-yacc) >>> Install where? >>> 1) System-wide install: >>> System in /Users/binghe/lib/sbcl/site-systems/ >>> Files in /Users/binghe/lib/sbcl/site/ >>> 2) Personal installation: >>> System in /Users/binghe/.sbcl/systems/ >>> Files in /Users/binghe/.sbcl/site/ >>> >>> I hope you're always choosing option (2). And after installation, >>> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >>> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >>> >> >> Oh yes, always (2) :-) >> >>> binghe@binghe-pro:~/.sbcl/site$ ls -l >>> total 0 >>> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >>> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >>> binghe@binghe-pro:~/.sbcl/systems$ ls -l >>> total 8 >>> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >>> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >>> >>> So, if you follow this path rules made by SBCL, you can easily set >>> up any other CL packages without directly using ASDF-INSTALL, just >>> checkout any packages from SVN into $HOME/.sbcl/site, and do symbol >>> link from all *.asd files into the $HOME/.sbcl/systems directory. >>> >>> My English is not quite good, I hope you can understand above notes, >>> or you should go comp.lang.lisp to ask others before actaully try my >>> trunk code:) >> >> Ah so I can just update my symlinks?! That's beautiful! >> >> Thank you a second time! >> >> Dave >> >>> >>> Regards, >>> >>> Chun Tian (binghe) >>> >>>> I will try trunk. >>>> >>>> My next question is how exactly to build it and use it without >>>> asdf- >>>> install :-) >>>> >>>> I'm a bit new to all this common lisp packaging stuff and want to >>>> make sure I get my paths correct or whatever I need to do to get it >>>> loaded. I suppose that's more of a question with an answer in the >>>> SBCL manual. >>>> >>>> Thank you for your prompt reply! >>>> >>>> Dave >>>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>>> >>>>> Hi, David >>>>> >>>>> Latest release of cl-net-snmp is a bit old, and your modifications >>>>> on update-mib.lisp are not supported in theory. >>>>> >>>>> I'm not sure what exactly you want to do, but I suggest you trying >>>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>>> already. >>>>> >>>>> You'll need following packages directly from SVN: >>>>> >>>>> 1) SNMP trunk (pre 6.0), checkout from >>>>> >>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>>> >>>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>>> >>>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>>> >>>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>>> >>>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>>> experimental-udp >>>>> >>>>> I hope all your issues can be directly solved by these latest >>>>> trunk code. >>>>> >>>>> Regards, >>>>> >>>>> Chun Tian (binghe) >>>>> >>>>>> I, with the help of a friend, discovered that many functions are >>>>>> not >>>>>> exported unless used with the lispworks Common Lisp environment. >>>>>> This >>>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>>> >>>>>> I'd REALLY like to use this project to test an SNMP agent I've >>>>>> been >>>>>> developing in another language, but I really would like to be >>>>>> able to >>>>>> compile MIBs too. >>>>>> >>>>>> Here's what I've done so far. >>>>>> >>>>>> [on snmp version 5.19] >>>>>> >>>>>> 1. I've asdf-installed the whole snmp software stack >>>>>> 2. I've removed the #+(lispworks) line from above >>>>>> (:file "update-mib" :depends-on ("mib")) >>>>>> >>>>>> so that I can get that file compiled via sbcl >>>>>> >>>>>> 3. to make update-mib.lisp compile I've commented out: >>>>>> ;;; Empty and old MIB module >>>>>> ;(eval-when (:load-toplevel :execute) >>>>>> ; (setf *mib-name-map* >>>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>>> ; (rfc1212 . nil) >>>>>> ; (rfc-1212 . nil) >>>>>> ; (rfc1213-mib . nil) >>>>>> ; (rfc-1215 . nil))) >>>>>> ; (make-mib-name-map)) >>>>>> >>>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>>> stuff. >>>>>> >>>>>> 4. Now I can (require :asdf) and (require :snmp) and everything >>>>>> seemingly loads up ok. But when I try to use snmp:update-mib I >>>>>> get >>>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>>> >>>>>> I'm at the point where I feel I need help, and would like to make >>>>>> sure >>>>>> my changes, if they're any good, go upstream :-) >>>>>> >>>>>> >>>>>> Any help would be greatly appreciated. I do love the with-open- >>>>>> session and snmp-walk implementation and results by the way. >>>>>> This >>>>>> looks like a great package! I hope I can use it! >>>>>> >>>>>> Dave >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Enter the BlackBerry Developer Challenge >>>>>> This is your chance to win up to $100,000 in prizes! For a >>>>>> limited time, >>>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>>> will have >>>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>>> full prize >>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>> _______________________________________________ >>>>>> cl-net-snmp-general mailing list >>>>>> cl-...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited >> time, >> vendors submitting new applications to BlackBerry App World(TM) >> will have >> the opportunity to enter the BlackBerry Developer Challenge. See >> full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> cl-net-snmp-general mailing list >> cl-...@li... >> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general > |
From: David L. <le...@ma...> - 2009-07-09 20:41:59
|
If I wanted to use snmp-dev, it appears I need cl-yacc. Which version though? The one I asdf-install:install'd doesn't seem to work. Dave On Jul 9, 2009, at 10:25 AM, David Leimbach wrote: > > On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: > >> Hi, David >> >> Actually your question can be solved simply because you're using >> SBCL:) >> >> Let's assume you're not working on Windows platform and you know how >> to use a SVN (Subversion) client. (if I'm wrong, contact me again) > > I'm on Mac OS X, as you appear to be :-) > >> >> The result of ASDF-INSTALL is some links and directories in your >> $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 >> trunk depends on this package, so it's a good sample), I got >> messages below: >> >> * (asdf-install:install :cl-yacc) >> Install where? >> 1) System-wide install: >> System in /Users/binghe/lib/sbcl/site-systems/ >> Files in /Users/binghe/lib/sbcl/site/ >> 2) Personal installation: >> System in /Users/binghe/.sbcl/systems/ >> Files in /Users/binghe/.sbcl/site/ >> >> I hope you're always choosing option (2). And after installation, >> you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a >> symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: >> > > Oh yes, always (2) :-) > >> binghe@binghe-pro:~/.sbcl/site$ ls -l >> total 0 >> drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 >> binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ >> binghe@binghe-pro:~/.sbcl/systems$ ls -l >> total 8 >> lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ >> binghe/.sbcl/site/cl-yacc-0.3/yacc.asd >> >> So, if you follow this path rules made by SBCL, you can easily set >> up any other CL packages without directly using ASDF-INSTALL, just >> checkout any packages from SVN into $HOME/.sbcl/site, and do symbol >> link from all *.asd files into the $HOME/.sbcl/systems directory. >> >> My English is not quite good, I hope you can understand above notes, >> or you should go comp.lang.lisp to ask others before actaully try my >> trunk code:) > > Ah so I can just update my symlinks?! That's beautiful! > > Thank you a second time! > > Dave > >> >> Regards, >> >> Chun Tian (binghe) >> >>> I will try trunk. >>> >>> My next question is how exactly to build it and use it without asdf- >>> install :-) >>> >>> I'm a bit new to all this common lisp packaging stuff and want to >>> make sure I get my paths correct or whatever I need to do to get it >>> loaded. I suppose that's more of a question with an answer in the >>> SBCL manual. >>> >>> Thank you for your prompt reply! >>> >>> Dave >>> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >>> >>>> Hi, David >>>> >>>> Latest release of cl-net-snmp is a bit old, and your modifications >>>> on update-mib.lisp are not supported in theory. >>>> >>>> I'm not sure what exactly you want to do, but I suggest you trying >>>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>>> already. >>>> >>>> You'll need following packages directly from SVN: >>>> >>>> 1) SNMP trunk (pre 6.0), checkout from >>>> >>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>>> >>>> 2) ASN.1 trunk (pre 5.0), checkout from >>>> >>>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>>> >>>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>>> >>>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>>> experimental-udp >>>> >>>> I hope all your issues can be directly solved by these latest >>>> trunk code. >>>> >>>> Regards, >>>> >>>> Chun Tian (binghe) >>>> >>>>> I, with the help of a friend, discovered that many functions are >>>>> not >>>>> exported unless used with the lispworks Common Lisp environment. >>>>> This >>>>> includes seemingly very useful functions like 'snmp:update-mib. >>>>> >>>>> I'd REALLY like to use this project to test an SNMP agent I've >>>>> been >>>>> developing in another language, but I really would like to be >>>>> able to >>>>> compile MIBs too. >>>>> >>>>> Here's what I've done so far. >>>>> >>>>> [on snmp version 5.19] >>>>> >>>>> 1. I've asdf-installed the whole snmp software stack >>>>> 2. I've removed the #+(lispworks) line from above >>>>> (:file "update-mib" :depends-on ("mib")) >>>>> >>>>> so that I can get that file compiled via sbcl >>>>> >>>>> 3. to make update-mib.lisp compile I've commented out: >>>>> ;;; Empty and old MIB module >>>>> ;(eval-when (:load-toplevel :execute) >>>>> ; (setf *mib-name-map* >>>>> ; '((rfc1155-smi . snmpv2-smi) >>>>> ; (rfc1212 . nil) >>>>> ; (rfc-1212 . nil) >>>>> ; (rfc1213-mib . nil) >>>>> ; (rfc-1215 . nil))) >>>>> ; (make-mib-name-map)) >>>>> >>>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>>> stuff. >>>>> >>>>> 4. Now I can (require :asdf) and (require :snmp) and everything >>>>> seemingly loads up ok. But when I try to use snmp:update-mib I >>>>> get >>>>> complaints about undefined functions for asn.1:compile-asn.1 >>>>> >>>>> I'm at the point where I feel I need help, and would like to make >>>>> sure >>>>> my changes, if they're any good, go upstream :-) >>>>> >>>>> >>>>> Any help would be greatly appreciated. I do love the with-open- >>>>> session and snmp-walk implementation and results by the way. This >>>>> looks like a great package! I hope I can use it! >>>>> >>>>> Dave >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Enter the BlackBerry Developer Challenge >>>>> This is your chance to win up to $100,000 in prizes! For a >>>>> limited time, >>>>> vendors submitting new applications to BlackBerry App World(TM) >>>>> will have >>>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>>> full prize >>>>> details at: http://p.sf.net/sfu/Challenge >>>>> _______________________________________________ >>>>> cl-net-snmp-general mailing list >>>>> cl-...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>>> >>> >> > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |
From: David L. <le...@ma...> - 2009-07-09 17:25:43
|
On Jul 9, 2009, at 10:20 AM, Chun Tian (binghe) wrote: > Hi, David > > Actually your question can be solved simply because you're using > SBCL:) > > Let's assume you're not working on Windows platform and you know how > to use a SVN (Subversion) client. (if I'm wrong, contact me again) I'm on Mac OS X, as you appear to be :-) > > The result of ASDF-INSTALL is some links and directories in your > $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 > trunk depends on this package, so it's a good sample), I got > messages below: > > * (asdf-install:install :cl-yacc) > Install where? > 1) System-wide install: > System in /Users/binghe/lib/sbcl/site-systems/ > Files in /Users/binghe/lib/sbcl/site/ > 2) Personal installation: > System in /Users/binghe/.sbcl/systems/ > Files in /Users/binghe/.sbcl/site/ > > I hope you're always choosing option (2). And after installation, > you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a > symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: > Oh yes, always (2) :-) > binghe@binghe-pro:~/.sbcl/site$ ls -l > total 0 > drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 > binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ > binghe@binghe-pro:~/.sbcl/systems$ ls -l > total 8 > lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ > binghe/.sbcl/site/cl-yacc-0.3/yacc.asd > > So, if you follow this path rules made by SBCL, you can easily set > up any other CL packages without directly using ASDF-INSTALL, just > checkout any packages from SVN into $HOME/.sbcl/site, and do symbol > link from all *.asd files into the $HOME/.sbcl/systems directory. > > My English is not quite good, I hope you can understand above notes, > or you should go comp.lang.lisp to ask others before actaully try my > trunk code:) Ah so I can just update my symlinks?! That's beautiful! Thank you a second time! Dave > > Regards, > > Chun Tian (binghe) > >> I will try trunk. >> >> My next question is how exactly to build it and use it without asdf- >> install :-) >> >> I'm a bit new to all this common lisp packaging stuff and want to >> make sure I get my paths correct or whatever I need to do to get it >> loaded. I suppose that's more of a question with an answer in the >> SBCL manual. >> >> Thank you for your prompt reply! >> >> Dave >> On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: >> >>> Hi, David >>> >>> Latest release of cl-net-snmp is a bit old, and your modifications >>> on update-mib.lisp are not supported in theory. >>> >>> I'm not sure what exactly you want to do, but I suggest you trying >>> my "trunk" code, in which SBCL are supported by update-mib.lisp >>> already. >>> >>> You'll need following packages directly from SVN: >>> >>> 1) SNMP trunk (pre 6.0), checkout from >>> >>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/trunk >>> >>> 2) ASN.1 trunk (pre 5.0), checkout from >>> >>> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >>> >>> 3) USOCKET "experimental-udp" branch (pre 0.5), from >>> >>> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >>> experimental-udp >>> >>> I hope all your issues can be directly solved by these latest >>> trunk code. >>> >>> Regards, >>> >>> Chun Tian (binghe) >>> >>>> I, with the help of a friend, discovered that many functions are >>>> not >>>> exported unless used with the lispworks Common Lisp environment. >>>> This >>>> includes seemingly very useful functions like 'snmp:update-mib. >>>> >>>> I'd REALLY like to use this project to test an SNMP agent I've been >>>> developing in another language, but I really would like to be >>>> able to >>>> compile MIBs too. >>>> >>>> Here's what I've done so far. >>>> >>>> [on snmp version 5.19] >>>> >>>> 1. I've asdf-installed the whole snmp software stack >>>> 2. I've removed the #+(lispworks) line from above >>>> (:file "update-mib" :depends-on ("mib")) >>>> >>>> so that I can get that file compiled via sbcl >>>> >>>> 3. to make update-mib.lisp compile I've commented out: >>>> ;;; Empty and old MIB module >>>> ;(eval-when (:load-toplevel :execute) >>>> ; (setf *mib-name-map* >>>> ; '((rfc1155-smi . snmpv2-smi) >>>> ; (rfc1212 . nil) >>>> ; (rfc-1212 . nil) >>>> ; (rfc1213-mib . nil) >>>> ; (rfc-1215 . nil))) >>>> ; (make-mib-name-map)) >>>> >>>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>>> stuff. >>>> >>>> 4. Now I can (require :asdf) and (require :snmp) and everything >>>> seemingly loads up ok. But when I try to use snmp:update-mib I get >>>> complaints about undefined functions for asn.1:compile-asn.1 >>>> >>>> I'm at the point where I feel I need help, and would like to make >>>> sure >>>> my changes, if they're any good, go upstream :-) >>>> >>>> >>>> Any help would be greatly appreciated. I do love the with-open- >>>> session and snmp-walk implementation and results by the way. This >>>> looks like a great package! I hope I can use it! >>>> >>>> Dave >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a >>>> limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) >>>> will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See >>>> full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> cl-net-snmp-general mailing list >>>> cl-...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >>> >> > |
From: Chun T. (binghe) <bin...@gm...> - 2009-07-09 17:20:55
|
Hi, David Actually your question can be solved simply because you're using SBCL:) Let's assume you're not working on Windows platform and you know how to use a SVN (Subversion) client. (if I'm wrong, contact me again) The result of ASDF-INSTALL is some links and directories in your $HOME/.sbcl, for example, when I trying to install CL-YACC (asn.1 trunk depends on this package, so it's a good sample), I got messages below: * (asdf-install:install :cl-yacc) Install where? 1) System-wide install: System in /Users/binghe/lib/sbcl/site-systems/ Files in /Users/binghe/lib/sbcl/site/ 2) Personal installation: System in /Users/binghe/.sbcl/systems/ Files in /Users/binghe/.sbcl/site/ I hope you're always choosing option (2). And after installation, you'll find a "cl-yacc-0.3" directory in $HOME/.sbcl/site, and a symbol link of "cl-yacc.asd" in your $HOME/.sbcl/systems: binghe@binghe-pro:~/.sbcl/site$ ls -l total 0 drwxr-xr-x 10 binghe binghe 340 1 4 2009 cl-yacc-0.3 binghe@binghe-pro:~/.sbcl/site$ cd ../systems/ binghe@binghe-pro:~/.sbcl/systems$ ls -l total 8 lrwxr-xr-x 1 binghe binghe 45 7 10 01:16 yacc.asd -> /Users/ binghe/.sbcl/site/cl-yacc-0.3/yacc.asd So, if you follow this path rules made by SBCL, you can easily set up any other CL packages without directly using ASDF-INSTALL, just checkout any packages from SVN into $HOME/.sbcl/site, and do symbol link from all *.asd files into the $HOME/.sbcl/systems directory. My English is not quite good, I hope you can understand above notes, or you should go comp.lang.lisp to ask others before actaully try my trunk code:) Regards, Chun Tian (binghe) > I will try trunk. > > My next question is how exactly to build it and use it without asdf- > install :-) > > I'm a bit new to all this common lisp packaging stuff and want to > make sure I get my paths correct or whatever I need to do to get it > loaded. I suppose that's more of a question with an answer in the > SBCL manual. > > Thank you for your prompt reply! > > Dave > On Jul 9, 2009, at 10:04 AM, Chun Tian (binghe) wrote: > >> Hi, David >> >> Latest release of cl-net-snmp is a bit old, and your modifications >> on update-mib.lisp are not supported in theory. >> >> I'm not sure what exactly you want to do, but I suggest you trying >> my "trunk" code, in which SBCL are supported by update-mib.lisp >> already. >> >> You'll need following packages directly from SVN: >> >> 1) SNMP trunk (pre 6.0), checkout from >> >> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/ >> trunk >> >> 2) ASN.1 trunk (pre 5.0), checkout from >> >> https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/asn.1/trunk >> >> 3) USOCKET "experimental-udp" branch (pre 0.5), from >> >> svn://common-lisp.net/project/usocket/svn/usocket/branches/ >> experimental-udp >> >> I hope all your issues can be directly solved by these latest trunk >> code. >> >> Regards, >> >> Chun Tian (binghe) >> >>> I, with the help of a friend, discovered that many functions are not >>> exported unless used with the lispworks Common Lisp environment. >>> This >>> includes seemingly very useful functions like 'snmp:update-mib. >>> >>> I'd REALLY like to use this project to test an SNMP agent I've been >>> developing in another language, but I really would like to be able >>> to >>> compile MIBs too. >>> >>> Here's what I've done so far. >>> >>> [on snmp version 5.19] >>> >>> 1. I've asdf-installed the whole snmp software stack >>> 2. I've removed the #+(lispworks) line from above >>> (:file "update-mib" :depends-on ("mib")) >>> >>> so that I can get that file compiled via sbcl >>> >>> 3. to make update-mib.lisp compile I've commented out: >>> ;;; Empty and old MIB module >>> ;(eval-when (:load-toplevel :execute) >>> ; (setf *mib-name-map* >>> ; '((rfc1155-smi . snmpv2-smi) >>> ; (rfc1212 . nil) >>> ; (rfc-1212 . nil) >>> ; (rfc1213-mib . nil) >>> ; (rfc-1215 . nil))) >>> ; (make-mib-name-map)) >>> >>> from update-mib.lisp in the snmp-5.19 directory of my site lisp >>> stuff. >>> >>> 4. Now I can (require :asdf) and (require :snmp) and everything >>> seemingly loads up ok. But when I try to use snmp:update-mib I get >>> complaints about undefined functions for asn.1:compile-asn.1 >>> >>> I'm at the point where I feel I need help, and would like to make >>> sure >>> my changes, if they're any good, go upstream :-) >>> >>> >>> Any help would be greatly appreciated. I do love the with-open- >>> session and snmp-walk implementation and results by the way. This >>> looks like a great package! I hope I can use it! >>> >>> Dave >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited >>> time, >>> vendors submitting new applications to BlackBerry App World(TM) >>> will have >>> the opportunity to enter the BlackBerry Developer Challenge. See >>> full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> cl-net-snmp-general mailing list >>> cl-...@li... >>> https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general >> > |