Skip to Content
go-dicom(3)
Command line

echoscp

Runs a DICOM server that answers C-ECHO (the Verification service) and nothing else, until it is stopped.

When to use it

Use echoscp to check the other direction of a link: that a modality, a PACS or a firewall can reach this machine, with the AE title you give it. It stores nothing and answers no query, so it is safe to leave running while you configure a remote node.

To receive images, use storescp; for a server that also answers queries and retrieves, use qrscp. Both answer C-ECHO too.

The closest tools are dcmtk's storescp (which answers echoes) and pynetdicom's python -m pynetdicom echoscp.

Examples

Listen for echoes

go-dicom echoscp -port 11112
Starting DICOM Echo SCP
  AE Title: ECHOSCP
  Port:     11112
Listening for verification requests... (Ctrl+C to stop)

Ctrl+C stops it (Shutting down...). From another machine:

go-dicom echoscu -aec ECHOSCP myhost:11112
Requesting Association with myhost:11112 (AE: ECHOSCP)
Association accepted
Sending C-ECHO...
C-ECHO response: Success (0x0000)
Releasing Association

Answer to another AE title

go-dicom echoscp -port 11112 -aet MYNODE

The server answers only to its own title (ECHOSCP unless -aet sets another). An association called with any other title is rejected with reason 7, called AE title not recognized.

TLS only

go-dicom echoscp -port 2762 -tls -tls-cert node.crt -tls-key node.key

With -tls every association must come over TLS; -tls-cert and -tls-key are then required. -tls-ca makes clients present a certificate issued by one of its CAs (mutual TLS).

See each association

go-dicom echoscp -port 11112 -events -

The console shows only the startup lines. -events writes every PDU, the association's events and every DIMSE message as JSON lines, to a file or to standard output for -; see Events.

Notes

  • The server listens on every interface of the machine, on -port (default 11112). It has no caller list; storescp, qrscp and wlmscp take -allow.
  • It runs until interrupted (Ctrl+C or SIGTERM).

See also

Options

On this page