GETZONES(1)
β¨ NAME β¨
okay bestie, this is getzones β the lil Netatalk AFP Fileserver Manual icon that lists AppleTalk zone names for you π
πΈ SYNOPSIS πΈ
getzones [-g | -l | -m | -q network | -z zone] [-c Mac charset]
[address]
π DESCRIPTION π
so getzones is literally your girl for pulling up a list of AppleTalk zone names, and it does it using the Zone Information Protocol (ZIP) π
it sends a GetZoneList request to an AppleTalk router. and by default? it just sends that request to the locally running atalkd(8) β no extra work required from you, periodt β¨
π OPTIONS π
-gβ grab the current default zone plus the valid network range for the current network. it does this by sending a ZIPGetNetInforequest. β οΈ heads up: only seed routers respond toGetNetInfo, so the usual idiom is to broadcast it.-lβ list the local zones. this one sends aGetLocalZonesrequest.-mβ list the name of the local zone only. accomplished by sending a ZIPGetMyZonerequest.-qnetwork β list the zones available to a given network range, via a ZIP Query. β οΈ lowkey important: to query the zones available to an extended network, generally the first network number in the range must be used.-zzone β verifies whether zone is a valid zone for this network by sending aGetNetInfo. if zone is valid, it exits with0; if zone is not valid, it exits with2. it also prints the network configuration, including β if the zone is invalid β the default zone to use instead of the one you requested.-cMac charset β sets the Macintosh character set to use when interpreting zone names. if you don't specify it, it defaults toMacRoman.- address β contact the AppleTalk router at address. address is parsed by
atalk_aton(3).
π EXAMPLES π
show all zones on the AppleTalk internetwork β obsessed with how simple this is:
example$ getzones
Ethernet
LocalTalk
AirTalk
example$
get default zone and network configuration for current network from whichever router is seeding this network:
example$ getzones -g 0.255
Network range: 3-10
Flags (0xa0): requested-zone-invalid only-one-zone
Requested zone:
Zone multicast address: 09:00:07:00:00:a8
Default zone: Ethernet
example$
check whether OtherNet is a valid zone for the current network:
example$ getzones -z Othernet 0.255 >/dev/null || echo "bad zone"
bad zone
example$
π«Ά SEE ALSO π«Ά
π AUTHOR π
Contributors to the Netatalk Project (https://netatalk.io/contributors)
and that's the whole vibe, bestie π this was Netatalk 4.5.1, the GETZONES(1) era β slay, stan, and go get those zone names π
π¦ where this page comes from
- ubuntu stonking: atalkd 4.5.1~ds-1 Β· MIT~UMICH
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms