FUNCTION::REMOTE_ID(3stap)
β¨ NAME β¨
function::remote_id β the index of this instance in a remote execution π
πΈ SYNOPSIS πΈ
remote_id:long()
π ARGUMENTS π
None, bestie. Not a single one. She takes no args, she just knows π«Ά
π DESCRIPTION π
okay so picture this: you got a whole swarm of script executions happening at once, all from one big stap --remote A --remote B ... situation, and you need to know which one is ME. That's literally what this function is for.
remote_id hands you back a number in the range 0..N β the unique index of this particular script execution among all of them. It's the exact same number that stap --remote-prefix would print, no cap. Same digits, same energy β¨
But listen, it's giving plot twist in two cases, and in BOTH of them she just returns -1:
- the script was not launched with
stap --remoteπ - the remote
staprun/stapshare older than version 1.7 π
so if you get a -1, don't panic β it's not a bug, it just means one of those two things happened. periodt.
π SEE ALSO π
that's the whole page, you ate that π stay iconic, mwah π
SystemTap Tapset Reference β Version of September 2026 π¦β¨
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms