Small utility for sending some commands to different hosts and receive response from this one
In config/config.json placed fields for connection to hosts
[
{
"host": "host1:port_for_host1",
"user": "user_for_host1",
"password": "pass_for_host1",
"cmd": "command_for_host1"
},
{
"user": "user",
"password": "pass",
"host": "127.0.0.1:22",
"cmd": "ls -l"
}
]
There are two outputs channels. Console and file. YOU NEED TO CEREATE FOLDER log
- In the console will be symbol
X
for bad response or some errors and symbolV
for good result - In the file will be detail information about error/response
File can be named:
host.log
for response from the host. e.g127_0_0_1.log
localhost.log
for errors