QuestionQ167

Automation

A network administrator must automate pinging all IP addresses in the 10.0.0.0/8 subnet. The subnet is already listed in the Cisco Nexus switch ARP table. Drag and drop the Bash commands to produce the required output. Not every command is used.

Drag & Drop
awk '{print "ping" $1}'
grep -v "statistics|loss"
show ip arp
vsh -c "show ip arp"
egrep "statistics|loss"
sed -e 's/ping /10.*/g'
vsh
bash-4.3$  |grep "^10\."|  |  | 
Explanation

Cisco Nexus vsh -c runs the show ip arp command from Bash. The first-field IP addresses beginning with 10. are converted to ping commands, passed to vsh for execution, and then filtered to retain only the statistics and packet-loss output lines.

Community Discussion

No comments yet. Be the first to start the discussion!