Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
juniper:junos [2006/03/23 20:01] a something to warmup |
juniper:junos [2015/05/21 14:57] (current) zagi [Lost disk from Junos boot order] |
||
---|---|---|---|
Line 10: | Line 10: | ||
otherwise the new configuration will be automatically rollback if not confirmed. | otherwise the new configuration will be automatically rollback if not confirmed. | ||
+ | |||
+ | ===== Flash recover ===== | ||
+ | |||
+ | dd if=/ | ||
+ | dd if=install-media-5.4R3.2-domestic of=/ | ||
+ | |||
+ | ===== junos bash policer ===== | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | # junos bash policer | ||
+ | # http:// | ||
+ | echo | ||
+ | if [ $# -lt 2 ]; then | ||
+ | echo 1>&2 "$0: not enough arguments" | ||
+ | echo | ||
+ | echo " | ||
+ | echo -e "1gb =\t./ | ||
+ | echo -e "100mb =\t./ | ||
+ | echo -e "1mb =\t./ | ||
+ | exit 0 | ||
+ | fi | ||
+ | echo | ||
+ | cir=$(($2/ | ||
+ | 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" | ||
+ | </ | ||
+ | |||
+ | ===== Lost disk from Junos boot order ===== | ||
+ | original: [[http:// | ||
+ | |||
+ | |||
+ | **To check this out do the following: | ||
+ | |||
+ | 1. start shell | ||
+ | 2. sysctl machdep.bootdevs | ||
+ | |||
+ | This second command will tell you the order in which devices are booted from. If ‘disk’ is absent from that list, you need to add it back in and reboot the routing-engine. Do the following: | ||
+ | |||
+ | su root (you’ll need the root password for this) | ||
+ | | ||
+ | Exit from the shell and reboot the RE. | ||
+ | |||
+ | The above is for an MX960 with an RE-2000 installed, and the device names change a bit depending on what you are using. Best to check it against another working system if you can. | ||
+ | |||
+ | Here’s a cut-and-paste from my MX960: | ||
+ | < | ||
+ | root@MX960-RE1% sysctl machdep.bootdevs | ||
+ | machdep.bootdevs: | ||
+ | root@MX960-RE1% sysctl -w machdep.bootdevs=usb, | ||
+ | machdep.bootdevs: | ||
+ | root@MX960-RE1% exit | ||
+ | exit | ||
+ | % sysctl machdep.bootdevs | ||
+ | machdep.bootdevs: | ||
+ | % exit | ||
+ | </ | ||