July 2017

Juniper – firmware upgrade

2017-07-18T10:14:45+00:00 July 17th, 2017|Juniper - Recovery|

Upgrade firmware from usb – go to shell

root> start shell

find usb drive use

root@:RE:0% ls /dev/da*

then to test drive/partition

root@:RE:0% file -s /dev/da1s2

create folder for usb drive and mount usb drive to the folder

root@:RE:0% mkdir /var/tmp/usb
root@:RE:0% mount -t msdosfs /dev/da1s2 /var/tmp/usb

move image file to /var/tmp

cd /var/tmp/usb && mv jinstall-ex-2200-12.3R8.7-domestic-signed.tgz /var/tmp

go back to cli and run upgrade

root@bbc-temp-sw:RE:0% cli
root@bbc-temp-sw> request system software add /var/tmp/jinstall-ex-2200-12.3R8.7-domestic-signed.tgz validate reboot

Mac OS X – File limits

2017-07-16T02:31:48+00:00 July 16th, 2017|Linux, Mac|

file handles opend:

lsof | cut -f 1 -d ' ' | uniq -c | sort

run maxfiles limit

launchctl limit maxfiles

it should give you result like:

bartron ➜ ~/Users/bartosz launchctl limit maxfiles
maxfiles 256 unlimited

to up limit files run:

bartron ➜ ~/Users/bartosz sudo launchctl limit maxfiles 512 20000

Load More Posts