Hi @ispace,
I didn't find such command which only check the first AS for only one BGP peer.
But I thought out a indirect way to do that.
We can use the route-policy to filter the BGP update those first AS is same with the BGP peer's AS.
Kindly check the example below:
Topology: R1(AS 100)-----------R2(AS 200)----------R3(AS 200)
On R3, configure the route-policy as below to filter the BGP updates learned on R2 from R1.
R3:
#
route-policy chcek_as permit node 5
if-match as-path-filter 10
#
ip as-path-filter 10 permit ^100
#
This route-policy allows only the BGP updates those AS start with 100.