pcn linus> ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
+smpnn01 ntpsrv1 2 u 829 1024 377 1.46 0.793 0.85
*smpnn02 ntpsrv1 2 u 365 1024 377 2.40 0.046 0.27
LOCAL(0) LOCAL(0) 3 l 51 64 377 0.00 0.000 10.01
ntpq -p | awk '{if ( $8 < 5 ) { print " " } else { print $NF, " has high delay " } }'
disp has high delay
need to print the O/p like smpnn01 has high delay( value of the delay)
could somebody help me print this