Hi Andrew ,
You can use the below shell sctipt as an interim solution 🙂
i have not tested it extenselvely , it take the route advertised as command line argument and gives the result
#!/bin/sh
prefix="$1"
echo "$prefix"
for i in `cli -c "show bgp summary | match Estab" | awk {'print $1'}`
do
echo "$i"
check=`cli -c "show route advertising-protocol bgp $i | grep $prefix" | awk {'print $2'} `
echo "$check"
if [ $check ]
then
echo "Prefix is advertised to $i"
fi
done
To run go to start shell
vi test.sh , paste the script
sh test.sh <prefix>
Eg from Lab :-
% sh test.sh 60.60.60.0
11.11.11.11
60.60.60.0/30
Prefix is advertised to 11.11.11.11
172.26.226.29
60.60.60.0/30
Prefix is advertised to 172.26.226.29
Thx
Anish
If this solves your problem, please mark this post as "Accepted Solution."
Kudos are always appreciated .