[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ldm configuration file
- Subject: Re: ldm configuration file
- Date: Thu, 25 Sep 2003 12:59:25 -0600
Hi Youngsun,
Here's a very simple example of relaying a simple test product. First, some
terms: your "upstream" machine is 190.1.5.124 and your "downstream" machine is
190.1.7.99.
Let's say you you want to relay a file called data.exp that contains the string
"This is a test." and you want to file it when it is received. Assume that
you want it to have a product ID of "testProduct". You need to assign it to a
feed type. The EXP
feed type is for experimentation.
First, configure the two machines:
1. On your downstream machine in your ldmd.conf file you need a line like this:
request EXP ".*" 190.1.5.124 PRIMARY
Also, you need a line like this:
exec "pqact"
This last line will invoke the pqact program, which receives products out of
the product queue and does things with them.
2. Also, on your downstream machine in your pqact.conf file you need a line
like this:
EXP ".*" FILE <some_path_relative_to_LDM_home>
This line will cause pqact to file any products it receives in the EXP feed to
a file. In this simple case, it will be the same file for every product that
is received.
3. On your upstream machine in your ldmd.conf file you need a line like this:
allow EXP 190.1.7.99
4. Now, restart your LMDs on both machines so they pick up the new
configuration.
At this point, check the file ~ldm/logs/ldmd.log. On the upstream host you'll
see something like the following. (I've cut and pasted from other log entries,
so things won't look identical.)
Aug 19 23:13:26 190.1.5.124 imogene(feed)[14280]: up6.c:331: Starting
Up(6.0.14/6): 20030819224600.461 TS_ENDT {{EXP, ".*"}}
Aug 19 23:13:26 190.1.5.124 imogene(feed)[14280]: topo:
imogene.unidata.ucar.edu CONDUIT
On the downstream machine you should see messages similar to this:
Sep 22 23:47:46 190.1.7.99 rpc.ldmd[8229]: Starting Up (version: 6.0.14; built:
Aug 14 2003 13:21:05)
Sep 22 23:47:46 190.1.7.99 190.1.5.124[8233]: Starting Up(6.0.14): 190.1.5.124:
TS_ZERO TS_ENDT {{EXP, ".*"}}
Sep 22 23:47:46 190.1.7.99 190.1.5.124[8233]: Desired product class:
20030922234646.560 TS_ENDT {{EXP, ".*"}}
Sep 22 23:47:46 190.1.7.99 190.1.5.124[8233]: Connected to upstream LDM-6
Sep 22 23:47:46 190.1.7.99 190.1.5.124[8233]: Upstream LDM is willing to feed
Now, relay the data file:
1. On your upstream machine you ingest the file using a command like this:
pqinsert -vl - -f EXP -p testProduct data.exp
It should return with something like this:
/local/ldm% pqinsert -vl - -f EXP -p testProduct data,exo
pqinsert: 16 20030925172257.559 EXP 000 testProduct
Now your product is in the product queue. And, it should have been relayed to
your downstream machine. Look for the file in <some_path_relative_to_LDM_home>.
2. On either machine you can confirm that the product is in the queue using
pqcat, which retrieves products from a product queue. You can do:
pqcat -f EXP
Here's what I get back when I do that:
/local/ldm% pqcat -f EXP
Sep 25 17:24:17 pqcat: Starting Up (5474)
This is a test.
Sep 25 17:24:22 pqcat: Exiting
Sep 25 17:24:22 pqcat: Number of products 1
Hope this helps! Good luck! Let me know if you have further questions.
Anne
> Youngsun Jung wrote:
>
> Anne,
> I would like to data transferring test tomorrow.
> Could you help me to modify some configuration files for me?
>
> I want to transfer data from 190.1.5.124 to 190.1.7.99.
> Could you teach me how to change "ldmd.conf" and "pqact.conf" for this test?
> I am reading "Site Manager's Guide"
> but thses kind of modification is not easy for me...
> It will take some time to fully understand this guide
> and I have no time right now...
> Our data transferring should have started a few weeks ago...
> Help me please~
>
> Youngsun
--
***************************************************
Anne Wilson UCAR Unidata Program
address@hidden P.O. Box 3000
Boulder, CO 80307
----------------------------------------------------
Unidata WWW server http://www.unidata.ucar.edu/
****************************************************