mirror of
https://github.com/byReqz/conn.git
synced 2024-11-22 00:53:14 +00:00
removed clutter
This commit is contained in:
parent
c53e49f793
commit
5cae6a55aa
10
conn.sh
10
conn.sh
@ -72,11 +72,6 @@ fi
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "note: this seems to be a windows machine which does not respond to ICMP"
|
||||
echo "-----------------------------------------------------"
|
||||
elif [[ $fping = "$2" ]] && [[ -n $(echo $p135 | grep "Successful connections: 1") ]];then
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "note: this seems to be a windows machine which does respond to ICMP"
|
||||
fping -e $2
|
||||
echo "-----------------------------------------------------"
|
||||
elif [[ $fping != "$2" ]] && [[ -z $(echo $p135 | grep "Successful connections: 1") ]] || [[ $fping != "$2" ]] && [[ -z $(echo $p3389 | grep "Successful connections: 1") ]];then
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "$2 is not reachable"
|
||||
@ -108,11 +103,6 @@ fi
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "note: this seems to be a windows machine which does not respond to ICMP"
|
||||
echo "-----------------------------------------------------"
|
||||
elif [[ $fping = "$2" ]] && [[ -n $(echo $p135 | grep "Successful connections: 1") ]];then
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "note: this seems to be a windows machine which does respond to ICMP"
|
||||
fping -e $2
|
||||
echo "-----------------------------------------------------"
|
||||
elif [[ $fping != "$2" ]] && [[ -z $(echo $p135 | grep "Successful connections: 1") ]] || [[ $fping != "$2" ]] && [[ -z $(echo $p3389 | grep "Successful connections: 1") ]];then
|
||||
echo "-------------------Availability----------------------"
|
||||
echo "$2 is not reachable"
|
||||
|
Loading…
Reference in New Issue
Block a user