CLI command to monitor endpoint status

Wanting to monitor all registered phones and when they go offline. I am using the asterisk command “pjsip show registrations” and can see all endpoints at once. The question can I add a flag to display only devices not registered?

Use Grep on the result.

Something like (from the bash command prompt):

asterisk -rx “pjsip list endpoints” | grep -Ev “Unavailable|found|CID|=”

adjust it to your specific need.

Worked Perfectly. IS there any list of what can be monitored via cli. For example, power, backups, call failures, etc?

I don’t understand your question, I think. If you are looking for asterisk commands: Asterisk CLI - VoIP-Info

I found what I was looking for, thanks for the help.