configure port to listen for hl7 traffic

Posted on 2006-05-08
Last Modified: 2013-11-17
We would like to configure port #6010 to listen for real time HL7 traffic.  We are running aix 5.2.  DOes anyone know what steps to take?

    LVL 14

    Expert Comment

    A port cannot do something by itself. The "iptrace" program which is part of can capture data which is aimed at port 6010. However, be aware that even in "promiscuous mode", a given network adapter will not see all network traffic in a modern switched network. So depending on what you actually want to achieve, you may need to change your approach.

    Author Comment

    I just need the port to listen for traffic, we have a software package to deal with it from there.
    LVL 61

    Accepted Solution

    inetd does this
    add service entry in /etc/services:

    hlseven 6010/tcp
    hlseven 6010/udp

    add an entry in /etc/inetd.conf:
    # name type proto wait user path args
    hlseven    stream  tcp     nowait  someuser    /opt/HL7/bin/listener       listener -xxx

    now do refresh -s inetd or kill -HUP `cat /var/run/

    run netstat -an and look - it listens.

    inetd.conf is full of examples how to fit your program in environment. my example will spawn program once per connection and feed it with input received. You may have differnet needs.

    is that HL7 traffic protocol same as ???
    LVL 61

    Expert Comment

    Ok. does not set any transport requirement, so juggle around with inetd until it works.
    LVL 61

    Expert Comment

    Actually using port 6010 is not very good idea.
    This port is eventually used by ssh server side for secure X11 forwarding. note that and configure accordingly when you need X11 over SSH.
    LVL 61

    Expert Comment

    next step is setting access controls using tcp wrappers aka tcpd .... (ask your favorite search engine)

    Binary here:
    (not windows exe - InfoZIP SFX for AIX )

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now