Hi All
I will run the same script every day in corn and output should go to same CSV file but in different row with dates on it. Below is my example in attached format.
Script i am using to collect switch port online
DATE=`date '+%d-%m-%y'`
for f in `cat /home/user/switch-ip/switch-ip-test.txt`
do
echo $f-[$DATE] >> /home/user/switch-ip/switch-nolight.csv
plink -ssh -v chrrbs@$f -pw secure01 switchshow |grep "No_Light" >> /home/user/switch-ip/switch-nolight.csv
done