To get LUN ID of a device
# scsimgr get_attr -H 3/0/10/1/0/4/0.0x50001fe1501ef98f.0x400a000000000000 -a lunid
SCSI ATTRIBUTES FOR LUN PATH : 3/0/10/1/0/4/0.0x50001fe1501ef98f.0x400a000000000000
name = lunid
current =0x400a000000000000 (LUN # 10, Flat Space Addressing)
default =
saved =
To get www id and serial no of a device
scsimgr get_attr -D /dev/rdisk/disk535 -a wwid -a serial_number
SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk535
name = wwid
current = 0x600508b4000cefeb0000600002150000
default =
saved =
name = serial_number
current = "PAFURB49SXC01Y"
default =
saved =
To get www id and serial no of a device in single line
# scsimgr -p get_attr -D /dev/rdisk/disk535 -a wwid -a serial_number
0x600508b4000cefeb0000600002150000:"PAFURB49SXC01Y"
# scsimgr get_attr -H 3/0/10/1/0/4/0.0x50001fe1501ef98f.0x400a000000000000 -a lunid
SCSI ATTRIBUTES FOR LUN PATH : 3/0/10/1/0/4/0.0x50001fe1501ef98f.0x400a000000000000
name = lunid
current =0x400a000000000000 (LUN # 10, Flat Space Addressing)
default =
saved =
To get www id and serial no of a device
scsimgr get_attr -D /dev/rdisk/disk535 -a wwid -a serial_number
SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk535
name = wwid
current = 0x600508b4000cefeb0000600002150000
default =
saved =
name = serial_number
current = "PAFURB49SXC01Y"
default =
saved =
To get www id and serial no of a device in single line
# scsimgr -p get_attr -D /dev/rdisk/disk535 -a wwid -a serial_number
0x600508b4000cefeb0000600002150000:"PAFURB49SXC01Y"
No comments:
Post a Comment