четверг, 14 января 2016 г.

Juniper Flash


  • nand-mediack –C






Links:
https://kb.juniper.net/InfoCenter/index?page=content&id=KB29069&actp=search
http://forums.juniper.net/t5/SRX-Services-Gateway/SRX-240H-don-t-boot-up/td-p/139987
http://forums.juniper.net/t5/SRX-Services-Gateway/nand-mediack-sh-on-SRX240/td-p/265548
http://kb.juniper.net/InfoCenter/index?page=content&id=KB20570&actp=search

четверг, 24 декабря 2015 г.

Hi all,

When building a port for the first time a dialog may appear to configure
options for that port.  This configuration is saved such that later
builds no longer show the dialog.  This behaviour has now been extended
to include options set in /etc/make.conf.  It allows you to configure
options like DOCS, NLS, X11, etc. once for all ports and not have option
dialogs pop up if those are the only options.  You can still make the
dialog appear by running "make config".

The following variables can be used in make.conf to configure options.
They are processed in the order listed below, i.e. later variables
override the effects of previous variables.  Options saved using the
options dialog are processed right before OPTIONS_SET_FORCE.

OPTIONS_SET  - List of options to enable for all ports.
OPTIONS_UNSET  - List of options to disable for all ports. 
${UNIQUENAME}_SET - List of options to enable for a specific port.
${UNIQUENAME}_UNSET - List of options to disable for a specific port.

OPTIONS_SET_FORCE - List of options to enable for all ports.
OPTIONS_UNSET_FORCE - List of options to disable for all ports.
${UNIQUENAME}_SET_FORCE - List of options to enable for a specific port.
${UNIQUENAME}_UNSET_FORCE
   - List of options to disable for a specific port.

To know the UNIQUENAME of a port you can run "make -V UNIQUENAME" in
a port directory.

An example configuration is given below.

OPTIONS_SET= NLS # enable NLS for all ports unless configured
   # otherwise using the option dialog
OPTIONS_UNSET= DOCS # aka NOPORTDOCS

# configuration for xorg-server overriding the configuration from the
# option dialog
xorg-server_SET_FORCE= AIGLX
xorg-server_UNSET_FORCE=HAL SUID

@ https://lists.freebsd.org/pipermail/freebsd-ports-announce/2013-June/000062.html

пятница, 21 ноября 2014 г.

http://www.kochetov.net.ua/?p=407 Название UniFi AP (AR7240) UniFi LR или PRO (AR7241) BZ.v5.2.1.6359.101126.2057.bin работает убивает BZ.v5.3.7782.110301.2247.bin работает убивает BZ.v5.5.12536.120806.1601.bin работает работает BZ.v5.5.2.14464.130315.0303.bin (моя сборка) работает проблема с лицензией nv-airos-unifi-bz2-v5.5.2.bin не проверялось работает unifi-bz2-2.3.8.1597-flashback-from-airos.bin — как написано в инструкции — прошивка откатывающая родную UniFi прошивку и в любом случаи должна работать, на практике — не проверялось.

четверг, 20 ноября 2014 г.

hp support


JE015A  HP 4200-12G Switch s3t03_02_07s168
https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=JE015A&lang=ru&cc=ru&prodSeriesId=4177232

*4210 JE027A  HP 4210-48 Switch s4o03_01_15s168

**https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=JE027A&lang=ru&cc=ru&prodSeriesId=4177232
*JF844A  HP 4210-24G Switch
**https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=JF844A&lang=ru&cc=ru&prodSeriesId=4177232

*JF427A S4210A_3.10.R2215P12
**https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=JF427A&lang=ru&cc=ru&prodSeriesId=4177232

*4500 JE046A HP 4500-48 Switch E4500_03.03.02p21
**https://h10145.www1.hp.com/Downloads/SoftwareReleases.aspx?ProductNumber=JE046A&lang=ru&cc=ru&prodSeriesId=4177232
*imc: JG747AAE - https://h10145.www1.hp.com/license/ViewLicense.aspx

четверг, 11 сентября 2014 г.

freebsd usefulls


remove ^M
col <infile >outfile

dd if=FreeBSD-10.0-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync

repository listing: http://svnweb.freebsd.org/
svnlite co svn://svn0.eu.freebsd.org/ports/head /usr/ports
svnlite co svn://svn0.eu.freebsd.org/base/releng/10.0 /usr/src

radius and switches




from hp.com
Usr/local/etc/raddb/clients.conf 
client 5800{ 
ipaddr  = 1.1.1.2 (5800 switch) 
secret = testing123 
} 

Usr/local/etc/raddb/users 
Testuser Cleartext-Password := “password” 
 Service-Type = NAS-Prompt-User,  (Login can also be used here) 
 Login-Service = Telnet, 
 3Com-User-Access-Level = Administrator,(needs dictionary.3com) 
 Auth-Type = System 

Usr/local/etc/raddb/dictionary.3Com 
VENDOR  3Com 43 
ATTRIBUTE 3Com-User-Access-Level  1 Integer 3Com 
VALUE 3Com-User-Access-Level Monitor 1 
VALUE 3Com-User-Access-Level Manager 2 
VALUE 3Com-User-Access-Level Administrator 3 


For SSH authentication:

/usr/local/share/freeradius 
vi dictionary.rfc2865 
#Login Services 
VALUE Login-Service  SSH 50  (add this) 

Usr/local/etc/raddb/users 

Login-Service = ssh     (can’t have both telnet and ssh) 

вторник, 9 сентября 2014 г.

freebsd zfs gpt

remount rw
zfs set readonly=off poolname

assembly partitions
gpart show
gpart create -s GPT ada1
gpart add -b 34 -s 128 -t freebsd-boot ada1
gpart add -t freebsd-zfs ada1
gpart modify -i 2 -l disk500 ada1

gpart create -s GPT ada0
gpart add -b 40 -s 1024 -t freebsd-boot -l gptboot2 ada0
gpart add -s 2G -t freebsd-swap -l swap2 ada0
gpart add -t freebsd-zfs -l zfs2 ada0

gpart list
old: gptid/4800820b-7896-11e3-ad2b-20cf30c4dac7
new: gptid/fc53208e-7d58-11e3-af2d-20cf30c4dac7
zpool attach jasmine gptid/4800820b-7896-11e3-ad2b-20cf30c4dac7 gptid/fc53208e-7d58-11e3-af2d-20cf30c4dac7
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0


zpool status
zpool attach zroot gpt/disk0 gpt/disk500

zfs list -t snapshot
zfs send xroot/jailw@20140114 > xroot-jailw-20140114
cat file | zfs recv pool/fsname

zfs snapshot -r zroot@20150101
version 1.1
for ada0

gpart destroy ada0
gpart create -s GPT ada0
gpart add -b 34 -s 1024 -t freebsd-boot ada0
gpart add -t freebsd-zfs ada0
gpart modify -i 2 -l drivelabel1 ada0

mysql

Mysql Logs & Clusters


show master status\G;
show binary logs;
show slave status\G;