There are two commands to view the port security violation, show log messages and show ethernet-switching interface command, see attachment for reference.
Now if port is blocked due to port error then clear ethernet-switching port error interface (name of interface) command will clear the port error and port will be active again
You can also configure port error autorecovery feature by using command set ethernet-switching-options port-error-disable diabale-timout ------ (time out value in secondes ranging from 10 to 3600)
Please mark as accepted solution if it works for you
A Kudos is a good way of appreciation
Kashif Nawaz
JNCIP-Sec JNCIS-Sec JNCIS-Ent JNCIA-Junos
Kashif Nawaz
JNCIP-Sec JNCIS-Sec JNCIS-Ent JNCIA-Junos