JunOS Upgrade

For some reason, JunOS 12.1X46-D65.4 on SRX platform can’t validate any update it takes me several attempts before figure out to run the upgrade with the “no-validate” option. root> request system configuration rescue save root> request system autorecovery state save root> request system storage cleanup List of files to delete: Size Date Name 11B Dec 29 22:35 /cf/var/jail/tmp/alarmd.ts 142.6M Dec 29 22:38 /cf/var/jail/tmp/install/junos-srxsme-12.1X46-D82-domestic.tgz 420B Dec 29 22:36 /cf/var/jail/tmp/jweb-users.xml 128B Dec 29 22:40 /cf/var/log/interactive-commands.0.gz 175B Dec 29 22:40 /cf/var/log/messages.0.gz 27B Dec 29 22:32 /cf/var/log/wtmp.0.gz Delete these files ? [yes,no] (no) yes root> Follow: ...

11 January 2021 @ 08:27 · Updated: 30 June 2026 @ 03:28 · leo

Hauwei dongle AT commad

AT^U2DIAG=1 Modem and CD-Rom Mode AT^U2DIAG=255 Modem+CD-Rom+Card-Reader Modem+ Factory Defaults Setting AT^U2DIAG=256 Modem+Card-Reader Mode AT^U2DIAG=257 Disable Application Port AT^U2DIAG=276 Reset to factory Defaults AT^CVOICE=? Gives Status of your modems voice.. AT^CVOICE=0 Enable Voice AT^CVOICE=1 Disable Voice ATI Gives Manufacture Information of Modem AT+CGMR Gives firmware version of Modem AT+CGSN Gives IMEI of Modem AT+CIMI Gives IMSI of Modem

18 June 2013 @ 05:09 · Updated: 30 June 2026 @ 03:28 · leo

JunOS - Update with low space CF

dmesg tail: da0 at umass-sim0 bus 0 target 0 lun 0 da0: <SanDisk Cruzer Micro 6.51> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 988MB (2025471 512 byte sectors: 64H 32S/T 988C) root@amnesyac% dd if=/dev/zero of=/dev/da0 bs=128k 2435+0 records in 2434+0 records out 319029248 bytes transferred in 352.314078 secs (905525 bytes/sec) root@amnesyac% disklabel -R -w da0 auto root@amnesyac% newfs -U /dev/da0 /dev/da0: 989.0MB (2025468 sectors) block size 16384, fragment size 2048 using 6 cylinder groups of 183.69MB, 11756 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 32, 376224, 752416, 1128608, 1504800, 1880992 root@amnesyac% mkdir /var/tmp/usb root@amnesyac% mount /dev/da0 /var/tmp/usb root@amnesyac% mv junos-jsr-12.1R5.5-export.tgz /cf/var/tmp/usb/ root@amnesyac% cli root@amnesyac> file list detail /var/tmp/usb /var/tmp/usb: total 406474 drwxrwxr-x 2 root operator 512 Feb 28 04:52 .snap/ -rw-r--r-- 1 root wheel 208012563 Feb 27 19:33 junos-jsr-12.1R5.5-export.tgz root@amnesyac> request system software add junos-jsr-12.1R5.5-export.tgz ERROR: Missing package: /cf/root/junos-jsr-12.1R5.5-export.tgz root@amnesyac> request system software add /var/tmp/usb/junos-jsr-12.1R5.5-export.tgz NOTICE: Validating configuration against junos-jsr-12.1R5.5-export.tgz. NOTICE: Use the 'no-validate' option to skip this if desired. Checking compatibility with configuration Initializing... Verified manifest signed by PackageProduction_9_6_0 Using /var/tmp/usb/junos-jsr-12.1R5.5-export.tgz Checking junos requirements on / Available space: 80793 require: 4688 Saving boot file package in /var/sw/pkg/junos-boot-jsr-12.1R5.5.tgz Verified manifest signed by PackageProduction_12_1_0 Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz cp: /cf/var/validate/chroot/var/etc/resolv.conf and /etc/resolv.conf are identical (not copied). cp: /cf/var/validate/chroot/var/etc/hosts and /etc/hosts are identical (not copied). [edit system services ssh] 'ssh' warning: daemon binary /usr/sbin/sshd not found mgd: commit complete Validation succeeded Installing package '/var/tmp/usb/junos-jsr-12.1R5.5-export.tgz' ... Verified junos-boot-jsr-12.1R5.5.tgz signed by PackageProduction_12_1_0 Verified junos-jsr-12.1R5.5-export signed by PackageProduction_12_1_0 Available space: 81388 require: 4688 WARNING: JUNOS edition export != domestic, need to regenerate ssh host keys Saving boot file package in /var/sw/pkg/junos-boot-jsr-12.1R5.5.tgz JUNOS 12.1R5.5 will become active at next reboot WARNING: A reboot is required to load this software correctly WARNING: Use the 'request system reboot' command WARNING: when software installation is complete Saving package file in /var/sw/pkg/junos-12.1R5.5.tgz ... cp: /var/sw/pkg/junos-12.1R5.5.tgz: No space left on device Saving state for rollback ... root@amnesyac> request system reboot Reboot the system ? [yes,no] (no) yes Shutdown NOW! [pid 1988] root@amnesyac> *** FINAL System shutdown message from root@amnesyac *** System going down IMMEDIATELY Timeout, server not responding.

28 February 2013 @ 01:59 · Updated: 30 June 2026 @ 03:28 · leo

Blackberry Services Netmask

Recently I’ve deployed some Blackberry Enterprise Server, this link is useful for firewalls policy deploy http://www.blackberry.com/btsc/KB11036

26 November 2012 @ 03:30 · leo

IPv6 prefix delegation - Cisco IOS

DRAFT ipv6 unicast-routing ipv6 cef interface FastEthernet0/0 ipv6 address NODE-PD ::1/64 ipv6 enable interface Dialer0 ipv6 address NODE-PD ::1/128 ipv6 enable ipv6 dhcp client pd NODE-PD rapid-commit ipv6 route ::/0 Dialer0 DRAFT

9 June 2012 @ 22:35 · Updated: 30 June 2026 @ 03:28 · leo

Telecom Italia - IPv6 Pilot on Cisco

To my amazement, Telecom Italia released a pilot project of IPv6 deployment on residential/dynamic ip only adsl internet access, but on theirs support site there’s configuration only for some useless systems. So, I’ve decided to write a configuration for Cisco platform. Usually the typical Telecom Italia PPPoE or PPPoA ADSL connection with dynamic IPv4 only was authenticated with “aliceadsl” as user and password, now with bran new credential along IPv4 the endpoint router advertise a IPv6 /64 class (always dynamic). ...

8 June 2012 @ 23:44 · Updated: 30 June 2026 @ 03:28 · leo

Juniper - Netscreen upgrade via TFTP

fw01-> save software from tftp 10.255.4.210 ns50ns25.5.4.0r21.0 to flash Load software from TFTP 10.255.4.210 (file: ns50ns25.5.4.0r21.0). !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! tftp received octets = 5994268 tftp success! TFTP Succeeded Save to flash. It may take a few minutes ...platform = 14, cpu = 10, version = 18 update new flash image (01e97ddc,5994268) platform = 14, cpu = 10, version = 18 offset = 20, address = 3060000, size = 5994189 date = 4062f3e0, sw_version = 4062f3e4, cksum = f7522c46 Program flash (5994268 bytes) ... sec_size :131072 align_support 1 , mode 96028 ++++++++++++++++++++++++++++++++++++++++++++++done Done fw01-> reset System reset, are you sure? y/[n] y In reset ...

20 June 2011 @ 01:49 · Updated: 30 June 2026 @ 03:28 · leo

Netmask Conversion

