Information Technology Reference
In-Depth Information
Displaying a Device Alias
The devalias command is also used to display defined device aliases.
Without any command-line arguments, all defined device aliases are listed.
If a device alias is listed as a command-line argument, the devalias com-
mand will display only the named device alias. The following example shows
the devalias command from the OpenBoot ok prompt of a SPARC 20 work-
station:
ok devalias
screen /iommu@f,e000000/sbus@f,e001000/cgsix@2,0
ttyb /obio/zs@0,100000:b
ttya /obio/zs@0,100000:a
keyboard /obio/zs@0,0
floppy /obio/SUNW,fdtwo
scsi /iommu/sbus/espdma@f,400000/esp@f,800000
net-aui /iommu/sbus/ledma@f,400010:aui/le@f,c0000
net-tpe /iommu/sbus/ledma@f,400010:tpe/le@f,c0000
net /iommu/sbus/ledma@f,400010/le@f,c0000
disk /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
cdrom /iommu/sbus/espdma@f,400000/esp@f,800000/sd@6,0:d
tape /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
tape1 /iommu/sbus/espdma@f,400000/esp@f,800000/st@5,0
tape0 /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
disk3 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
disk2 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0
disk1 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@1,0
disk0 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0
ok devalias disk
disk /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
ok
Deleting a Device Alias
An alias defined by the nvalias command is stored in the script and remains
there until it is removed by using the nvunalias command, or until the sys-
tem configuration is restored to its original defaults using the set-defaults
command. Keep in mind that an alias defined using the devalias command
is not stored in the script and is lost when the system is rebooted.
To delete the nonvolatile device alias (an alias stored in the script) named
disk2 , enter the following command at the OpenBoot ok prompt:
ok nvunalias disk2
ok
When deleting an alias, be certain that the alias is not used anywhere; otherwise, a
possibly critical system parameter might become undefined.
Search WWH ::




Custom Search