Archive for the ‘AIX 5.3’ Category

Checking Fiber Channel link status in AIX, fscsi

Friday, January 18th, 2008


For some reason, I tend to forget about fcstat. This is a very useful command when troubleshooting fiber channel issues.

firmo1# fcstat fcs0

FIBRE CHANNEL STATISTICS REPORT: fcs0

Device Type: FC Adapter (df1000fa)
Serial Number: XXXXX
Option ROM Version: 02881914
Firmware Version: T1D1.90A4
World Wide Node Name: XXX
World Wide Port Name: XXX

FC-4 TYPES:
Supported: 0×0000012000000000000000000000000000000000000000000000000000000000
Active: 0×0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 2 GBIT
Port Speed (running): 2 GBIT
Port FC ID: 0×010E00
Port Type: Fabric

Seconds Since Last Reset: 158286

Transmit Statistics Receive Statistics
——————- ——————
Frames: 80972 247978
Words: 1071104 84101632

LIP Count: 0
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 1
Loss of Sync Count: 5
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 12
Invalid CRC Count: 0

IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0

FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0

IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0

FC SCSI Traffic Statistics
Input Requests: 4145
Output Requests: 12
Control Requests: 63356
Input Bytes: 330206300
Output Bytes: 49152

How to assign an additional IP to an Ethernet adapter in AIX

Tuesday, January 15th, 2008


Pretty simple stuff, sort of like in Linux where you can run ‘ifconfig eth0:1 x.x.x.x’ and so on. In AIX, you can assign multiple IPs to an interface by using the following command syntax:

mktcpip -h $hostname -a $virtual_ip -m 255.255.255.0 -i $interface

where
$hostname = Your system hostanme, example: testhost
$virtual_ip = IP to assign to interface, example: 10.10.10.3
$interface = Interface you wish to assign the IP to, example: ent0