Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any simple method to check from CLI how many bytes has been sent over physical/logical router interface? I am interested in Juniper devices. It would be great if command result was a short output containing only (or almost only) information that I am interested in.

So far, I tried show interface fe-0/0/0 statistics but it gives very long output not containing information about bytes sent (only pps information). Command show interfaces fe-0/0/0 detail prints number of bytes sent, but it is places among others data and as I've written previously, I'd like to have it in a single line format (or almost-single-line format :))

share|improve this question

Are you sure that your purpose wouldnt be better served by using SNMP? 'simple' information is what it does best.

share|improve this answer
indeed. check for JunOS enterprise mib and for the juniper-if-mib. – petrus Aug 7 '11 at 13:49
I cannot use SNMP for this purpose, because I am testing some modified custom version of SNMP and I want to compare these two values – Piotrek De Aug 7 '11 at 14:37
It sounds like you will have to get the bytes sent via the show detail, and then do a bunch of perl (or your choice) post processing to get the information down to exactly you want... at which point you will have re-implemented snmp in a less scalable fashion. – Aaron Aug 7 '11 at 14:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.