Re: [lisp-snmp] latest SBCL not working with latest cl-net-snmp
Brought to you by:
binghe
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 >> > |