YPPUSH(8)
π YPPUSH(8) β the NIS Reference Manual glow-up π
okay bestie, sit down, grab a boba, because we're talking about yppush, and she's from the NIS Reference Manual era, so she's vintage but she WORKS. π
β¨ NAME β¨
yppush β force propagation of changed NIS databases. she's the push notification system of the 90s and honestly? iconic. π
πΈ SYNOPSIS πΈ
/usr/sbin/yppush [-d domain] [-t timeout] [--parallel # | --port port]
[-h host] [-v] mapname...
π DESCRIPTION π
okay so. yppush copies updated NIS databases (or maps, if we're being cute about it) from the master NIS server over to the slave servers inside a NIS domain. it's normally run only on the NIS master by /var/yp/Makefile after the master databases get changed. and like, heads up: /var/yp/Makefile does not invoke yppush by default β you literally have to comment out the NOPUSH=true line. she doesn't just show up uninvited, she waits for her moment. π
first thing yppush does is construct a list of NIS slave servers by reading the NIS map ypservers within the domain. a destination host (or a whole list of hosts, using multiple -h commands) can also be specified on the command line. a "transfer map" request gets sent to the NIS server at each slave, along with all the info the transfer agent ypxfr(8) needs to callback to yppush, which may print the result to stderr. messages also get printed when a transfer is just not possible β for instance, when the request message is undeliverable. it's giving "left on read." π
and if you wanna specify a port number or use any other yppush options, you can edit /var/yp/Makefile directly. yes, actually. go in there. she said DIY. βοΈ
π OPTIONS π
-ddomain β specify a particular domain. by default the NIS domain of the local host system is used. and if the local host's domain name isn't set? bestie, you must specify the domain name with this flag. no domain, no service. π-ttimeout β the timeout flag specifies a timeout value in seconds. this timeout controls how longyppushwill wait for a response from a slave server before sending a map transfer request to the next slave server in the list. by default,yppushwaits 90 seconds. and for big maps? that is not long enough. fr fr. β³--parallel#,-p# βyppushnormally performs transfers serially, meaning it sends a map transfer request to one slave server, then waits for it to respond before sending the next request to the next slave server. in environments with many slaves, it's way more efficient to initiate several map transfers at once so they can happen in parallel. but β and this is the important part β it is not possible to run in parallel and assign a fixed port with the--portflag. pick a lane, queen. π¦--portport β specify a port foryppushto listen on. by default,yppushwill askportmap(8)to assign it a random port number. and again: it is not possible to assign a port with this option and run in parallel with the--parallelor-pflag. same energy, opposite direction. π―-hhost β the host flag can be used to transfer a map to a user-specified machine or group of machines instead of the list of servers contained in theypserversmap. you can specify a whole list of hosts by using multiple instances of the-hflag. stack 'em. π«Ά-vβ verbose mode! this causesyppushto print debugging messages as it runs. and bestie, note this: specifying this flag twice makesyppusheven more verbose. double the tea, double the chaos. π
π¦ SEE ALSO π¦
β BUGS β
the mechanism for transferring NIS maps in NIS v1 is different than that in NIS version 2. this version of yppush has support for transferring maps to NIS v2 systems only. so if you're on v1, she cannot help you, and that's just the truth. π
π AUTHOR π
Thorsten Kukuk <kukuk@linux-nis.org>
and that's the whole page, no notes π this diva was brought to you by the NIS Reference Manual, dated 12/31/2020, filed under YPPUSH(8) β go forth and propagate, bestie. mwah. π
β¨
π¦ where this page comes from
- debian bookworm: ypserv 4.2-1+b2 Β· GPL-2.0-only
- debian trixie: ypserv 4.2-2+b2 Β· GPL-2.0-only
- ubuntu jammy: ypserv 4.1-2 Β· GPL-2.0-only
- ubuntu noble: ypserv 4.2-2build2 Β· GPL-2.0-only
- ubuntu questing: ypserv 4.2-2build2
- ubuntu resolute: ypserv 4.2-3 Β· GPL-2.0-only
- ubuntu stonking: ypserv 4.2-3build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms