Automatically backup Netscreen firewall

I spent some time a while ago automating the backups of network device configuration to a restricted network share and thought I’d share a simple batch script to backup the configuration from multiple Juniper Netscreen (ScreenOS) firewalls.

@echo off
REM ================================================================
REM CONFIGURATION INFO
REM ================================================================
set USERNAME=backupAccount
set PASSWORD=superSecretPassword
set CFGFILE=BackupList.txt
set DESTDIR=C:\Backups\

REM ================================================================
REM STOP CHANGING HERE OR YOU'LL BREAK SOMETHING
REM ================================================================
SET TIMESTAMP=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%
for /F "tokens=1,2 delims=," %%A in (%CFGFILE%) do (
	IF NOT EXIST "%DESTDIR%%TIMESTAMP%" mkdir "%DESTDIR%%TIMESTAMP%"
	pscp -q -scp -pw %PASSWORD% %USERNAME%@%%B:ns_sys_config "%DESTDIR%%TIMESTAMP%\%%A.cfg"
)

Continue reading Automatically backup Netscreen firewall

Turn an old Google Appliance into an ESX server

So, you’ve got an old Google Appliance kicking around? Maybe from an expired Google Enterprise Partner Program (GEP) agreement? Why not turn it into an ESX/vSphere server.

Once your license has expired, you’ll want to do is check with Google and make sure they don’t want the hardware back (they never do, but best to check). It’s safe to say that doing this is going to void your warranty.

The first thing you’re going to need to do is reset he password on the BIOS so that you can change the boot order. The easiest way to do this is to open the chassis and remove the jumper labelled PWRD_EN. The jumper is located just behind the memory towards the rear of the server. The next time you boot you can hit F2 to get into the BIOS.
Continue reading Turn an old Google Appliance into an ESX server