mapdev - Map disk instance names to device names and vice-versa
mapdev mapdev [ instance | dev ... ] mapdev -explorer <explorer dir> mapdev -explorer <explorer dir> [ instance | dev ... ]
mapdev converts instance names to device names and vice-versa. 'Vanilla' SCSI disks, floppy disks, cdroms, SSA, A1000, A3000, A3500 and A5000 disks, tapes and NFS mounts are all catered for. With no arguments mapdev prints a list of all the mappings. With an argument like 'sdNNN', 'ssdNNN', 'nfsNNN', 'stNNN' etc it will display the corresponding device name. With an argument that looks like 'cNtNdNsN', 'rmt/N' or 'host:/nfs/share' it will print the corresponding sd, sdd, mt or nfs instance name. If the standard input is a pipe, it will convert any instance names to the corresponding device names, preserving column alignment as far as possible.
The following operands are supported:
Mapping information is derived from the files in the explorer directory, rather than the "live" files on the system.
An instance name, e.g. as reported by 'sar -d'. This will be converted to the corresponding device name.
'sar -d'
A device name without the leading "/dev/..." prefix. This will be converted into the corresponding instance name.
$ mapdev nfs132 is an alias for homesvr:/export/home/alan nfs2 is an alias for mailsvr:/var/mail nfs3 is an alias for workstation:vold(pid315) sd0 is an alias for c0t0d0 sd8 is an alias for c0t9d0 sd9 is an alias for c0t10d0 st1 is an alias for mt0 st2 is an alias for mt1 $ mapdev nfs132 sd9,d c0t0d0s3 homesvr:/export/home/alan c0t10d0s3 sd0,d $ sar -d 1 | mapdev 17:01:42 device %busy avque r+w/s blks/s avwait avserv c0t0d0 0 0.0 0 0 0.0 0.0 c0t0d0s0 0 0.0 0 0 0.0 0.0 c0t0d0s1 0 0.0 0 0 0.0 0.0 c0t0d0s2 0 0.0 0 0 0.0 0.0 c0t9d0 0 0.0 0 0 0.0 0.0 c0t9d0s2 0 0.0 0 0 0.0 0.0 c0t9d0s3 0 0.0 0 0 0.0 0.0 c0t9d0s4 0 0.0 0 0 0.0 0.0 c0t10d0 0 0.0 0 0 0.0 0.0 c0t10d0s2 0 0.0 0 0 0.0 0.0 c0t10d0s3 0 0.0 0 0 0.0 0.0 c0t10d0s4 0 0.0 0 0 0.0 0.0 rmt/1 0 0.0 0 0 0.0 0.0
Alan Burlison, <Alan.Burlison@uk.sun.com>
Solaris::MapDev(3)
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Solaris::Kstat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solaris::Kstat
CPAN shell
perl -MCPAN -e shell install Solaris::Kstat
For more information on module installation, please visit the detailed CPAN module installation guide.