Bitmask (Bits) Dotted Decimal Hexadecimal Binary /0 0.0.0.0 0x00000000 00000000 00000000 00000000 00000000 /1 128.0.0.0 0x80000000 10000000 00000000 00000000 00000000 /2 192.0.0.0 0xc0000000 11000000 00000000 00000000 00000000 /3 224.0.0.0 0xe0000000 11100000 00000000 00000000 00000000 /4 240.0.0.0 0xf0000000 11110000 00000000 00000000 00000000 /5 248.0.0.0 0xf8000000 11111000 00000000 00000000 00000000 /6 252.0.0.0 0xfc000000 11111100 00000000 00000000 00000000 /7 254.0.0.0 0xfe000000 11111110 00000000 00000000 00000000 /8 255.0.0.0 0xff000000 11111111 00000000 00000000 00000000 /9 255.128.0.0 0xff800000 11111111 10000000 00000000 00000000 /10 255.192.0.0 0xffc00000 11111111 11000000 00000000 00000000 /11 255.224.0.0 0xffe00000 11111111 11100000 00000000 00000000 /12 255.240.0.0 0xfff00000 11111111 11110000 00000000 00000000 /13 255.248.0.0 0xfff80000 11111111 11111000 00000000 00000000 /14 255.252.0.0 0xfffc0000 11111111 11111100 00000000 00000000 /15 255.254.0.0 0xfffe0000 11111111 11111110 00000000 00000000 /16 255.255.0.0 0xffff0000 11111111 11111111 00000000 00000000 /17 255.255.128.0 0xffff8000 11111111 11111111 10000000 00000000 /18 255.255.192.0 0xffffc000 11111111 11111111 11000000 00000000 /19 255.255.224.0 0xffffe000 11111111 11111111 11100000 00000000 /20 255.255.240.0 0xfffff000 11111111 11111111 11110000 00000000 /21 255.255.248.0 0xfffff800 11111111 11111111 11111000 00000000 /22 255.255.252.0 0xfffffc00 11111111 11111111 11111100 00000000 /23 255.255.254.0 0xfffffe00 11111111 11111111 11111110 00000000 /24 255.255.255.0 0xffffff00 11111111 11111111 11111111 00000000 /25 255.255.255.128 0xffffff80 11111111 11111111 11111111 10000000 /26 255.255.255.192 0xffffffc0 11111111 11111111 11111111 11000000 /27 255.255.255.224 0xffffffe0 11111111 11111111 11111111 11100000 /28 255.255.255.240 0xfffffff0 11111111 11111111 11111111 11110000 /29 255.255.255.248 0xfffffff8 11111111 11111111 11111111 11111000 /30 255.255.255.252 0xfffffffc 11111111 11111111 11111111 11111100 /31 255.255.255.254 0xfffffffe 11111111 11111111 11111111 11111110 /32 255.255.255.255 0xffffffff 11111111 11111111 11111111 11111111

9 May 2010 @ 10:50 · Updated: 30 June 2026 @ 03:28 · leo

CentOS - IPv6 interface

You need to update and configure following files for IPv6 configuration: Edit: /etc/sysconfig/network And append following line, to enable in systemwide the ipv6 protocol: NETWORKING_IPV6=yes Edit: /etc/sysconfig/network-scripts/ifcfg-eth1 (or your interface number) And append following line, to enable ipv6 on interface and the address/gateway if you use static routing: IPV6INIT=yes IPV6ADDR=2001:1418:0193:000B::210 IPV6_DEFAULTGW=2001:1418:0193:000B::251 Save, close and restart network service: # service network restart

14 April 2010 @ 09:53 · Updated: 30 June 2026 @ 03:28 · leo

MSTSC - Admin session

Memo per il Giaco: Syntax MSTSC option MSTSC /Edit"ConnectionFile" MSTSC /migrate Options ConnectionFile The name of an RDP file for connection /v: The remote computer to connect to /console Connect to the console of a server (NT/XP) /Admin Connect to a session for administering the server(Vista/2008) /f Start in Full Screen mode /w:width Width of the RDP screen /h:height Height of the RDP screen /span Match the Remote Desktop width and height with the local virtual desktop, spanning across multiple monitors if necessary.(Vista/2008) /public Run Remote Desktop in public mode. (Vista/2008) In public mode, passwords and bitmaps are not cached. /edit Open the RDP file for editing. /migrate Convert a legacy Client connection file into an .RDP file

19 February 2010 @ 14:56 · Updated: 30 June 2026 @ 03:28 · leo