test script takes cmd args now and pass it to the sg_inq method