LATCP(8)

πŸ“¦ version 1.35, in ubuntu jammy

πŸ’– LATCP β€” the LAT Control Program πŸ’–

okay so bestie, welcome to LATCP(8) β€” that's the System Manager's Manual page for latcp, and honestly? she's a whole vibe. let's get into it πŸ’…


✨ NAME ✨

latcp β€” the LAT Control Program πŸŽ€

🌸 SYNOPSIS 🌸

latcp [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

latcp is the control program for latd(8). like, that's her whole job β€” she's the one holding the aux cord for the LAT daemon. 🎧

πŸ’œ OPTIONS πŸ’œ

  • -s β€” Start the LAT daemon. this is literally the only way to start LAT, bestie. do not try to run latd directly or you may get unexpected behaviour (it's giving chaos, and not the cute kind). latcp -s runs the file /etc/latd.conf as a shell script (using /bin/sh). any customisations you need to do to the LAT system should go in that file as latcp commands. and the latcp command should be invoked using the environment variable $LATCP. an example latd.conf file is shipped with the package and shown in the man page latd.conf(5). latcp -s passes any extra switches onto latd itself, so you can customise latd that way β€” but ngl, latd.conf is recommended. 🫢
  • -h β€” Halts latd. ⚠️ this will kill any active sessions without warning. no goodbye, no nothing. just poof.
  • -A β€” Create a local LAT service or reverse LAT port. ✨

the syntax for creating a login service is:

latcp -A -a service [-i description] [-r rating] [-s] [-C
command] [-u user]

the -s flag indicates that the service rating is static. without this, the service rating is regarded as a maximum and will be reduced according the the load average of the machine.

the -C flag indicates a command to run when a user connects to the service β€” by default this is /bin/login.

the -u flag specifies a user to run the above command as. by default this will be root.

the syntax for creating a reverse LAT port is:

latcp -A -p tty -V learned_service [-R rem_port] [-H rem_node]
[-Q] [-8]

the tty name should start /dev/lat and must not exist. 🚫

the -Q flag indicates that connections to the service is queued. if you connect to a queued service and it is busy then your connection will be forced to wait until it is available. you must use this flag for printer services on DECserver 90L terminal servers, and in this case the service name must also be empty.

NOTE that the -Q flag is the opposite way round to that on Tru64 Unix(r). 😭 don't get caught slipping.

the -8 flag tells latd not to muck about with the data. normally latd will transmit a BREAK if a NUL character is typed, and -8 disables this behaviour for ports with (eg) printers or modems attached. iconic for the hardware girlies. πŸ–¨οΈ

  • -D β€” Delete a service or port. πŸ’€

latcp -D -a <service> deletes an advertised service created with latcp -A -a.

latcp -D -p <tty> deletes a reverse LAT port created with latcp -A -p

  • -i β€” Change the description of an advertised service.

latcp -i <description> -a <service> If the description contains spaces or shell metacharacters you should enclose it in quotes. πŸ“

  • -j β€” Enables the service responder. this feature is needed for small terminal servers that do not collect their own service lists. "I currently don't have a list of servers that need this feature. can anyone help??" πŸ‘€ (real. somebody help the dev out fr fr)
  • -J β€” Disables service responder. the off switch to -j's on switch, slay. πŸ”₯
  • -Y β€” Purges the list of known services from latd's internal tables. 🧹✨
  • -x β€” Change the rating of an advertised service.
latcp -x <rating> [-s] -a <service>

If the -s flag is present the rating is static, otherwise it is treated as the maximum value and will be decreased according to the system load average.

  • -n β€” Change the system's current node name (Note this affects latd only, not DECnet nor TCP/IP)
latcp -n <nodename>
  • -r β€” Change the retransmit limit. this is the maximum number of times latd will transmit a packet without an acknowlegement. if this number is exceeded then the connection is closed as it is assumed that the remote end has gone away. πŸ‘» this value must be between 4 and 120 inclusive, the default is 20.
  • -m β€” Sets the multicast timer (in seconds). this timer determines how often services are advertised on the LAN. the default is 60 seconds. this value must be between 10 and 180 inclusive.
  • -k β€” Sets the keepalive timer (in seconds). this is the maximum amount of time that a connection can be inactive. when this timer expires an empty message is sent to the remote end. if it does not respond after <retransmit limit> then the connection is closed. this timer is reset every time a packet is sent out. this value must be between 10 and 180 inclusive.
  • -d β€” Displays latd configuration or the learned service table. -d on it's own will display the latd configuration and the services that are advertised by this node. -d -l will display the learned service table. adding -v will show the learned service table in a verbose manner. -n will show the nodes (with MAC addresses) that are associated with serviceless ports (eg reverse LAT ports to DS90L+ servers). πŸ‘‘
  • -? β€” Displays help for using the command. we love a helpful queen. πŸ™‹β™€οΈ
  • -G β€” Add groups to the services advertised. the groups can be numbers separated by commas or a range. eg
latcp -G 1,2,3,10-20

Enables groups 1 2 3 and 10 to 20 inclusive. πŸ’«

  • -g β€” Disable groups using syntax as above. bye bye groups πŸ‘‹
  • -U β€” Add to the list of groups that the server will accept when listening for services. this affects the services that are available using the "reverse LAT" feature. see -G for the syntax. if you are using the "responder" feature it's best make sure that this group list contains all the groups that are likely to be used on the LAN. πŸ›°οΈ
  • -u β€” Remove groups from the user groups list. πŸ—‘οΈ

🌈 SEE ALSO 🌈

latd(8), latd.conf(5), moprc(8), llogin(1)


and that's the whole page bestie, you ate that πŸ’…βœ¨ this one's from the LAT Server era, dated September 10 2002 β€” vintage but still serving looks. mwah, go read your manpages, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from