Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーにログインし、ルートとしてコマンドを実行する必要があります。
これは私が書いたものです:
sshpass -p "password" ssh -t user@ip "hostname & sudo su - root & vmquery -rn 0 -bx | grep -i scratch | wc -l"
問題は、VMQUERY コマンドが root として実行されていないことです。どんな解決策も役に立ちます