TELNET-PROBE(1)
π TELNET-PROBE(1) β the lil' telnet-ish port prober π
okay so bestie, gather round, because this is telnet-probe from the General Commands Manual and she is lowkey iconic. lightest-weight telnet-like port probe you ever did see. no cap.
β¨ NAME β¨
telnet-probe β a lightweight, telnet-like port probe π
πΈ SYNOPSIS πΈ
$PCP_BINADM_DIR/telnet-probe [-cv?] host port
that's it. that's the whole vibe. host, port, maybe a flag or two, go off π
π¦ DESCRIPTION π¦
so what does she even do? okay so telnet-probe is the girl the pmdashping(1) daemons call when they need to actually connect to random local and remote service-providing daemons, so that response time and service availability info can be obtained. she's the plug. she makes the connection happen so the numbers can be gathered. periodt.
the host and port arguments are required, and they mean exactly the same thing as their telnet(1) equivalents. no reinventing the wheel here, we respect the classics π«Ά
now, the -c option makes telnet-probe do a connect(2) only. that means it skips the read(2) and write(2) exercise that would otherwise happen after connecting (more on that below π). it's giving "just knock on the door, don't come in."
once the telnet connection is established, here's the whole choreography, in order:
telnet-probereads fromstdinuntil end-of-file π- she writes all that input data to the telnet connection β¨
- next, she reads from the telnet connection until end-of-file, discarding whatever data she receives π (yes, literally discarding it, she does not care, she is unbothered)
- then
telnet-probeexits. bye bestie π
β οΈ for this to actually operate successfully, the input you pass throughtelnet-probeto the remote service must be sufficient to cause the remote service to close the connection once the last line of input has been processed. for example: ending withquitwhen you're probing SMTP on port 25. if the remote service never closes, she just sits there waiting, and that's not the vibe you want.
by default, telnet-probe will not produce any output. silent. mysterious. main character energy. the only exception is if there's an error β and in that case a diagnostic message can be displayed, but only in verbose mode β and the exit status will be non-zero, indicating a failure. so if you're seeing nothing and the exit code is 0, congrats, it worked π
π OPTIONS π
the available command line options are, and yes, there are only three, she's efficient:
-cβ Connect only, do not read or write. π just the handshake, nothing more.-vβ Enable verbose mode. π now she'll actually tell you things (diagnostics, specifically).-?β Display usage message and exit. β the classic "wait, how does this work again" button.
π₯ DIAGNOSTICS π₯
here's the tea on exit codes:
- if
telnet-probesucceeds, then0will be returned. β¨ slay. - if the attempt to establish a connection fails or is terminated, then a non-zero exit status is returned. π check your host, check your port, check your life choices.
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. iykyk.
on each installation, the file /etc/pcp.conf contains the local values for these variables. π
the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). so if you wanna point her at a different config, that's your girl. π§
π SEE ALSO π
PCPIntro(1), pmdashping(1), pmie(1), telnet(1), connect(2), read(2) and write(2). go read those next, bestie, they're all part of the lore π
and that's the whole page, fr fr. this gem is brought to you by Performance Co-Pilot (PCP), and yes, this is TELNET-PROBE(1) β we literally came full circle. stan a lightweight port probe. bye angel, go probe responsibly πβ¨ππ¦
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian bookworm: pcp 6.0.3-1.1
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- opensuse-leap 16.0: pcp-doc 6.2.0-160000.4.1 Β· GPL-2.0+ AND CC-BY-SA-3.0
- ubuntu jammy: pcp 5.3.6-1build1
- ubuntu noble: pcp 6.2.0-1.1build4
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms