Category Archives: Hardware

Resetting Admin Password & Factory Reset a Nokia IP390 via CLI

So this is going to be quick post, as recently i had to decommission a Nokia IP390 Checkpoint firewall, where i had no details for the device 😀

Fortunately I was on site and had my trusty console cable! So this is going to be a reminder to myself on: How to do a password reset and factory reset of a Nokia IP390 via CLI

Let’s get cracking 🙂

Password Reset

Firstly, you need to have console access and the ability to reboot the device.

You will need to enter single user mode. Reboot the device and as it is going through it boot process, you will need to look for Type any character to enter command mode, once you see that hit enter and type boot -s to enter single user mode.

1,072,300,032 bytes of system memory tested OK
Starting bootmgr
Loading boot manager..
Boot manager loaded.
diskless platform
Entering autoboot mode.
Type any character to enter command mode.
BOOTMGR[1]> boot -s

You will be prompted with Enter pathname of shell or RETURN for sh: Just hit enter.

Enter pathname of shell or RETURN for sh:

With that you will be in Single-User Mode now, as you will have # prompt.

To reset the admin password, you need to run the overpw script: /etc/overpw

# /etc/overpw
    This program is used to set a temporary admin password when you have 
    lost the configured password.  You must have booted the machine into 
    single user mode to run it.  The configured password will be changed.
    Please change the temporary password as soon as you log on to your
    system through voyager.

Please enter password for user admin: 
Please re-enter password for confirmation: 
Continue? [n] y

You will be prompted with:

Admin password changed.  You may enter ^D to continue booting.  
    THIS IS A TEMPORARY PASSWORD CHANGE.
    PLEASE USE VOYAGER TO CREATE A PERMENANT PASSWORD FOR THE USER ADMIN.

As instructed hit ctrl + D and the booting process will continue. With that the admin password will be reset

Factory Reset

Now we have got admin access to the device, to do a factory reset is pretty noddy, to be honest. The IP390 is UNIX based cli, as shown by the single-user mode, firstly su into root:

Nokia[admin]# su root

Next, we need to change directory into the config folder:

Nokia[admin]# ls
bin     cdrom   dev     image   proc    tmp     var
bootmgr config  etc     opt     sbin    usr     web
Nokia[admin]# cd config

Delete all files the active files:

Nokia[admin]# ls
active  db
Nokia[admin]# rm active
Nokia[admin]# ls
db

Once all the files have been deleted, all that is needed is to reboot the device for the change to take affect:

Nokia[admin]# reboot

With that Bob’s your uncle, Sally’s your aunty and you have a decommissioned Nokia IP390 😀

Share this:
Share

How to access HP’s ILO remote console via SSH

This will be a quick reminder for myself on how you can remote console via SSH on HP Blade Server and Standalone Servers 🙂

1. Connect to the ilo using SSH, Whether its with PuTTy (Windows) or Terminal (MacOSX or Linux) with the super or admin user and pass.
ssh [email protected]_address

[[email protected] ~]$ ssh 10.2.0.21 -l Administrator
[email protected]'s password: 
User:Administrator logged-in to ILO----n.(10.2.0.21)
iLO 2 Standard Blade Edition 2.25 at 16:36:26 Apr 14 2014
Server Name: vMX-Bay1
Server Power: On

hpiLO-> 

2. Having entered onto the server now via ilo, you will be able to connect to the remote console by either using the commands TEXTCONS or VSP

TEXTCONS

TEXTCONS is short for text console. When I used TEXTCONS, I got this output Monitor is in graphics mode or an unsupported text mode.

hpiLO-> TEXTCONS

Starting text console.
Press 'ESC (' to return to the CLI Session.

hpiLO-> 

Monitor is in graphics mode or an unsupported text mode.

From some quick reading it appears that some OS do not supported access using TEXTCONS, which is no help for me, however this is one way!

VSP

VSP is Virtual Serial Port. As the name suggests it is the virtual port, that is the same as, if you connected a serial cable onto the server. This worked a treat for me, so I am happy now 😀

hpiLO-> VSP

Starting virtual serial port.
Press 'ESC (' to return to the CLI Session.

hpiLO-> Virtual Serial Port active: IO=0x03F8 INT=4

Ubuntu 14.04.2 LTS lab13 ttyS0

lab13 login: 

Job done 🙂

Other CLI commands available:

HP CLI Commands:

POWER    : Control server power.
UID      : Control Unit-ID light.
NMI      : Generate an NMI.
VM       : Virtual media commands.
VSP      : Invoke virtual serial port.
VSP LOG  : Invoke virtual serial port data logging.
TEXTCONS : Invoke Remote Text Console on supported platforms.
NOTE
It is important to note as well, there some OS that don’t support TEXTCONS or VSP. I had installed ESXi 6 on the blade and although it didn’t give me an error I wasn’t able to get any output. So this can be a little hit and miss at times. Its something I probably should look into but when i have some time in the future!
Share this:
Share