How to know if a server responds to ICMP packets

sudo yapscan -sI -t- (or range)