jueves, 9 de junio de 2011

Instalando TOP en Solaris

1) ingresar al sitio www.sunfreeware.com. Alli buscamos el paquete top en la barra inferior derecha.
2) Damos click en el link. Despues en el cuerpo de la pagina nos aparecera para que version de solaris. En nuestro caso la descargaremos para sparc.
3) Ubicamos el archivo descargado sobre el servidor en /tmp.
4) Lo descomprimimos usando #gunzip top-3.6.1-sol10-sparc-local.gz
5) Instalamos el archivo descomprimido haciendo uso del #pkgadd -d top-3.6.1-sol10-sparc-local
6) Top quedo instalado en /usr/local/bin por tal motivo lo vamos a agregar a la variable de entrada PATH. #PATH=/usr/openv/volmgr/bin:/usr/local/bin
7) Ahora la exportamos. #export PATH
8) Ahora podemos lanzar top desde cualquier parte del servidor #top

martes, 22 de marzo de 2011

Escanear tapes por scsi - Tru64

NOTA: para poder manejar el historico de comandos aplicamos:
> set -o emacs

1) Mirar los dispositivos scsi para ver su status:
> hwmgr -show scsi |grep tape
Si los paths tienen problemas apareceran como null o apareceran sin path.

1125: 4 elite01 tape none 0 1 null [1/0/0]
1126: 5 elite01 tape none 0 1 null [1/3/0]
1127: 6 elite01 tape none 0 1 null [1/4/0]
1128: 7 elite01 tape none 0 1 null [1/5/1]
1129: 8 elite01 tape none 0 1 null [1/6/0]

2) Se deben eliminar estos paths:
> hwmgr delete -id 1124
> hwmgr delete -id 1125
> hwmgr delete -id 1126
> hwmgr delete -id 1127
> hwmgr delete -id 1128

4) Validamos si los paths se borraron:
> hwmgr -show scsi |grep tape

5) Reescaneamos el puerto scsi:
> hwmgr -scan scsi

6) Validamos que si encontrara los dispositivos:
> hwmgr -view device
1125: /dev/ntape/tape294 HP Ultrium 4-SCSI bus-1-targ-0-lun-0
1126: /dev/ntape/tape295 HP Ultrium 4-SCSI bus-1-targ-3-lun-0
1127: /dev/ntape/tape296 HP Ultrium 4-SCSI bus-1-targ-4-lun-0
1128: /dev/ntape/tape297 QUANTUM DLT8000 bus-1-targ-5-lun-1
1129: /dev/ntape/tape298 HP Ultrium 4-SCSI bus-1-targ-6-lun-0
1130: /dev/ntape/tape299 HP Ultrium 4-SCSI bus-1-targ-7-lun-0
1131: /dev/ntape/tape300 HP Ultrium 4-SCSI bus-1-targ-8-lun-0
1132: /dev/ntape/tape301 HP Ultrium 4-SCSI bus-1-targ-9-lun-0
1133: /dev/ntape/tape302 HP Ultrium 4-SCSI bus-1-targ-10-lun-0
1134: /dev/ntape/tape303 HP Ultrium 4-SCSI bus-1-targ-11-lun-0
1135: /dev/ntape/tape304 HP Ultrium 4-SCSI bus-1-targ-16-lun-0
1136: /dev/ntape/tape305 HP Ultrium 4-SCSI bus-1-targ-17-lun-0
1137: /dev/ntape/tape306 HP Ultrium 4-SCSI bus-8-targ-0-lun-0
1138: /dev/ntape/tape307 HP Ultrium 4-SCSI bus-8-targ-1-lun-0
1139: /dev/ntape/tape308 HP Ultrium 4-SCSI bus-8-targ-2-lun-0
1140: /dev/ntape/tape309 HP Ultrium 4-SCSI bus-8-targ-3-lun-0
1141: /dev/ntape/tape310 HP Ultrium 4-SCSI bus-8-targ-4-lun-0
1142: /dev/ntape/tape311 HP Ultrium 4-SCSI bus-8-targ-5-lun-0
1143: /dev/ntape/tape312 HP Ultrium 4-SCSI bus-8-targ-6-lun-0
1144: /dev/ntape/tape313 HP Ultrium 4-SCSI bus-8-targ-7-lun-0
1145: /dev/ntape/tape314 HP Ultrium 4-SCSI bus-8-targ-11-lun-0
1146: /dev/ntape/tape315 HP Ultrium 4-SCSI bus-8-targ-12-lun-0
1147: /dev/ntape/tape316 HP Ultrium 4-SCSI bus-8-targ-14-lun-0
1148: /dev/ntape/tape317 HP Ultrium 4-SCSI bus-8-targ-15-lun-0

