A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23
The administrator wishes to monitor the connection at five-minute intervals for one hour.
Which of the following commands will accomplish this task?
Click on the arrows to vote for the correct answer
A. B. C. D.C.
The command ping
sends an ICMP (Internet Control Message Protocol) echo request to a specified IP address and waits for a reply. The output of the command provides information on the status of the connection, including the round-trip time and packet loss.
To monitor the connection at five-minute intervals for one hour, we need to send pings every five minutes for a total of twelve times (once every 5 minutes for 60 minutes). This means we need a command that sends twelve pings at an interval of five minutes.
Let's review the options:
A. ping -i 5 192.168.1.23
This command sends pings at an interval of 5 seconds, not 5 minutes. Therefore, it is not suitable for our purpose.
B. ping -c 12 192.168.1.23
This command sends 12 pings and then stops. It does not specify an interval for sending the pings, so the timing will depend on the network latency and the time it takes for the target to respond. Therefore, it is not suitable for our purpose.
C. ping -c 12 -i 300 192.168.1.23
This command sends 12 pings at an interval of 300 seconds (5 minutes). This is the correct option for our purpose, as it sends pings every 5 minutes for a total of 1 hour.
D. ping -c 60 -i 100 192.168.1.23
This command sends 60 pings at an interval of 100 seconds (1 minute 40 seconds). It sends more pings than necessary and at a shorter interval than required. Therefore, it is not suitable for our purpose.
In conclusion, the correct command for monitoring the connection at 5-minute intervals for one hour is:
cssping -c 12 -i 300 192.168.1.23