Asterisk CLI command output, howto save to file

How does one save output from "asterisk -r sip show peers"
or any command entered from the asterisk cli?

I want to setup remote monitoring of my system for peer latency, sip registration, channel use, etc.

if the answer is right in front of me in these forums or on the web I apologize.

thanks via9

It’s as far away as asterisk -?

asterisk -rx ‘sip show peers’ > somefile

1 Like