To display information about all ANCP neighbors:
show l2C neighbor [ name neighborName | id neighborIdMac ] [ brief ]
To display the number of active neighbors:
show l2C neighbor [ summary ]
Command introduced before JunosE Release 7.1.0.
Displays information about known ANCP neighbors on the router and their configurations.
Privileged Exec