Advertisement
Advertisement
| 06.12.2008 at 12:30AM PDT, ID: 23478526 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
#!/bin/bash # loop that checks each system in iprange specified for i in $(seq 236 238) do ip=192.168.1.$i host=$(ssh $ip -C hostname 2>&1) echo " " echo "=====================================================================" echo "Host $host at IP $ip is running the following services" echo "=====================================================================" ssh $ip "top" done > topcheckfile 2>&1 |