DEVSTR(1M) RISC/os Reference Manual DEVSTR(1M)
NAME
devstr - print device strings
SYNOPSIS
/etc/devstr [ -a ] [ -f format ] device...
DESCRIPTION
If the device is a SCSI device, the command devstr obtains
the device identifier string from each named device, and
will first print the information according to the format.
In all cases, it will print a message to identify the con-
troller type and firmware revision levels if applicable.
For ethernet controllers, the hardware ethernet address is
also printed. The argument device must either be a character
device, or as in the case for ethernet controllers, it must
be of the form ``name unit'', e.g. ``enp0''.
The following are examples of current controller strings,
for some of the controller types supported.
ipc%d - Interphase V/SMD 3200 Revision (&.5000) 12/22/86
ipc%d - Interphase Cheetah 4200 Revision (2050) 5/23/89, MACSI enabled
ipc%d - Interphase Phoenix 4400 Revision (6.05A) 6/6/89, MACSI enabled
enp%d - CMC enp-10 - %x:%x:%x:%x:%x:%x
egl%d - Interphase 4207 Eagle (30.30.30) Date 06/30/89 - %x:%x:%x:%x:%x:%x
As with programs like date(1) and uptime(1), the SCSI format
string can contain any text. The sequences \n, \t, \f, \r,
\b, and \\ are handled just like C escapes. All other
escaped characters are printed as-is. Statistics are
printed by using %-specifiers, as in the date(1) command.
The available specifiers are:
f The name of the device
v The vendor name
V The vendor name padded to 8 characters
p The product id
P The product id padded to 16 characters
r The revision number
R The revision number padded to 4 characters
m The microcode revision number
M The microcode revision number padded to 8 charac-
ters
n The serial number
N The serial number padded to 12 characters
t The device type
T The device type padded to 16 characters
% The character %
The padded items are provided because the actual device
strings are padded in this way, thus the original device
Printed 11/19/92 Page 1
DEVSTR(1M) RISC/os Reference Manual DEVSTR(1M)
strings can be recreated.
The default format is: %V-%P-%R-%M-%N-%T
OPTIONS
-a Use the special alternate format: %f %V-%P-%R-%M-%N-%T
Note that the last option on the command line is the
one used.
-f format
Use the specified format. Note that the last option on
the command line is the one used.
SEE ALSO
uname(1) in the User's Reference Manual.
Page 2 Printed 11/19/92