TCP Port Status using Bash Scripting and Return Reverse Status (Linux/Unix Platform)

Version 2

    Hello Everyone,

     

    In continuation to below script which I created for same purpose as mentioned in this thread but runs on PowerShell hosting machines (Particularly Windows Platform), I have created an script written in Bash to run on Linux/Unix Platform and it will give you the reverse status of Port State on a remote host i.e. If port is working then it will give you down status and if port is not working then it will give you Up status.

    TCP Port Status Monitoring using powershell and return reverse status

     

    Find the attached SAM Application Template.