From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29803 Path: main.gmane.org!not-for-mail From: Wes Hardaker Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus as SNMP/LDAP browser? Date: 19 Apr 2000 09:17:46 -0700 Organization: U.C.Davis, Information Technology - D.C.A.S. Sender: owner-ding@hpc.uh.edu Message-ID: References: <868zybd7uk.fsf@bumpa.altkom.com.pl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035166413 4808 80.91.224.250 (21 Oct 2002 02:13:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:13:33 +0000 (UTC) Cc: Wes Hardaker , Pavel.Janik@inet.cz, ding@gnus.org, Michael Baer Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id 39EA7D051E for ; Wed, 19 Apr 2000 12:22:06 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB29839; Wed, 19 Apr 2000 11:21:34 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 19 Apr 2000 11:20:30 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA25194 for ; Wed, 19 Apr 2000 11:20:19 -0500 (CDT) Original-Received: from wanderer.hardaker.davis.ca.us (dcas105.ucdavis.edu [169.237.210.105]) by mailhost.sclp.com (Postfix) with ESMTP id 8A0D8D051E for ; Wed, 19 Apr 2000 12:20:31 -0400 (EDT) Original-Received: (from hardaker@localhost) by wanderer.hardaker.davis.ca.us (8.9.3/8.9.3) id JAA01510; Wed, 19 Apr 2000 09:17:46 -0700 Original-To: Slawek Zak X-URL: http://dcas.ucdavis.edu/~hardaker X-Microsoft: Sucks X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 In-Reply-To: Slawek Zak's message of "18 Apr 2000 10:25:07 +0000" Original-Lines: 39 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Shinjuku) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29803 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29803 >>>>> On 18 Apr 2000 10:25:07 +0000, Slawek Zak said: >> Oh. My. Wouldn't that be silly. Slawek> Naah, scoring LDAP and/or SNMP/MIB entries would be kinda cool ;) Maybe we need a "nnshell" backend? That way it would create an article or group for a shell command so that you could set your shell command to "snmpwalk localhost system" and get what you want, or "ldapsearch ..." Actually, this shouldn't be that hard with nneething. Actually, I just did it: ;; ;; nnsnmp. Gnus. You must be kidding. ;; (defvar gnus-get-snmp-dir "/home/hardaker/.snmp/gnus") (defun gnus-get-snmp-results () "don't run this. It's insane." (interactive) (save-excursion (find-file (concat gnus-get-snmp-dir "/localhost")) (erase-buffer) (insert (shell-command-to-string "snmpwalk localhost system")) (save-buffer))) Then, you could add gnus-get-snmp-results to gnus-get-new-news-hook and create a nneething group set to gnus-get-snmp-dir and away ya go. I'll leave it as an lesson for the reader to extend the above example to take a list of hosts or to insert more appropriate headers at the top of the file to help with respect to a subject name, etc. Heh. -- "Ninjas aren't dangerous. They're more afraid of you than you are of them."