Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
juniper:junos [2011/02/01 15:58]
a
juniper:junos [2015/05/21 14:57] (current)
zagi [Lost disk from Junos boot order]
Line 15: Line 15:
    dd if=/dev/zero of=/dev/rad3 count=20    dd if=/dev/zero of=/dev/rad3 count=20
    dd if=install-media-5.4R3.2-domestic of=/dev/rad3 bs=64k    dd if=install-media-5.4R3.2-domestic of=/dev/rad3 bs=64k
 +
 +===== junos bash policer =====
 +<code bash>
 +#!/bin/bash
 +# junos bash policer
 +# http://tnt.aufbix.org/
 +echo
 +if [ $# -lt 2 ]; then
 +echo 1>&2 "$0: not enough arguments"
 +echo
 +echo "example:"
 +echo -e "1gb =\t./junos_policer\t1gb\t1000000000"
 +echo -e "100mb =\t./junos_policer\t100mb\t100000000"
 +echo -e "1mb =\t./junos_policer\t1mb\t1000000"
 +exit 0
 +fi
 +echo
 +cir=$(($2/1000*500/8))
 +if (( $cir  < 15000 )); then
 +cir=15000
 +fi
 +echo "set firewall policer $1 logical-interface-policer"
 +echo "set firewall policer $1 if-exceeding bandwidth-limit $2"
 +echo "set firewall policer $1 if-exceeding burst-size-limit $cir"
 +echo "set firewall policer $1 then discard"
 +</code>
  
 ===== Lost disk from Junos boot order ===== ===== Lost disk from Junos boot order =====
-original: [[The Data Plumber|http://dataplumber.wordpress.com/2011/01/26/lost-disk-from-junos-boot-order/]]+original: [[http://dataplumber.wordpress.com/2011/01/26/lost-disk-from-junos-boot-order/|The Data Plumber]]
  
  
juniper/junos.1296572280.txt.gz ยท Last modified: 2011/02/01 15:58 by a
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready