HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)
n
nistbladm(1) nistbladm(1)
fully qualified.
-s sep When creating or updating a table, this option specifies the table’s separator charac-
ter. The separator character is used by niscat (1) when displaying tables on the
standard output. Its purpose is to separate column data when the table is in ASCII
form. The default value is a space.
-t type When updating a table, this option specifies the table’s type string.
RETURN VALUE
This example returns
0 on success and 1
on failure.
EXAMPLES
Create a table named
hobbies in the directory
foo.com. of the type hobby_tbl with two search-
able columns,
name and hobby:
nistbladm -c hobby_tbl name=S,a+r,o+m hobby=S,a+r
hobbies.foo.com.
The column name has read access for all (that is,
owner, group, and world) and modify access for only
the owner. The column
hobby is readable by all, but not modifiable by anyone.
In this example, if the access rights had not been specified, the tables access rights would have come from
either the standard defaults or the
NIS_DEFAULTS variable (see below).
Add entries to this table:
nistbladm -a name=bob hobby=skiing hobbies.foo.com.
nistbladm -a name=sue hobby=skiing hobbies.foo.com.
nistbladm -a name=ted hobby=swimming hobbies.foo.com.
Add the concatenation path:
nistbladm -u -p hobbies.bar.com.:hobbies.baz.com. hobbies
Delete the skiers from our list:
nistbladm -R hobby=skiing hobbies.foo.com.
Note: The use of the -r option would fail because there are two entries with the value of
skiing.
To create a table with a column that is named with no flags set, you supply only the name and the equal
sign (=) as follows:
nistbladm -c notes_tbl name=S,a+r,o+m note= notes.foo.com.
This example created a table, named notes.foo.com.,oftype notes_tbl with two columns
name and note.
The
note column is not searchable.
When entering data for columns in the form of a value string, it is essential that terminal characters be
protected by single or double quotes. These are the characters equals (=), comma (,), left bracket ([), right
bracket (]), and space ( ). These characters are parsed by NIS+ within an indexed name. These charac-
ters are protected by enclosing the entire value in double quote (") characters as follows:
nistbladm -a fullname="Joe User" nickname=Joe nicknames
If there is any doubt about how the string will be parsed, it is better to enclose it in quotes.
EXTERNAL INFLUENCES
Environment Variables
NIS_DEFAULTS This variable contains a defaults string that will override the NIS+ standard defaults.
If the -D switch is used, those values will then override both the NIS_DEFAULTS
variable and the standard defaults.
NIS_PATH If this variable is set and the NIS+ table name is not fully qualified, each directory
specified will be searched until the table is found (see nisdefaults (1)).
WARNINGS
To modify one of the entries, say, for example, from
bob to robert:
nistbladm -m name=robert [name=bob],hobbies
Section 1−−624 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: August 2003