Simple On box Juniper Router Script to collect debug outputs from FPC/ line card for troubleshooting

Published: 14 October 2024
on channel: Network Tips and Topics - Plexinor
37
1

"Want more expert insights and updates? Follow us on LinkedIn and explore our company page to connect with us directly. Don’t miss out - click the link and join the conversation!"

Follow us on LinkedIn:   / plexinor  
Company Website: https://www.plexinor.com

root@M304-RE0:/var/home/lab # cat FPC-Commands
#!/bin/csh

foreach mpc (0 1 2 3 )
echo "======mpc $mpc =============="
cprod -A fpc$mpc -c "show pfe statistics traffic"
cprod -A fpc$mpc -c "show pfe statistics notification" /var/tmp/O.txt
sleep 1
end

since angle brackets are not allowed the /var/tmp/O.txt does not have angel brackets , please refer to script video on angle brackets placement


Watch video Simple On box Juniper Router Script to collect debug outputs from FPC/ line card for troubleshooting online without registration, duration hours minute second in high quality. This video was added by user Network Tips and Topics - Plexinor 14 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 37 once and liked it 1 people.