Difference between revisions of "DAQ Networking"

From PREX Wiki
Jump to: navigation, search
(Hall A)
Line 1: Line 1:
See also - [[DAQ_Doc_Portal]]
= DAQ Network Components =
= DAQ Network Components =
== Portserver ==
== Portserver ==

Revision as of 20:35, 29 July 2018

See also - DAQ_Doc_Portal

DAQ Network Components


A portserver is a telnet (insecure network interface) capable, serial cable connected, network interface. The advantage to using serial connections is it allows a network connection during boot and enables easy remote power cycling and NVRAM restoration to ROCs.

Login, Log Off, Kick Idles

Command Line Functions


Console Server

SSH to use telnet

Raspberry Pi


Ethernet Switch

NFS Network File System

Main Article - NFS Installation Guide

To mount an NFS filesystem to a ROC (linux or VXworks) there are several steps involved (see How To Forge - NFS Guide)

  • Have NFS serve the CODA 2.6.2 directory to localhost (
  • Mount it, in a different location (pretending to me the VME controller):
    • example /etc/exports:
/coda/2.6.2/    localhost(rw,sync,no_root_squash,no_subtree_check)
mount it /somewhere_else
    • (as root)
mkdir /somewhere_else 
mount localhost:/coda/2.6.2 /somewhere_else


For linux systems:

  • Make sure that the ethernet ports being used are configured to DHCP over the ethernet network
    • Edit the /etc/sysconfig/network-scripts/ifcfg-eth# configuration files are correctly set to allow the desired ethernet port to DHCP on-boot (on RHEL and Centos only)
    • Acquire a static IP from the ethernet network you are using (if its a LAN you manage set these in the router or switch yourself)
    • Identify the hostnames and IPs of the local machine and remote server you want to connect to in the /etc/hosts file
    • Make sure the /etc/sysconfig/network file has the localhost's hostname set in it (can also be done with the 'host' unix command)
    • On the NFS host server ensure that the /etc/exports file correctly targets the IPs or entire network (using .0 as the last digit of the IP address) that you want to server the NFS contents to
      • After updating a network connection or target computer in /etc/exports run the "service autofs restart" or "exports -a" command as root
      • Make sure the /etc/hosts file includes the same information for all computers on the local network involved in the NFS file sharing, with assigned to 'localhost' on all
    • Make sure that the permissions for the shared files allow for appropriate read, write, and execute privileges for all users and groups, on local and remote computers
      • To check the user and group permissions are set correctly, the naming conventions can be deceptive - use ls -n to show the number of users and groups, which is what really matters
      • Even if two separate computers have the same user and group names but their user and group numbers are different you are able to tell this and assign the rwx privileges correctly on the shared folders (using 'chown -R' and 'chmod -R 777' or whatever correct permissions you want to set)

For VXworks systems:

  • The same things apply as for ethernet network mounted file systems, except that VXworks uses the ~/.rhosts file to determine which IPs to allow to mount an NFS shared folder
    • Therefore, follow the /etc/exports file convention, except with ~/.rhosts instead for VXworks ROC file sharing
    • The ROC_name and ROC_name.jlab.org addresses both need to be listed for it to work

DAQ Network Map

For History, see DAQ Network Map

As of July 27th 2018 the DAQ network map is:

Location       - SSH Hostname - Software ROC# - Hardware ROC # and Branch - Serial Access Method
RHRS           - 'happex7'    - 26     - 02 branch 4 - serial port via portserver 'telnet hatsv3 2002' port 2
LHRS           - 'hallavme14' - 25     - 05 branch 4 - serial port via portserver 'telnet hatsv21 2004' port4 
TS             - 'happex4'    - no ROC - no ROC      - serial port via network console server 'ssh adaq:ttyS8\@acons1'
Counting House - 'halladaq6'  - 23     - 00 branch 1 - serial port via network console server 'ssh adaq:ttyS4\@acons1' 
Injector       - 'qweak1'     - 24     - 00 branch 2 - serial port via 'telnet/minicom' via network raspberry pi 'ssh pi@rpi12'

Work Computers

Hall A Counting House

Location       - SSH Hostname     - Username

Hall A

Location       - SSH Hostname     - Username
LHRS           - halla-lpt1       - ahut
RHRS           - halla-lpt2       - ahut
RHRS           - rpi4             - pi

Phone Numbers

Machine Control Center (MCC) - (757) 269 7047/7048
Security Guards (Emergency)  - (757) 269 5822
Security Guards (Normal)     - (757) 269 7169