Junos – aktulizacja

Poniżej przedstawiam mój sposób na aktualizację Junos czy to w SRX’ie czy to na switchu EX

Co potrzebujemy:

  • serwer ftp – pamiętajmy o systemie antywirusowym często blokuje dostęp do ftp pod Windowsem.
  • dostęp do urządzenia

Wykonujemy kroki

  1. Logujemy się na urządzenie  do shella
  2. przechodzimy do katalogu /var/tmp
  3. uruchamiamy klienta ftp
  4. Pobieramy naszą wersję Junosa
root@srx_lab% cd /var/tmp
root@srx_lab% ftp 
ftp> open
(to) 192.168.1.11
Connected to 192.168.1.11.
220 Xlight FTP Server 3.8 ready...
Name (192.168.1.11:root): ftp_user
331 Password required for ftp_user
Password:
230 Login OK
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 
ftp> cd junos
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for /bin/ls (405 bytes).
drw-rw-rw- 1 ftp ftp                0 Aug 19 22:21 .
drw-rw-rw- 1 ftp ftp                0 Aug 19 22:21 ..
-rw-rw-rw- 1 ftp ftp         99717189 Jul 21 19:48 jinstall-ex-2200-12.3R10.2-domestic-signed.tgz
-rw-rw-rw- 1 ftp ftp           377238 Jul 21 19:49 jloader-ex-2200-11.3I20110326_0802_hmerge-signed.tgz
-rw-rw-rw- 1 ftp ftp        147584680 Aug 19 22:16 junos-srxsme-12.1X46-D35.1-domestic.tgz
226 Transfer complete (2.531 KB/s).
ftp> get junos-srxsme-12.1X46-D35.1-domestic.tgz
local: junos-srxsme-12.1X46-D35.1-domestic.tgz remote: junos-srxsme-12.1X46-D35.1-domestic.tgz
200 PORT command successful
150 Opening BINARY mode data connection for junos-srxsme-12.1X46-D35.1-domestic.tgz (147584680 bytes).
100% |*******************************************************************************
***************************************************************************|   140 MB    00:00 ETAA
226 Transfer complete (835.123 KB/s).
147584680 bytes received in 176.58 seconds (816.21 KB/s)
ftp> quit
221 Good-Bye

5. Przechodzimy do aktualizacji:

root@srx_lab% cli
root@srx_lab> request system software add /var/tmp/junos-srxsme-12.1X46-D35.1-domestic.tgz 
NOTICE: Validating configuration against junos-srxsme-12.1X46-D35.1-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Formatting alternate root (/dev/da0s2a)...
/dev/da0s2a: 297.9MB (610044 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 74.47MB, 4766 blks, 9600 inodes.
super-block backups (for fsck -b #) at:
 32, 152544, 305056, 457568
saving package file in /var/sw/pkg ...
 
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProduction_11_4_0
Verified junos-11.4R9.4-domestic signed by PackageProduction_11_4_0
Using junos-12.1X46-D35.1-domestic from /altroot/cf/packages/install-tmp/junos-12.1X46-D35.1-domestic
Copying package ...
Verified manifest signed by PackageProduction_12_1_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
0Connectivity fault management process: rtslib: ERROR kernel does not support all messages: expected 102 got 101,a reboot or software upgrade may be required
Connectivity fault management process:
Connectivity fault management process: rtslib: WARNING version mismatch for msg residx: expected 98 got 0,a reboot or software upgrade may be required
Connectivity fault management process:
Connectivity fault management process: rtslib: WARNING version mismatch for msg unknown: expected 98 got 6,a reboot or software upgrade may be required
Connectivity fault management process:
pwd_mkdb: /cf/var/etc/master.passwd: No such file or directory
mgd: warning: Command exited: PID 2479, status 1, command pwd_mkdb
mgd: error: failed to rebuild passwd database for
mgd: chown: root: Invalid argument
mgd: chown: root: Invalid argument
mgd: commit complete
Validation succeeded
rm: /cf/var/validate/chroot/mfs/var/etc/pam.conf: Operation not permitted
rm: /cf/var/validate/chroot/mfs/var/etc: Directory not empty
rm: /cf/var/validate/chroot/mfs/var: Directory not empty
rm: /cf/var/validate/chroot/mfs: Directory not empty
rm: /cf/var/validate/chroot: Directory not empty
Installing package '/altroot/cf/packages/install-tmp/junos-12.1X46-D35.1-domestic' ...
0Verified junos-boot-srxsme-12.1X46-D35.1.tgz signed by PackageProduction_12_1_0
Verified junos-srxsme-12.1X46-D35.1-domestic signed by PackageProduction_12_1_0
JUNOS 12.1X46-D35.1 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 state for rollback ...

root@srx_lab>

7. Na koniec wykonujemy restart – i posiadamy zaktualizowane urządzenie do wymaganej wersji.

equest system reboot 
Reboot the system ? [yes,no] (no) yes 

Shutdown NOW!
[pid 2666]

root@srx_lab>                                                          
*** FINAL System shutdown message from root@srx_lab ***
System going down IMMEDIATELY                                                  

 

 

 

Pasjonat komputerowy od zawsze oraz maniak w zakresie sieci, wirtualizacji oraz bezpieczeństwa IT. Kompetentny inżynier z dużym doświadczeniem w realizacji projektów informatycznych i telekomunikacyjnych. Wieloletni administrator IT, który utrzymuje systemy informatyczne dostosowując je do wymogów biznesowych z zapewnieniem dostępności 24/7/365.
Posts created 126

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top