![]() |
![]() |
||||||||||
| You are here: IRIS > Software and Manuals > NetDC |
NetDC manual [ back ] [ forward ]10.0 NETDC INSTALLATION AND SETUP NetDC is a software distribution that contains a number of source code directories, each with their own "makefiles" for building executables. There is also online documentation included. A running NetDC system will take shape with the data center's administrator building the system up from the NetDC distribution. Installation and setup will involve the following steps:
Let us discuss each step in detail:
Ask your system administrator to set up a user account called "netdc". The account must be visible to the machine receiving email for NetDC and the account must also have a mail spool set up for it. The account will require a home directory and can run any startup shell desired. In order to make installation easy, the "netdc" username should be accessible to whoever installs and maintains the software, through such avenues as "login" or "su". Either the administrator of the NetDC software knows the password to the account or that person has root access and can just drop into the account. In the second case, the password can be an unknown value, for security purposes. As user "netdc", copy the NetDC tar distribution file to a write-capable directory (like the "netdc" home directory) and type:
where <netdc_file> is the base name of the tar file. The tar archive will extract to the local directory only. What is written are the source code directories from which the executables will be built. The directories you will see there are: date_calc -- code for performing date calculations doc -- contains online documentation ftpcl -- code for the ftp client netdc_req -- the main code for NetDC a majority of the functionality can be found here There may be other directories present, that will be provided with enhancements and upgrade to the code. In each of the source code directories, there is a file called "Makefile", that needs to be edited before running. This can be done after setting up the processing and FTP directories.
This is a directory for writing temporary files. NetDC will do its best to keep the "tmp" and "requests" directories cleaned up, but it will pay to check in on it now and then to see if it needs files to be removed by hand. Set up a directory for shipments to be placed for anonymous FTP access. Make sure this directory is write-capable by the "netdc" username. Also, it is assumed that your site has its own cleanup methods in place for FTP directories to remove old files. The location of this FTP directory will be specified in the makefile for the main NetDC routines. Fig. 10.1 illustrates a typical anonymous FTP layout:
In your NetDC home directory, type:
This will be the directory where the binaries are referenced. This is referred to as BIN_DIR in the NetDC configuration makefiles. Inside, soft-links can be made to each of the executables that have been built in the source directories. This can be done by hand using the "ln" command, or done with a script that Is provided, called "setup_links.csh". In the NetDC home directory, you will find "setup_links.csh". To run it, simply type:
to have soft-links placed in the bin directory. This will include links to all files that have executable status. The other alternative is to copy all of the executables to the "bin" directory. The installing administrator will have to do some customized coding to interface the NetDC request processing routines with their local data center's information base. The three main routines that will need to be customized are "process_inv", "process_resp", and "process_data". Example code is provided in C source format and it is recommended that this code is modified for use as opposed to writing the interface code from scratch. This code will be called from their respective "local" functions, which are represented in the source files "local_inv.c", "local_resp.c", and "local_data.c". More detail will be provided on interface code later in the manual.
NetDC manual [ back ] [ forward ]
introduction
overall concept request
format request reception and delegation |
About
IRIS
| Members | Programs
| USArray | Seismic
Monitor | Earthquakes | SeismoArchives |
|||
Send comments to the |