Solaris Naming Administration Guide

Editing a Table Entry With the -E Option

The -E option is designed for applications where you need to force nistbladm to overwrite an existing entry even if doing so will affect more than one entry.

For example, suppose your table had the following rows:

Dept (searchable) 

Site (searchable) 

Name 

Sales 

SanFran 

Chandar 

Sales 

Alameda 

Achmed 

Now you run the following command:


master% nistbladm -E Site="Alameda" Mgr="Chu" \
[Div='Sales',Site='SanFran'],depts.doc.com.

Which would change the Sales SanFran Chandar row to Sales Alameda Chu. But Sales Alameda are the key values identifying the Sales Alameda Achmed row, so that row would also be changed. The result would be a single row where once there had been two rows:

Dept (searchable) 

Site (searchable) 

Name 

Sales 

Alameda 

Chu 

The -e option would have returned an error, since the edit would affect more than one row. But the -E option allows you to affect more than one entry row.