NBDBTOOL(8)
π nbdbtool(8): netboot database management tool π
Hii bestie, welcome to the nbdbtool page from the System Manager's Manual, section 8. Pull up a chair, because this little utility is here to help you peek at and clean up entries in the netboot systems database. π«Ά
β¨ NAME β¨
nbdbtool β the netboot database management tool. Lowkey iconic, highkey useful.
πΈ SYNOPSIS πΈ
nbdbtool [OPTIONS]
π¦ DESCRIPTION π¦
nbdbtool is a simple program for viewing and deleting entries in the netboot systems database. Every utility program in the netboot package can write its parameters into this database, and this tool is your bestie for working with those entries: you can show a list of the database entries, print one individual database entry, or delete an entry. Periodt. π
π OPTIONS π
-C,--config-file FILEβ sets the pathname of the configuration file. If you don't pass this option, the value of theNETBOOT_CONFIGenvironment variable or a compiled-in default gets used instead.-c,--clone FILE|DBSPECβ this action clones all records from a database file or database specification into the systems database.-D,--database FILE|DBSPECβ the pathname of the database file (or database specification) that the program should act on. If you don't pass this option, the value of theNETBOOT_DATABASEenvironment variable or a compiled-in default gets used instead. Wanna know all the different ways to specify a database? Thenetboot(5)man page has the full explanation. π-d,--delete NAMEβ name of the database entry to delete.-F,--logfileβ name of the log file to write debugging output to. The default is to print all verbose output to stdout.-f,--filter FILTERβ prints a list of database entries based on a filter string. This filter string can contain wildcard characters: a*character matches any number of characters in the database entry name, and a?character matches exactly one character in the database entry name. If the filter string contains any of these wildcard characters, the whole string has to be enclosed in single quotes on a standard UNIX shell so the wildcard characters don't get interpreted by the shell. The database record list gets printed onto standard output.-H,--home-dirβ specifies the home directory. If this command line option is not given, either thehomedirconfiguration file parameter or the current user's home directory will be used.-h,--helpβ prints short usage information.-L,--libdir DIRβ pathname of the non-shared-data directory. If this option is not given, the value of theNETBOOT_LIBenvironment variable or a compiled-in default will be used.-l,--listβ prints all record names contained within the systems database onto standard output.-N,--datadir DIRβ pathname of the shared-data directory. If this option is not given, the value of theNETBOOT_DATAenvironment variable or a compiled-in default will be used.-o,--outfile FILEβ this option prints the output of the--printor--listaction into a file rather than on stdout.-p,--print NAMEβ prints the contents of a specific database record. This prints all values contained in this record onto standard output.-q,--quietβ don't print any error messages. If an error occurred, you can find out about the cause of the error by inspecting the error code returned bynbdbtool.-r,--rawβ with the print action, this option prints all parameters as they appear in the database, even if they are duplicate or empty.-v,--versionβ prints version information.-x,--verboseβ verbose output to let you know whatnbdbtoolis doing. Each-xincreases the verbosity level.
π DATABASE RECORD NAMES π
The systems database can contain various records, with each record giving definitions for a specific netboot program and client system. The record names are constructed like this: <program name>:<system name>.
The same record name can appear multiple times in a database. Usually, when a netboot program uses such a record name, it scans all entries and uses the last one found within the database. This is also the way the --print option works. However, the --delete option will delete all records for a given record name. So yeah: print picks the last one, delete clears out every matching record. π
π§ ENVIRONMENT VARIABLES π§
See the netboot(5) man page for a description of all environment variables used by nbdbtool.
Yes bestie, that's the whole section. The details live in netboot(5). Go check it. π
π BUGS π
None known yet.
π₯ SEE ALSO π₯
π AUTHOR π
nbdbtool was written by Gero Kuhlmann <gero@gkminix.han.de>.
Cute little sign-off: the source/version + date situation is NBDBTOOL(8) and 07 Sep 2006. Mwah. πβ¨
π¦ where this page comes from
- nixos 26.05: netboot 0.10.2
- nixpkgs unstable: netboot 0.10.2
- Copyright (C) 2006-2007 Gero Kuhlmann <gero@gkminix.han.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms