SLPTOOL(1)
π slptool β the SLP command line tool, bestie edition π
okay so. you know how SLP (Service Location Protocol) is out here letting services find each other on a network like it's a group chat? yeah. slptool is literally the command line way to slide into that group chat β find services, find their attributes, register stuff, deregister stuff, ask about scopes, all of it. this page is slptool from the User Commands section of the manual. let's get into it π«Ά
β¨ SYNOPSIS β¨
slptool [options] command-and-arguments
so the vibe is: some options, then a command, then whatever arguments that command wants. that's it. that's the whole shape of it. π
πΈ OPTIONS πΈ
these are the lil flags you can put before your command, lowkey optional but highkey useful:
-v(or--version) β shows you the versions ofslptooland OpenSLP. like a little name-tag moment. β¨-s(or--scope) β followed by a comma-separated list of scopes. yes, comma-separated, don't be shy with the commas.-l(or--language) β followed by a language tag.-t(or--time) β followed by a lifetime tag.-i(or--interfaces) β followed by a comma-separated list of interfaces. multiple interfaces? she can do that. π-u(or--unicastifc) β followed by a single interface. one. just one. that's the whole point of theuin unicast, bestie.
π¦ COMMANDS (aka command-and-arguments) π¦
here's the menu of things you can actually do:
findsrvsservice-type [filter] β go find some services, optionally filtered.findattrsurl [attrids] β go find attributes for a URL, optionally narrowed down to specific attribute IDs.findsrvtypes[authority] β find service types, with an optional authority.findscopesβ find the scopes. that's it. no arguments, she just goes. πregisterurl [attrs] β put a service on the map, with optional attributes.deregisterurl β take it off the map.getpropertypropertyname β ask about a property by name.
π EXAMPLES π
these are the real, actual, character-for-character examples. copy away, bestie. π
register a service with some attributes:
slptool register service:myserv.x://myhost.com
"(attr1=val1),(attr2=val2)"
find services of a given type:
slptool findsrvs service:myserv.x
find services, filtered by an attribute:
slptool findsrvs service:myserv.x "(attr1=val1)"
find services across a comma-separated list of interfaces:
slptool -i 10.77.13.240,192.168.250.240 findsrvs service:myserv.x
find services using a single unicast interface:
slptool -u 10.77.13.237 findsrvs service:myserv.x "(attr1=val1)"
find all attributes for a service URL:
slptool findattrs service:myserv.x://myhost.com
find one specific attribute:
slptool findattrs service:myserv.x://myhost.com attr1
find a specific attribute, but across a list of interfaces:
slptool -i 10.77.13.243 findattrs service:myserv.x://myhost.com attr1
find a specific attribute over one unicast interface:
slptool -u 10.77.13.237 findattrs service:myserv.x://myhost.com attr1
deregister the service (bye bestie π):
slptool deregister service:myserv.x://myhost.com
grab a property:
slptool getproperty net.slp.useScopes
ngl, that's the whole page. no cap. every flag, every command, every example is up there β I didn't skip a single one. π
and that's a wrap on slptool!! this page is from slptool 2.0.beta2, dated May 2013 β an icon, a legend, and honestly kind of a beta era moment. go register something, go find something, go be the main character of your local network. periodt. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- centos-stream 10: openslp 2.0.0-38.el10 Β· BSD-3-Clause
- centos-stream 9: openslp 2.0.0-30.el9 Β· BSD
- centos-stream 9: openslp 2.0.0-30.el9 Β· BSD
- fedora 43: openslp 2.0.0-40.fc43 Β· BSD-3-Clause
- fedora 43: openslp 2.0.0-40.fc43 Β· BSD-3-Clause
- fedora 44: openslp 2.0.0-41.fc44 Β· BSD-3-Clause
- fedora 44: openslp 2.0.0-41.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms