$ echo $?Īnother command you can use to check connectivity is traceroute. If it has the value 0 then it was successful, anything else and a problem occurred. You can check the status of this command through the use of this variable, $?. You can gate how long ping will attempt to ping another server through the use of the count switch ( -c). This will check to see if any of the servers you're attempting to connect through, but won't be able to see if middle-server-1 can reach server-b, for example. For checking server connectivity you have 4 tools at your disposal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |