作者kenduest.bbs@bbs.sayya.org (小州) 看板: linux
標題Re: [問題] 進階shutdon問題 - Windows vs Linux
時間SayYA 資訊站 (2008/02/17 Sun 15:10:21)
※ 引述《x2006.bbs@ptt.cc (小帥 ^^)》之銘言:
> 假設有兩台 Windows Server 2003 主機,
> 電腦名稱(HostName)為 Server1 與 Server2,
> administrator密碼分別為 paw1 與 paw2
> 那麼在Client端(XP以上)執行底下DOS指令,可使遠端兩台Server主機重新開機.
> net use \\Server1\ipc$ paw1 /user:administrator
> shutdown -r -f -m \\Server1 -t 0
> net use \\Server2\ipc$ paw2 /user:administrator
> shutdown -r -f -m \\Server2 -t 0
> 請問各位高手,
> Linux 環境下, 有辦法執行遠端 shutdown 指令嗎? @@"
Linux 連線到 Linux 主機來關機,還是要關閉 Windows ?
若是前者,請使用 ssh 即可。ex:
ssh root@hostname "shutdown -r now"
若是後者,請使用 samba 提供的 net 命令。ex:
net -U administrator rpc shutdown
> 如何在 Linux 底下執行遠端 shutdown 指令呢?
> 請教了! Thanks.
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
現代人普遍的現象: 「小學而大遺」、「捨本而逐末」
「以偏而概全」、「因噎而廢食」
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>