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

Опубликовано: 24 Август 2026
на канале: Network Tips and Topics - Plexinor
99
2

"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