xpaaccess(1)
π xpaaccess(1) β SAORD Documentation π
okay bestie, so this is xpaaccess, a lil tool from the SAORD Documentation crew, and it's basically the vibe check for XPA access points. here's everything you need, no cap π
β¨ NAME β¨
xpaaccess β see if a template matches any registered XPA access points π¦
πΈ SYNOPSIS πΈ
xpaaccess [-c] [-h] [-i nsinet] [-m method] [-n] [-t sval,lval] [-u
users] -v <template> [type]
π OPTIONS π
-cβ contact each access point individually, one by one, no shortcuts π-hβ print the help message, the classic cry for help-iβ access an XPA point on a different machine (this overrides theXPA_NSINETenvironment variable) π-mβ override theXPA_METHODenvironment variable-nβ return the number of matches instead of"yes"or"no"π’-t [s,l]β set the short and long timeouts (overridesXPA_[SHORT,LONG]_TIMEOUT) β°-u [users]β only allow XPA points from the specified users (overridesXPA_NSUSERS) π«Ά-vβ print info about each successful access point π-Vβ print info or error about each access point π--versionβ display the version and dip βοΈ
π§ DESCRIPTION π§
So xpaaccess returns "yes" to stdout (with a return error code if 1) whenever there are existing XPA access points that match the template β and the optional access type: g,i,s. Otherwise? It returns "no" (with a return error code of 0). Periodt. π
If -n is specified, the number of matches is returned instead β and that goes both to stdout and in the returned error code. And if -v is specified, each access point is displayed to stdout instead of the number of matches. iconic behaviour honestly.
By default, xpaaccess just contacts the xpans name server to find the list of registered access points that match the specified template. It also checks to make sure the specified types are supported by that access point. This is the fastest way to figure out which access points are available. lowkey the speedrun strat β‘
But listen β an access point might be registered yet not actually available yet, if, for example, the server program hasn't entered its event loop to process XPA requests. awkward!
To find access points that are guaranteed to be available for processing, use the -c (contact) switch. With this switch, xpaaccess contacts each matching XPA server (rather than the name server) to make sure the registered access point really is ready for processing. In this mode, if an access point is registered but not available, xpaaccess will pause for a period of time equal to the XPA_LONG_TIMEOUT, to give the server a chance to ready itself. By default, this timeout is 30 seconds. π
You can shorten the time of delay using the -t "short,long" switch. For example, to shorten the delay time to 2 seconds, use:
xpaaccess -c -t "2,2" ds9
The first argument is the short delay value, and it's ignored in this operation (sorry bestie, it's just there for the vibe). The second one is the long delay timeout. π°οΈ
Also note (and this is important, don't skip it π): the default xpaaccess method (no -c switch) does not check access control (acls). It only checks whether the access point is both registered with the xpans name server and provides the specified type of access. In other words, the default xpaaccess could return 'yes' when you might not actually have access. π« This mode also always returns 'yes' for the xpans name server itself, regardless of whether the name server is active. The -c (contact) switch, which contacts the access point directly, can and does check the access control (only for servers using version 2.1 and above) and also returns the real status of xpans. slay. π
π¦ SEE ALSO π¦
See xpa(n) for a list of XPA help pages π
and that's the whole thing bestie, go forth and access point responsibly πΈβ¨
version 2.1.15 β July 23, 2013 π mwah, love u, bye π
π¦ where this page comes from
- debian bookworm: xpa-tools 2.1.20-1 Β· MIT
- debian trixie: xpa-tools 2.1.20-3 Β· MIT
- ubuntu jammy: xpa-tools 2.1.20-1 Β· MIT
- ubuntu noble: xpa-tools 2.1.20-1build1 Β· MIT
- ubuntu questing: xpa-tools 2.1.20-3
- ubuntu resolute: xpa-tools 2.1.20-3build1 Β· MIT
- ubuntu stonking: xpa-tools 2.1.20-3build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms