<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>Yes, this wasn't terribly hard at all, now was it? I
feel dumb.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>Server script (still need to beef it up with error
checking):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>export SOCKS5_USER=xxx</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>export SOCKS5_PASSWD=xxx</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>export DMZ_MACH=my.machine.dmz</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>export TMPFILE=something_or_other</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>runsocks scp ${DMZ_MACH}:tmp/msg.${DMZ_MACH}.txt
${TMPFILE}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>${BB} $(BBDISP} "`cat ${TMPFILE}`"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#ff0000 size=2>rm -f ${TMPFILE}</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>The one thing I appears to be missing doing things like
this is that "[Client data available]" link on the generated webpages. I
don't know why that's missing yet.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>And I also need to investigate the possible problems of
having the client script and the server script run asynchronously. It may
be possible to upload the same msg.XXX.txt file twice in a row if timings/delays
fall just right. I need to see how that would affect the RRD/graphing part
of Hobbit. It might confuse the heck out of it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>I'm getting there in my quest for an ssh replacement for
hobbitfetch. But comments and suggestions still greatly
appreciated!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=061141802-23062007><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Haertig, David F (Dave)
[mailto:haertig@avaya.com] <BR><B>Sent:</B> Friday, June 22, 2007 8:11
PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] hobbitfetch
replacement with ssh<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2>Oops. Looks like I missed the obvious
(again!).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2>bb accepts a message of type "client". What do you
bet I've answered my own question here? (again!) I think I'll try a
"client" message, and I bet I'll be pleasantly
surprized.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2>And if anyone wants to know the answer to the question
running around in your minds ... YES, it does hurt to be this stupid!
Ouch! ;-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=832040602-23062007><FONT face=Arial
color=#0000ff size=2>Thanks</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Haertig, David F (Dave)
[mailto:haertig@avaya.com] <BR><B>Sent:</B> Friday, June 22, 2007 7:27
PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] hobbitfetch
replacement with ssh<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>I'm still thinking
about my hobbitfetch/msgcache replacement I asked about a few weeks ago.
Using only ssh from the Hobbit server. Client machine is out in DMZ, thus
unable to talk to Hobbit server. I cannot run a listener (msgcache)
on the client (policy reasons, not technical ones).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>Here are my
thoughts. Maybe someone can expand on them or suggest a different
approach.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>(1) Run normal
Hobbit client on DMZ machine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>(1a) Client
appears to collect data just fine into
~hobbit/tmp/msg.XXX.txt</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>(1b) Client
would try to connect to Hobbit server to transmit this file, and fail.
Fine. Let it fail. It appears to do so
gracefully.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>Question: Any
simple way to make it stop trying to connect and still behave gracefully?
chmod 000 ~hobbit/bin/bb? Change BBDISP="" in
~hobbit/etc/hobbitclient.cfg?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>(2) Create a Hobbit
server script to use socks/ssh to retrieve that
~hobbit/tmp/msg.XXX.txt file from the client machine (it's trivial to write
such a thing)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>(3) Have this server
script feed the raw data retrieved in step (2) into the Hobbit listener (which
would be localhost:1984), such that it appears to the Hobbit listener the data
came in from the client computer in the normal manner.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>Step (3) is what I
don't quite know how to implement yet. I'm familiar with using the bb
command to send messages, but those are formatted messages, not raw data as
would be present in the retrieved msg.XXX.tmp file. I want to assure that
the guts of the Hobbit server processes this proxied client raw data just as if
the client had sent it instead of my custom server script.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=297365900-23062007>Is there
some trivial way to accomplish (3) that I'm just missing searching through
the man pages? I could have my custom server script parse the raw
data itself and then create individual Hobbit messages (to send via the bb
command), but that sounds like I'd be reinventing the wheel. Hobbit server
processes already know how to parse this data ... if I could just tap into that
part of it.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=297365900-23062007>Thanks!</SPAN></FONT></DIV></BODY></HTML>