<div dir="ltr">On Thu, Nov 7, 2013 at 8:23 AM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=jcolp@digium.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">jcolp@digium.com</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">George Joseph wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Comments please...<br>
<br>
I tried to balance readability, usefullness, and the fact that the<br>
output is a flat representation of a relational model.<br>
<br>
Here's a pastebin if you can't read the output below.<br>
<a href="http://pastebin.com/JiPKLY3A" target="_blank">http://pastebin.com/JiPKLY3A</a><br>
</blockquote>
<br>
My worry about this is that we're giving *too much* information in one command and overloading the person looking at it. Given a large number of endpoints it's now potentially using, well, a lot of lines per endpoint. I think a simplified command that simply gives a list of the endpoints would be nice (in addition to this), and then if more granular info is required by the user they can get the specific endpoint.<br>

<br>
Thoughts?<span class=""><font color="#888888"><br>
<br></font></span></blockquote><div>Yeah, it's a tough call.  From an AMI or ARI perspective, sure I can get a list of endpoints, iterate over the list and get each endpoint.  You can't ask a human to do that however.  As an administrator, I'm looking for a snapshot of the health of the pbx with a minimum of keystrokes, not just a list of endpoints.   </div>
<div><br></div><div>Maybe it is 2 commands.  'pjsip show endpoints' produces a list, 1 line per endpoint with a few choice fields directly related to the endpoint object and another command that shows the complex list.</div>
<div><br></div><div>How about 'pjsip list' that does just flat, 1 line lists and 'pjsip show' that does complex output?  For example, 'pjsip show endpoint' would show detail for a single endpoint and 'pjsip show endpoints' would show the complex list?</div>
</div></div></div>