We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a439fe1 commit eda54ddCopy full SHA for eda54dd
1 file changed
archive/website/cameraStatusReport.sh
@@ -36,11 +36,11 @@ else
36
authlog=/var/log/secure
37
batchuser=ec2-user
38
fi
39
-sudo grep publickey $authlog* | grep -v $batchuser > $DATADIR/reports/lastlogins.txt
+sudo grep publickey $authlog* | grep -v $batchuser | grep -v fatal > $DATADIR/reports/lastlogins.txt
40
41
if [ "$platform" == "Ubuntu" ]
42
then
43
- ssh ukmonhelper2 "sudo grep publickey /var/log/secure* | grep -v ec2-user" > $DATADIR/reports/lastlogins_old.txt
+ ssh ukmonhelper2 "sudo grep publickey /var/log/secure* | egrep -v 'ec2-user|fatal'" > $DATADIR/reports/lastlogins_old.txt
44
45
cat $DATADIR/reports/lastlogins_old.txt >> $DATADIR/reports/lastlogins.txt
46
echo TO HERE
0 commit comments