cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1835
Views
10
Helpful
3
Replies

Monitoring Traffic in Bytes (outbound/inbound)

Frank17
Level 1
Level 1

I need to have an output similar to the Linux ifconfig that will give me the outbound traffic in bytes and the inbound traffic in bytes . Also I would like to see it in the router logs as well so I can add data to my rsyslog  program 

Something similar to the Linux

 

RX packets 130705 bytes 22071556 (21.0 MiB)

TX packets 49312 bytes 11587251 (11.0 MiB)

 

Is that possible?

2 Accepted Solutions

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

Cisco Devices always produce  in bits - you can do calculation while shipping the Logs to SYSLOG Server or SYSLOG Server can run the script to convert bits to bytes.

 

if you want to be human readable in mbit.

 

show interfaces gigabitEthernet 1/1/1 human-readable

 

5 minute input rate 4.99 mega-bits/sec , 1.56 Kpps
5 minute output rate 1.36 mega-bits/sec , 523 pps

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

balaji.bandi
Hall of Fame
Hall of Fame

Router/ Switch syslog information related to interface can not be sent automatically to syslog server.

 

you need to follow one of the mechanism to ship the logs to syslog server to make your own dashboard or reports.

 

1. EEM Script which run on the device and keep send information to syslog server.

2. SNMP polling from syslog Server to device (this is is the best approach)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

Cisco Devices always produce  in bits - you can do calculation while shipping the Logs to SYSLOG Server or SYSLOG Server can run the script to convert bits to bytes.

 

if you want to be human readable in mbit.

 

show interfaces gigabitEthernet 1/1/1 human-readable

 

5 minute input rate 4.99 mega-bits/sec , 1.56 Kpps
5 minute output rate 1.36 mega-bits/sec , 523 pps

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I see. But how can you automate the process from the router , considering that logging is happening on trigger and alerts to a rsyslog,like for exampe SSH login/Logout.

 

balaji.bandi
Hall of Fame
Hall of Fame

Router/ Switch syslog information related to interface can not be sent automatically to syslog server.

 

you need to follow one of the mechanism to ship the logs to syslog server to make your own dashboard or reports.

 

1. EEM Script which run on the device and keep send information to syslog server.

2. SNMP polling from syslog Server to device (this is is the best approach)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card