{%
    -- 无任何操作
    if state == 'nil' and hotspare == 'nil' and locate == 'nil' and cryptoerase == 'nil' and boot == 'nil' then
        io.write('Error : no valid option.')
        return
    end
    if pdidIsValid ~= true then
        io.write('Invalid Physical Drive ID.')
        return
    end
    -- 系统锁定开启后 只允许点灯操作
    if SystemLockDownStatus == 'Locked' and (state ~= 'nil' or hotspare ~= 'nil' or cryptoerase ~= 'nil' or boot ~= 'nil') then
        io.write('Error: this command is not allowed in system lockdown mode.')
        return
    end

    echo('The operation may take a few seconds, Please wait...\n')
    if state ~= 'nil' then
        echo('Set physical drive state successfully.\n')
    end
    if hotspare ~= 'nil' then
        echo('Set physical drive hot spare state successfully.\n')
    end
    if locate ~= 'nil' then
        echo('Set physical drive location state successfully.\n')
    end
    if cryptoerase ~= 'nil' then
        echo('Cryptographically erase physical drive successfully.\n')
    end
    if boot ~= 'nil' then
        echo('Set physical drive as boot device successfully.\n')
    end
    echo('\b') -- 消除命令行尾部多的一个空行
%}