Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 goo.gl/24e0J for JunOS enterprise mib and goo.gl/Er7Dq 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
2  
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

 
discard

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.