findscu(1)
okay bestie, welcome to findscu(1) from OFFIS DCMTK π
πΈ NAME
findscu β DICOM query (C-FIND) SCU. That's the whole vibe: it's the querying side of the DICOM conversation, and it's here to send C-FIND keys and collect the receipts. π«Ά
β¨ SYNOPSIS
findscu [options] peer port [dcmfile-in...]
π DESCRIPTION
Okay so findscu is an SCU for the Query/Retrieve Service Class and the Basic Worklist Management Service Class. It only supports query functionality using the C-FIND message β no cap, that's its whole lane. It sends query keys to an SCP and awaits responses. You can use this application to test SCPs of the Query/Retrieve and Basic Worklist Management Service Classes. π
π PARAMETERS
peerβ hostname of DICOM peer.portβ tcp/ip port number of peer.dcmfile-inβ DICOM query file(s).
π OPTIONS
bestie, there are a LOT of options β here's every single one, grouped exactly how the page groups them. β¨
π§Έ general options
-h,--helpβ print this help text and exit. π--versionβ print version information and exit.--argumentsβ print expanded command line arguments.-q,--quietβ quiet mode, print no warnings and errors. Shhh π€«-v,--verboseβ verbose mode, print processing details. Tell me everything π-d,--debugβ debug mode, print debug information. Full detective mode π-ll,--log-level[l]evel: string constantβ use level l for the logger. The values are(fatal, error, warn, info, debug, trace).-lc,--log-config[f]ilename: stringβ use config file f for the logger.
π network options
π override matching keys:
-k,--key[k]ey: gggg,eeee="str", path or dictionary name="str"β override matching key.
ποΈ query information model:
-W,--worklistβ use modality worklist information model (default).-P,--patientβ use patient root information model.-S,--studyβ use study root information model.-O,--psonlyβ use patient/study only information model.
π‘ IP protocol version:
-i4,--ipv4β use IPv4 only (default).-i6,--ipv6β use IPv6 only.-i0,--ip-autoβ use DNS lookup to determine IP protocol.
π·οΈ application entity titles:
-aet,--aetitle[a]etitle: stringβ set my calling AE title (default:FINDSCU).-aec,--call[a]etitle: stringβ set called AE title of peer (default:ANY-SCP).
𧬠post-1993 value representations:
+u,--enable-new-vrβ enable support for new VRs (UN/UT) (default).-u,--disable-new-vrβ disable support for new VRs, convert toOB.
π proposed transmission transfer syntaxes:
-x=,--propose-uncomprβ propose all uncompressed TS, explicit VR with local byte ordering first (default).-xe,--propose-littleβ propose all uncompressed TS, explicit VR little endian first.-xb,--propose-bigβ propose all uncompressed TS, explicit VR big endian first.-xd,--propose-deflatedβ propose deflated explicit VR little endian TS and all uncompressed transfer syntaxes.-xi,--propose-implicitβ propose implicit VR little endian TS only.
ποΈ deflate compression level (only with --propose-deflated):
+cl,--compression-level[l]evel: integer(default:6) β0=uncompressed,1=fastest,9=best compression.
π°οΈ other network options:
-to,--timeout[s]econds: integer(default: unlimited) β timeout for connection requests.-ts,--socket-timeout[s]econds: integer(default:60) β timeout for network socket (0for none).-ta,--acse-timeout[s]econds: integer(default:30) β timeout for ACSE messages.-td,--dimse-timeout[s]econds: integer(default: unlimited) β timeout for DIMSE messages.-pdu,--max-pdu[n]umber of bytes: integer (4096..131072)β set max receive pdu to n bytes (default:16384).--repeat[n]umber: integerβ repeat n times.--abortβ abort association instead of releasing it.--cancel[n]umber: integerβ cancel after n responses (default: never).
π transport layer security (TLS) options
π§΅ transport protocol stack:
-tls,--disable-tlsβ use normal TCP/IP connection (default).+tls,--enable-tls[p]rivate key file, [c]ertificate file: stringβ use authenticated secure TLS connection.+tla,--anonymous-tlsβ use secure TLS connection without certificate.
π private key password (only with --enable-tls):
+ps,--std-passwdβ prompt user to type password on stdin (default).+pw,--use-passwd[p]assword: stringβ use specified password.-pw,--null-passwdβ use empty string as password.
π key and certificate file format:
-pem,--pem-keysβ read keys and certificates as PEM file (default).-der,--der-keysβ read keys and certificates as DER file.
ποΈ certification authority:
+cf,--add-cert-file[f]ilename: stringβ add certificate file to list of certificates.+cd,--add-cert-dir[d]irectory: stringβ add certificates in d to list of certificates.+crl,--add-crl-file[f]ilename: stringβ add certificate revocation list file (implies--enable-crl-vfy).+crv,--enable-crl-vfyβ enable leaf CRL verification.+cra,--enable-crl-allβ enable full chain CRL verification.
π‘οΈ security profile:
+ph,--list-profilesβ list supported TLS profiles and exit.+pg,--profile-8996β BCP 195 RFC 8996 TLS Profile (default).+pm,--profile-8996-modβ Modified BCP 195 RFC 8996 TLS Profile (only available if underlying TLS library supports all TLS features required for this profile).+py,--profile-bcp195-ndβ Non-downgrading BCP 195 TLS Profile (retired).+px,--profile-bcp195β BCP 195 TLS Profile (retired).+pz,--profile-bcp195-exβ Extended BCP 195 TLS Profile (retired).+pb,--profile-basicβ Basic TLS Secure Transport Connection Profile (retired) (only available if underlying TLS library supports3DES).+pa,--profile-aesβ AES TLS Secure Transport Connection Profile (retired).+pn,--profile-nullβ Authenticated unencrypted communication (retired, was used in IHE ATNA).
π ciphersuite:
+cc,--list-ciphersβ list supported TLS ciphersuites and exit.+cs,--cipher[c]iphersuite name: stringβ add ciphersuite to list of negotiated suites.
π·οΈ server name indication:
--no-sniβ do not use SNI (default).--request-sni[s]erver name: stringβ request server name s.
π² pseudo random generator:
+rs,--seed[f]ilename: stringβ seed random generator with contents of f.+ws,--write-seedβ write back modified seed (only with--seed).+wf,--write-seed-file[f]ilename: string (only with --seed)β write modified seed to file f.
π€ peer authentication:
-rc,--require-peer-certβ verify peer certificate, fail if absent (default).-ic,--ignore-peer-certβ don't verify peer certificate.
π output options
ποΈ general:
-od,--output-directory[d]irectory: string(default:".") β write output files to existing directory d.
π©Ή automatic data correction:
+dc,--enable-correctionβ enable automatic data correction.-dc,--disable-correctionβ disable automatic data correction (default).
π¨ C-FIND responses:
+sr,--show-responsesβ always output responses to the logger.-sr,--hide-responsesβ do not output responses to the logger.-X,--extractβ extract responses to DICOM file (rsp0001.dcm...).-Xx,--extract-xmlβ extract responses to XML file (rsp0001.xml...).-Xs,--extract-xml-single[f]ilename: stringβ extract all responses to given XML file f.-Xlo,--limit-output[n]umber: integerβ limit number of responses extracted to file to n (default: unlimited).
πΈ NOTES πΈ
okay so here's the tea, bestie β β every single file you drop on the command line gets sent to the SCP as part of a C-FIND request. Like, that's its whole job. The query file has to be a valid DICOM data set containing the dataset part of a C-FIND-RQ message. You could, for instance, make that query file with the dump2dcm utility from a lil script like this one:
# query patient names and IDs
(0008,0052) CS [PATIENT] # QueryRetrieveLevel
(0010,0010) PN [] # PatientName
(0010,0020) LO [] # PatientID
Individual attributes of each file you send can be modified or supplemented using the -k option. So like, this command:
findscu -P -k "(0010,0010)=HEWETT*" caesar 5678 patqry.dcm
will β when it's sent to the SCP caesar at TCP/IP port 5678 β cause any PatientName attribute in patqry.dcm to have the value "HEWETT*". If that attribute is already there, it gets replaced. If it's not there, it gets inserted. slay π
The -k option can show up more than once, no cap. And the value part (everything after the =) may be absent, which makes the attribute get sent with zero length.
So, in earlier versions of findscu, the tag keys were specified without braces around the group and element number, e.g. "0010,0010" instead of "(0010,0010)". Switching to the new syntax is recommended, but just so you know β the old syntax still works. lowkey iconic of it π«Ά
Also -k accepts dictionary names instead of element tags for specifying DICOM elements. So the findscu call above then reads like this:
findscu -P -k PatientName="HEWETT*" caesar 5678 patqry.dcm
It's also possible to specify sequences, items and nested attributes using the -k option. In those cases you have to use a special "path" notation, like:
findscu -W -k "(0040,0100)[0].Modality=CT" caesar 5678
This call queries a worklist server at host caesar for any planned procedures for CT modalities by specifying tag (0040,0100) "Scheduled Procedure Step Sequence" and an attribute "Modality" in the first item of this sequence with value "CT". The details on this path notation live in the documentation of dcmodify. iykyk β¨
If no file is specified on the command line, the query has to be specified completely with one or more -k options. And if you provide multiple query files, findscu will send multiple C-FIND requests to the SCP. busy girl behavior π
Each set of response identifiers it receives gets output to the logger β unless option --hide-responses, any of the below --extract variants, --quiet or an appropriate logger configuration is used. In those cases, you can force the output to the logger with option --show-responses. main character energy.
In addition, the response datasets can also be extracted as individual DICOM files (using option --extract) or XML files (using option --extract-xml). The output format of the latter is described by the file dcm2xml.dtd (starting with the top-level element "data-set"). For XML files, the Specific Character Set is mapped automatically to an appropriate XML encoding. If that's not possible β e.g. in the case of ISO 2022 character sets β non-ASCII characters and those below #32 are stored as "&#nnn;" where "nnn" refers to the numeric character code. Please note that this might lead to invalid character entity references (such as "" for ESC) and will cause most XML parsers to reject the document. π so watch out for that one.
Alternatively, all response datasets of an association can be extracted to a single XML file using option --extract-xml-single. The top-level element of the XML document is "responses" (with a "type" attribute of "C-FIND"). The individual datasets are stored as described above. If support for character set conversion is enabled, UTF-8 encoding is used, i.e. all datasets are converted to UTF-8 encoding (which is strongly recommended in order to avoid issues with non-ASCII characters when different character sets are used). do it for the vibes, honestly π¦
π« DICOM Conformance π«
The findscu application supports the following SOP Classes as an SCU:
FINDPatientRootQueryRetrieveInformationModel 1.2.840.10008.5.1.4.1.2.1.1
FINDStudyRootQueryRetrieveInformationModel 1.2.840.10008.5.1.4.1.2.2.1
FINDPatientStudyOnlyQueryRetrieveInformationModel 1.2.840.10008.5.1.4.1.2.3.1
FINDModalityWorklistInformationModel 1.2.840.10008.4.31
Wait β nope, hold up, that last one is 1.2.840.10008.5.1.4.31, my bad, keep it exact bestie:
FINDModalityWorklistInformationModel 1.2.840.10008.5.1.4.31
The findscu application will propose presentation contexts for one of the abovementioned supported SOP Classes depending on command line options (-P, -S, -O or -W). Basically, the following transfer syntaxes are supported:
LittleEndianImplicitTransferSyntax 1.2.840.10008.1.2
LittleEndianExplicitTransferSyntax 1.2.840.10008.1.2.1
DeflatedExplicitVRLittleEndianTransferSyntax 1.2.840.10008.1.2.1.99 (*)
BigEndianExplicitTransferSyntax 1.2.840.10008.1.2.2
(*) if compiled with zlib support enabled (see --version output).
Which transfer syntaxes are actually proposed, and in what order, can be specified with the --propose options. And ngl β the findscu application does not support extended negotiation. it said no thanks π
π LOGGING π
The level of logging output of the various command line tools and underlying libraries can be specified by you, the user. By default, only errors and warnings are written to the standard error stream. Using option --verbose also reports informational messages like processing details. Option --debug can be used to get more details on the internal activity, e.g. for debugging purposes. Other logging levels can be selected using option --log-level. In --quiet mode only fatal errors are reported β and in such very severe error events, the application will usually terminate. For more details on the different logging levels, see the documentation of module "oflog". π
In case the logging output should be written to file (optionally with logfile rotation), to syslog (Unix) or the event log (Windows), option --log-config can be used. This configuration file also allows for directing only certain messages to a particular output stream and for filtering certain messages based on the module or application where they're generated. An example configuration file is provided in <etcdir>/logger.cfg. π
β¨οΈ COMMAND LINE β¨οΈ
All command line tools use the following notation for parameters: square brackets enclose optional values (0-1), three trailing dots indicate that multiple values are allowed (1-n), and a combination of both means 0 to n values.
Command line options are distinguished from parameters by a leading + or - sign, respectively. Usually, order and position of command line options are arbitrary (i.e. they can appear anywhere). However, if options are mutually exclusive, the rightmost appearance is used. This behavior conforms to the standard evaluation rules of common Unix shells. π
In addition, one or more command files can be specified using an @ sign as a prefix to the filename (e.g. @command.txt). Such a command argument is replaced by the content of the corresponding text file (multiple whitespaces are treated as a single separator unless they appear between two quotation marks) prior to any further evaluation. Please note that a command file cannot contain another command file β no inception, bestie π This simple but effective approach allows you to summarize common combinations of options/parameters and avoids longish and confusing command lines (an example is provided in file <datadir>/dumppat.txt).
πΏ ENVIRONMENT πΏ
The findscu utility will attempt to load DICOM data dictionaries specified in the DCMDICTPATH environment variable. By default β i.e. if the DCMDICTPATH environment variable is not set β the file <datadir>/dicom.dic will be loaded unless the dictionary is built into the application (which is the default for Windows).
The default behavior should be preferred, and the DCMDICTPATH environment variable should only be used when alternative data dictionaries are required. The DCMDICTPATH environment variable has the same format as the Unix shell PATH variable in that a colon (":") separates entries. On Windows systems, a semicolon (";") is used as a separator. The data dictionary code will attempt to load each file specified in the DCMDICTPATH environment variable. It is an error if no data dictionary can be loaded. β οΈ
Depending on the command line options specified, the findscu utility will also attempt to load character set mapping tables. This happens when DCMTK was compiled with the oficonv library (which is the default) and the mapping tables are not built into the library (default when DCMTK uses shared libraries).
The mapping table files are expected in DCMTK's <datadir>. The DCMICONVPATH environment variable can be used to specify a different location. If a different location is specified, those mapping tables also replace any built-in tables. ποΈ
π FILES π
<datadir>/dcm2xml.dtdβ Document Type Definition (DTD) file
π SEE ALSO π
movescu(1), dump2dcm(1), dcmodify(1)
Β©οΈ COPYRIGHT Β©οΈ
Copyright (C) 1994-2026 by OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany.
and that's the whole page, bestie!! πβ¨ this is findscu version 3.7.1, dated Sat Oct 17 2026 09:34:01 β go forth and query, you absolute icon ππ
π¦ where this page comes from
- arch rolling: dcmtk 3.7.1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms