sg_raw to send maintenance out command returns Illegal Request

Issues related to applications and software problems
Post Reply
Sushma Subramanya
Posts: 1
Joined: 2021/02/11 10:32:32

sg_raw to send maintenance out command returns Illegal Request

Post by Sushma Subramanya » 2021/02/11 10:38:48

Running sg_raw version - 0.4.6 on CentOS 7.8.2003

sg_raw to send SCSI maintenance out command and service action of "MANAGEMENT_PROTOCOL_OUT (0x10) returns Illegal Request.

[root@BaseOS bin]# sg_raw -s 8 -vvvvvv /dev/sg7 a4 10 fa 00 00 00 00 00 00 08 00 00
found bsg_major=249
open /dev/sg7 with flags=0x802
cdb to send: a4 10 fa 00 00 00 00 00 00 08 00 00
Command name: Management protocol out
encl version
SCSI Status: Check Condition

Sense Information:
Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
Raw sense data (in hex):
70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00
00 00

The same command works fine with Cent OS 6.8

Other commands like Inquiry, ReadBuffer sent through sg_raw works fine.

Post Reply

Return to “CentOS 7 - Software Support”