Category Archives: Uncategorized

Cisco traffic shaping

There are a few tools to convert Mb to bits, bytes to bits etc, but I like this one – http://www.matisse.net/bitcalc/

Directions are as follows:

direction = input or output
shaped = Speed you want to traffic shape in bits
normal burst = (shaped / 8) * 1.5 
extended burst = (normal burst * 2) 

 

For example, if you would like to ensure customer has 100Mbps speeds, you would do –

rate-limit input 104857600 19660800 39321600 conform-action transmit exceed-action drop
rate-limit output 104857600 19660800 39321600 conform-action transmit exceed-action drop

disk usage centos

I find this command very useful when searching for large files that have filled up a server –

du -kscxh *

-k     like –block-size=1K

-s, –summarize
display only a total for each argument

-c, –total
produce a grand total

-x, –one-file-system
skip directories on different file systems

-h, –human-readable
print sizes in human readable format (e.g., 1K 234M 2G)