root@localhost#scp -P <file.pcap> habib@10.10.10.1:/tmp/
From the localhost to 10.10.10.1 in tmp directory.
root@localhost#scp -P <file.pcap> habib@10.10.10.1:/tmp/
From the localhost to 10.10.10.1 in tmp directory.
Use the "Script" command
script ~/mylog
Script started, file is /home/-----/mylog
...
(commands that produce output)
...
exit
Script done, file is /home/------/mylog
Put all hostname Ip address in the hosts.text file-
for x in `cat hosts.txt`; do echo $x; ssh -t $x “mysqlcheck -uroot -paSSw0rd -A –auto-repair –all-databases | grep -v OK”; done
It will ssh to all hosts and repair mariaDB database
mysqlcheck -uroot -paSSw0rd. -A –auto-repair –all-databases