HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nadb(1) nadb(1)
nodenumber argument, change to that node.
p traditional_cmd
This keyword command takes a traditional command as argument and interprets it.
a var value Assign value to nadb variable var.
The following commands can run only in backward compatibility mode.
newline Print the process ID and register values.
M Toggle the address mapping of memfile between the initial map set up or a valid memory
file and the default mapping pair which the user can modify with the file action modifier
>. If the memory file was invalid, only the default mapping is available.
N [ nodenumber ]
Print the number of nodes on V-class multinode machines and the current node number.
To switch to another node, enter $N nodenumber.
F Print double precision floating point registers.
R Print all registers.
U Print unwind tables.
Format String
A format string is used to specify the formatting to be done before data is printed by
nadb. There are
two types of format strings supported by
nadb: traditional style and printf style. A traditional style
format string is a sequence of format specifiers.A
printf-style format string is always preceded by a
comma (,) and enclosed within double quotes (""), and is a sequence of format specifiers and other charac-
ters. Each format specifier should be preceded by a % character. Characters other than format specifiers
are printed as is. If needed, % should be escaped by %. It supports C language style
\ character escape
sequences.
While processing a format string,
nadb scans the format string from left to right and applies each conver-
sion specifier encountered to the object addressed by the sum of
dot and dotincr. After each conver-
sion specifier is processed,
dotincr is incremented by count times size (implicit or explicit) of that
conversion specifier. If the format string is used to print the value of dot (using action
=), dot and
dotincr remain unchanged. For dotincr operator, dotincr is updated appropriately.
In backward compatibility mode, only the traditional style format string is supported.
Format Specifier
A format specifier can be a conversion specifier or a dot operator.
1. Conversion Specifier
Each conversion specifier consists of an optional count or pspec followed by an optional size specifier charac-
ter, followed by a conversion specifier character.
count This is available only for the traditional style format string. The count specifies the number of times
this conversion specifier is to be repeated. If not specified, count is assumed to be 1.
pspec This is available only for the
printf-style format string. It is a sequence of flags, fieldwidth and
precision as in the printf(3S) library function.
size specifier character
This specifies the size of object to which this is applied. Size can be specified in two ways. One is
using absolute size specifier and other is relative size specifier. Absolute size specifiers are as fol-
lows.
b The size of the object is 1 byte.
e The size of the object is 2 bytes.
g The size of the object is 4 bytes.
j The size of the object is 8 bytes.
k The size of the object is 16 bytes.
Relative size specifiers are as follows
Section 1−−584 Hewlett-Packard Company − 8 − HP-UX 11i Version 1: September 2005