Archive for March, 2010

Portforwarding on a zyxel device using the ZynOS cli

Monday, March 29th, 2010

Due to a change of jobs, my xDSL connection was terminated today. Luckily I have other means of Inet access, but given that I run my own server I needed some portforwarding in order to be a happy camper.

Getting access to the router using telnet was easy.

telnet 10.0.0.1 23023

It was harder (hence this post) to figure out to do port forwarding. Basic stuff first. What version of ZynOS?

ras> sys version

 ZyNOS version: V3.40(AHX.4) | 05/02/2008
 romRasSize: 1407100
 system up time:   513:16:29 (b0380b6 ticks)
 bootbase version: V1.06 | 1/20/2006

Using help I figure out that I needed to go for the ip section

ras> help
Valid commands are:
sys             exit            ether           wan
ip              bridge          lan

But then I was lost

ras> ip
address         alias           aliasdis        arp
dhcp            dns             httpd           icmp
ifconfig        ping            route           smtp
status          udp             rip             tcp
telnet          tftp            traceroute      xparent
tredir          backup          mcastChan       igmp
policyrouting

Where was the portforward section?? I litteraly used an hour figuring out what to do. It turns out, that it is a leap of faith kind of thing:

ras> ip nat
hashTable       server          service         resetport
incikeport      session         addrmap         AOL-version9

Lo and behold, it is all there ;-) The rules are ordered in sets, where you edit a given rule in a set. When you get hold of the syntax it is actually quite easy

ras> ip nat server disp
Server Set: 1

Rule         name             Svr P Range    Server IP       LeasedTime
 Active  protocol     Int Svr P Range    Remote Host IP Range
--------------------------------------------------
 1 DMZ                       default             0.0.0.0   0
 No      ALL               0 - 0              0.0.0.0 - 0.0.0.0
 2 WWW                       80 - 80            10.0.0.5   0
 YES      ALL               0 - 0              0.0.0.0 - 0.0.0.0

Then you load a set, edit the rules and write the set. Eg

# Load set 1
ras> ip nat server load 1
#edit rule 2
ras> ip nat server edit 2 forwardip 10.0.0.5
# save set 1
ras> ip nat server save

All done.

Non-HP harddrives in an HP MSA20

Thursday, March 11th, 2010

A customer asked me if it was possible to use non-hp drives in an HP MSA20 as they costed a lot less than HPs own drives. I honestly said that it would require a POF. The customer accepted the initial expense of single 1TB SATA drive.  I fired up hpacucli to figure out what was up and down on this

=> ctrl ch="mirror" show config detail
....
....
physicaldrive 1:1
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SATA
Size: 1000.2 GB
Firmware Revision: HPG1
Serial Number: 9QJ2B4GD
Model: HP GB1000EAFJL
SATA NCQ Capable: False

As HP does not make harddrives, but uses OEM drives with custom firmware I had to figure out what types of drives was in there. The easiest solution would be to shut the box down and pull out a drive to inspect. Having dealt with HP quite a lot, I know that they also remark the drives, so I would probably not be able to see what types of drives was in there, leaving me with guessing if I choose to go that route.

Instead I opted for figuring out what type of drive it was likely to be based on the firmware.  I googled a bit and found that the MSA20 could support up to 1TB disks. A bit more googling yielded this advisory from HP about upgrading firmware on Seagate drives to HPG6. Based on the age of the MSA20 in question, the age of the 1TB HP disks we already had in them, I decided it was most likely to be Baracuda 7200.11 drives that HP utilized for this and thus we ordered one of those.
Drive arrived. We put it in. Rescanned and lo and behold:

physicaldrive 1:6
Box: 1
Bay: 6
Status: OK
Drive Type: Data Drive
Interface Type: SATA
Size: 1000.2 GB
Firmware Revision: CC38
Serial Number:             9VP4D0ZA
Model: Seagate ST31000528AS
SATA NCQ Capable: False

A non-HP drive working. We have now placed an order for 19 x 1TB Seagate drives.

Your millage may wary if you try this. It is also worth mentioning that it would be an option to test non-seagate disks and/or bigger disks. Beware of the heat and power requirements though! HP themselves only sells the MSA20 with upto 1TB disks.

Finally for the record, it should be state that this was on an MSA20 with this firmware level:

MSA20 in mirror
 Bus Interface: SCSI
 Serial Number: PAAAC0PMQTR7V0
 Chassis Serial Number: E01RMLJ17M
 Chassis Name: mirror
 RAID 6 (ADG) Status: Enabled
 Controller Status: OK
 Chassis Slot: 2
 Hardware Revision: Rev A
 Firmware Version: 2.08
 Rebuild Priority: Medium
 Expand Priority: Medium
 Surface Scan Delay: 3 secs
 Cache Board Present: True
 Cache Status: OK
 Accelerator Ratio: 50% Read / 50% Write
 Drive Write Cache: Disabled
 Read Cache Size: 56 MB
 Write Cache Size: 56 MB
 Total Cache Size: 112 MB
 Chassis Slot 2 Battery Info
 Battery Pack Count: 2
 Battery Status: OK
 Host Bus Adapter Slot: Slot Unknown
 Host Bus Adapter Port: 1
 SATA NCQ Supported: False

New job – Senior Operations Specialist in NNIT

Monday, March 1st, 2010

Well, then it happened.  I quit Telia. I will surely miss my colleagues which are among the smartest and most dedicated people in Denmark, but it was time to move on to new worlds.

I look forward to work for NNIT. A title of Senior is new to me. Let us see, if I can lift the burdens put onto my shoulders.