Skip to content

Commit 2164029

Browse files
Create Monitoring_TCP.sh
1 parent a35a73c commit 2164029

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Monitoring_TCP.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
C=$(/bin/netstat -nt | tail -n +3 | grep ESTABLISHED | wc -l)
4+
D=$(date +"%m %d")
5+
T=$(date +"%H %M")
6+
printf "%s %s %s\n" "$C" "$D" "$T"

0 commit comments

Comments
 (0)