私が開発したcollectnode
、その使用のwinrm
Windowsに接続するためのプロトコルを。
最初:hostsファイルを作成します:
# cat hosts.file
[group1:vars]
nodetype=windows
[group1]
server1
server2
server3
server4
server5
2番目:CollectNodeで資格情報を構成します
# collectnode --configure
Do you want to change the localhost User ? [y/n]: n
Do you want to change the UNIX/LINUX User used the connect to the servers? [y/n]: n
Do you want to change the WINDOWS User used the connect to the servers? [y/n]: y
Enter user name: Administrator
Enter password:
Enter domain|realm [none]: none
Enter transport mode (basic|ntlm|kerberos) [kerberos]: ntlm
Current path: /var/log/
Do you want to change the current path for log file? [y/n]: n
3番目:これらのサーバーで必要なコマンドを実行します。
# collectnode --file hosts.file --command='whatever command you need'
https://collectnode.com/executing-commands-on-remote-windows-from-linux-terminal/