Press "Enter" to skip to content

//> A L C A T R O N . N E T //> Posts

Alternate FTP method to upload JunOS image to Juniper switch

I have had some issues getting the ftp command on a Juniper switch to download a new JunOS image from a FTP server. Basically I would initiate this command:

request system software add ftp://test:[email protected]/jinstall-ex-2200-12.3R1.7-domestic-signed.tgz      

and then I would get this in return

Checking pending install on fpc0
Fetching package…
error: File-fetch failed
error: Couldn’t retrieve package ftp://test:[email protected]/jinstall-ex-2200-12.3R1.7-domestic-signed.tgz

And after that I was basically stuck and had no idea what else to do to resolve it and how to pull down this image. Then I knew the underlying OS running on the switch is freebsd linux and this is shows when the switch first boots up. When the switch boots you get into the command line 0% which allows you to perform linux type commands, and this includes using the ftp package, only when you type “cli” you get into JunOS.

So with that in mind here is my attempt to update the image via FTP in 0% mode. You must make sure to type in “binary” to transfer the images in binary mode. I have used /var/tmp on the switch since that had most amount of space.

root@alcatron-switch:RE:0% cd /var/tmp

root@alcatron-switch:RE:0% ftp 10.1.1.1
Connected to 10.1.1.1.
Name (10.1.1.1:root): test
331 Password required for test
Password:
230 Logged on
Remote system type is UNIX.
ftp> binary
200 Type set to I
ftp> mget jinstall-ex-2200-12.3R1.7-domestic-signed.tgz
mget jinstall-ex-2200-12.3R1.7-domestic-signed.tgz?
200 Port command successful
150 Opening data channel for file transfer.
100% |**************************************************| 96491 KB    00:00 ETA
226 Transfer OK
98807485 bytes received in 130.93 seconds (736.97 KB/s)
ftp> quit
221 Goodbye
root@alcatron-switch:RE:0%

Now we can see the image has been downloaded as its in the directory when typing ls.
root@alcatron-switch:RE:0% ls
.snap
ex_autod_config
ex_autod_rollback_cfg
gres-tp
if-rtsdb
jinstall-ex-2200-12.3R1.7-domestic-signed.tgz
krt_gencfg_filter.txt
rtsdb
vi.recover

Then to load the image to the switch simple type:

root@alcatron-switch:RE:0% cli
root@alcatron-switch>request system software add validate /var/tmp/jinstall-ex-2200-12.3R1.7-domestic-signed.tgz
root@alcatron-switch>request system reboot

I hope this has been been useful to someone as it has to me, i have no idea why the ftp method worked when outside the JunOS cli but inside JunOS it failed with an error.

1 Comment

Clearing alarms on a new Juniper switch

I recently have been using a Juniper EX2200 switch, which is quite nice, 48port, POE and much cheaper than a Cisco equivalent like a 2960S. When you initially turn on the switch you will see some alarm lights which is a Red LED and a Amber LED. The Red LED basically means the management port at back of the switch isnt in use, and the Amber means the configuration isnt saved as part of the rescue if anything goes wrong. To switch off these lights simply perform these commands:

RED LED – set chassis alarm management-ethernet link-down ignore
AMBER LED – request system configuration rescue save

2 Comments

Cisco Live 2013 Melbourne

I had the great privilege of attending Cisco Live 2013 at Melbourne this year, and it was a great event. It had many breakout sessions of upcoming technologies and releases as well as technical sessions, labs, certifications etc and of course the Cisco Party 🙂 I have included some photos of the event which I have taken, and have also included on my website the content which was covered at the event.

Please see the menu above for access to the content or you can click here 🙂

IMG_5584

Leave a Comment

Show Configuration on Juniper simplistic view

On Juniper devices usually you issue  “show configuration” which displays the configuration file how the device is configured as per below:

root@alcatron-switch> show configuration
## Last commit: 2013-01-11 14:14:58 UTC by root
version 11.4R1.6;
system {
    host-name alcatron-switch;
    root-authentication {
        encrypted-password “$1$GJroMRrQ$.UkiU”; ## SECRET-DATA
    }
    services;
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}

This is completely different compared to the cisco equivalent, to make things easier in a simplistic view similar to cisco simply issue “show configuration | display set” and voila everything is set out much neater and easy to copy and paste.

root@alcatron-switch> show configuration | display set
set version 11.4R1.6
set system host-name alcatron-switch
set system root-authentication encrypted-password “$1$GJroMRrQ$.UkiU”
set system services
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any

Leave a Comment

CactiEZ v0.7

It appears CactiEZ v0.7 is released, as i’ve been doing some research online. CactiEZ v0.7 is the new update. This update includes as per the website:

  • OS is CentOS 6 x64 (there is no 32bit version)
  • Now prompts for a few key items during the installation such as Network info, timezone, and password
  • More secure out of the box than the previous builds (some linux hardening, randomized mysql passwords, etc…)
  • PHP Timezone is automatically configured for the timezone entered during install
  • Cacti and all plugins are now installed via RPMs from my custom repository for easy updating of Cacti
  • Switched to RSyslog instead of Syslog-ng
  • NTop removed
  • Now includes a custom setup plugin that walks you through setting up your Cacti server (plugin installs, templates, etc…)
  • Custom jquery based theme donated by an anonymous source (Thanks!)
  • No upgrade path from CactiEZ v0.6 provided

I have mirrored CactiEZ v0.7 on my website for your pleasure and it can be downloaded from the downloads section or simply by clicking here.

The official website is http://cactiez.cactiusers.org

1 Comment

APC PowerChute Business Edition v9.1 for Windows

I have been using for a while APC UPS’s and their business edition software to monitor the status and get different reports from my UPS’s. I use the APC VA1500’s, and to my surprise I came accross the 9.1 version update on their website and installed it and runs quite well. This version runs on Windows 2003/XP/7 etc. I did find the APC FTP server quite slow, so I have mirrored the software on my server for anyone wishing to get their hands on PowerChute Business Edition v9.1. It is available here

10 Comments