{%
if not IndexValid then
    echo('Usage: ipmcset -t sol -d deactivate -v <index>\nIndex is:\n')
    local line = string.format('%-8s%-8s%-8s%-28s%-38s%s\r\n', 'Index', 'Type', 'Mode', 'LoginTime', 'IP', 'Name') 
    echo(line) 
    line = string.format('%-8d%-8s%-8s%-28s%-38s%s\r\n', 1, Type1, Type1 == 'N/A' and 'N/A' or (Mode == 0 and 'Shared' or 'Private'), ActivatedTime1, IP1, Name1) 
    echo(line) 
    line = string.format('%-8d%-8s%-8s%-28s%-38s%s', 2, Type2, Type2 == 'N/A' and 'N/A' or (Mode == 0 and 'Shared' or 'Private'), ActivatedTime2, IP2, Name2) 
    echo(line)
else
    if Result == 0 then
        echo('Close SOL session successfully.') 
    elseif Result == 1 then 
        echo('The SOL session does not exist.') 
    elseif Result == 2 then 
        echo('The SOL session can not be closed.') 
    elseif Result == 3 then 
        echo('The SOL session already be closed.') 
    else 
        echo('Close SOL session failed.') 
    end
end
%}