7) Validamos que este creando los paths:
> hwmgr -show scsi | grep -i tape
1125: 4 elite01 tape none 0 1 tape294 [1/0/0]
1126: 5 elite01 tape none 0 1 tape295 [1/3/0]
1127: 6 elite01 tape none 0 1 tape296 [1/4/0]
1128: 7 elite01 tape none 0 1 tape297 [1/5/1]
1129: 8 elite01 tape none 0 1 tape298 [1/6/0]
1130: 9 elite01 tape none 0 1 tape299 [1/7/0]
1131: 10 elite01 tape none 0 1 tape300 [1/8/0]
1132: 12 elite01 tape none 0 1 tape301 [1/9/0]
1133: 13 elite01 tape none 0 1 tape302 [1/10/0]
1134: 19 elite01 tape none 0 1 tape303 [1/11/0]
1135: 24 elite01 tape none 0 1 tape304 [1/16/0]
1136: 25 elite01 tape none 0 1 tape305 [1/17/0]
1137: 26 elite01 tape none 0 1 tape306 [8/0/0]
1138: 37 elite01 tape none 0 1 tape307 [8/1/0]
1139: 38 elite01 tape none 0 1 tape308 [8/2/0]
1140: 39 elite01 tape none 0 1 tape309 [8/3/0]
1141: 40 elite01 tape none 0 1 tape310 [8/4/0]
1142: 41 elite01 tape none 0 1 tape311 [8/5/0]
1143: 42 elite01 tape none 0 1 tape312 [8/6/0]
1144: 43 elite01 tape none 0 1 tape313 [8/7/0]
1145: 44 elite01 tape none 0 1 tape314 [8/11/0]
1146: 45 elite01 tape none 0 1 tape315 [8/12/0]
1147: 46 elite01 tape none 0 1 tape316 [8/14/0]
1148: 47 elite01 tape none 0 1 tape317 [8/15/0]

miércoles, 12 de enero de 2011

Ver interfaces de Red en HP-UX

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/4/2/0 0x0017424234234 0 UP lan0 snap0 1 ETHER Yes 119
0/4/2/1 0x0045313455643 1 UP lan1 snap1 2 ETHER Yes 119
LinkAgg0 0x000000000000 900 DOWN lan900 snap900 4 ETHER Yes 119
LinkAgg1 0x000000000000 901 DOWN lan901 snap901 5 ETHER Yes 119

# ifconfig lan0
lan0: flags=1843
inet 10.2.3.45 netmask ffffff00 broadcast 10.2.3.255

miércoles, 5 de enero de 2011

Ver WWN en HP-UX

#ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
fc 0 0/0/10/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 1/0/2/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
fc 2 1/0/4/1/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td2

# /opt/fcms/bin/fcmsutil /dev/td0 (or td1, td2...)

Vendor ID is = 0x00103c
Device ID is = 0x001029
XL2 Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x00128c
Topology = PRIVATE_LOOP
Link Speed = 2Gb
Local N_Port_id is = 0x000001
Local Loop_id is = 125
N_Port Node World Wide Name = 0x50060b000011b42b
N_Port Port World Wide Name = 0x50060b000011b42a
Driver state = ONLINE
Hardware Path is = 0/10/0/0
Number of Assisted IOs = 28429722
Number of Active Login Sessions = 4
Dino Present on Card = NO
Maximum Frame Size = 960
Driver Version = @(#) PATCH_11.11: libtd.a : Jun 28 2002, 11:08:35, PHSS_26799



O:


# ioscan -fnC fc
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
fc 0 0/0/1/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd0
fc 1 0/0/2/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd1
fc 2 0/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60001 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd2
fc 3 0/0/6/1/0 fcd CLAIMED INTERFACE HP AB378-60001 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd3


# /opt/fcms/bin/fcmsutil /dev/fcd0 (or fcd1, fcd2...)