HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nistbladm(1) nistbladm(1)
names, separated by colons. The names in the path must be 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 stan-
dard 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 searchable
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 characters
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.
WARNINGS
To modify one of the entries, say, for example, from bob to robert:
nistbladm -m name=robert [name=bob],hobbies
Note that [name=bob],hobbies is an indexed name, and that the characters ‘[’ (open bracket) and ‘]’
(close bracket) are interpreted by the shell. When typing entry names in the form of NIS+ indexed names,
the name must be protected by using single quotes.
It is possible to specify a set of defaults such that you cannot read or modify the table object later.
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported.
LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming ser-
vices based on LDAP.
HP-UX 11i Version 1: September 2005 − 3 − Hewlett-Packard Company Section 1−−643