This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| scripting:bash [2021/08/24 12:27] – jotasandoku | scripting:bash [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 140: | Line 140: | ||
| Apply to multiple hosts with no need for a script: | Apply to multiple hosts with no need for a script: | ||
| - | for i in admin-worker00.dc.grapeshot.co.uk \ | + | for i in admin-worker00.dc.mycompany1.co.uk \ |
| - | centosGUI.dc.grapeshot.co.uk \ | + | centosGUI.dc.mycompany1.co.uk \ |
| - | dbtest.dc.grapeshot.co.uk \ | + | dbtest.dc.mycompany1.co.uk \ |
| - | redis-admin.dc.grapeshot.co.uk \ | + | redis-admin.dc.mycompany1.co.uk \ |
| - | security-scanner01.dc.grapeshot.co.uk \ | + | security-scanner01.dc.mycompany1.co.uk \ |
| - | test.dc.grapeshot.co.uk \ | + | test.dc.mycompany1.co.uk \ |
| - | test01.dc.grapeshot.co.uk ; \ | + | test01.dc.mycompany1.co.uk ; \ |
| do ssh root@" | do ssh root@" | ||
| | | ||
| Line 182: | Line 182: | ||
| echo -e " | echo -e " | ||
| Host $val1 | Host $val1 | ||
| - | | + | |
| User jaime_santos | User jaime_santos | ||
| Port 22"; | Port 22"; | ||
| Line 380: | Line 380: | ||
| **TO EVALUATE COMMANDS REMOTELY (SSH)** | **TO EVALUATE COMMANDS REMOTELY (SSH)** | ||
| - | ssh root@jaguar27.dc.grapeshot.co.uk "/ | + | ssh root@jaguar27.dc.mycompany1.co.uk "/ |
| | | ||