Instalando ASR (Auto Service Request) Segunda Parte

BITACORA Instalando ASR (Auto Service Request)
1) Para la Instalación del ASR se utilizaron los siguientes paquetes: 
bash-2.03# cd ASR
bash-2.03# ls -lrt 
total 628304
-rw-r--r--   1 106      other    79864669 Nov 21  2008 EISasrassetbundle.tar.bz2
-rwxr-xr-x   1 941945   staff    9800749 Jan 23  2009 install_stb.sh
-rwxr-xr-x   1 106      other    9050739 Mar 27  2009 install_stb.sh.tar.gz
-rw-r--r--   1 106      other    7133995 May 14 12:41 SUNWsasm-1.0.0-20090122192946.pkg.gz
-rw-r--r--   1 106      other    184281732 May 20 23:57 sun_mc-4_0-ga.zip
-rwxr-xr-x   1 root     root     5851837 Sep 24 15:33 SUNWswasr.2.3-20090622144235.pkg.gz
-rwxr-xr-x   1 106      other    25470489 Sep 30 15:45 jre-6u16-solaris-sparc.sh
2) Previamente se instaló la ultima versión de Java y STB: 
bash-2.03# java -version 
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
bash-2.03# pkginfo -l SUNWexplo 
PKGINST:  SUNWexplo
NAME:  Sun(TM) Explorer Data CollectorCATEGORY:  application
ARCH:  all
VERSION:  6.0,REV=2009.01.23.09.56 
BASEDIR:  /opt
VENDOR:  Sun Microsystems Inc.
DESC:  System Information gatherer for Sun
PSTAMP:  sustain-1920090123025624
INSTDATE:  Oct 08 2009 10:05
HOTLINE:  Please contact your local service provider
STATUS:  completely installed
FILES:      181 installed pathnames
16 directories
121 executables
9568 blocks used (approx)
bash-2.03# pkginfo | grep servicetagr 
system      SUNWservicetagr      Service Tags (root)
NOTA: Despues de solo ejecutar el script de instalacion de java se actualiza la liga del binario
bash-2.03# which java 
/usr/java/jre1.6.0_16/bin/java
bash-2.03# cd /usr/bin 
bash-2.03# ls -la java 
lrwxrwxrwx   1 root     other         16 Feb 23 2001 java -> ../java/bin/java
bash-2.03# mv java java1 
bash-2.03# ls -la java* 
lrwxrwxrwx   1 root     other         16 Feb 23 2001 java1 -> ../java/bin/java
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javac -> ../java/bin/javaclrwxrwxrwx   1 root     other         19 Feb 23 2001 javadoc -> ../java/bin/javadoc
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javah -> ../java/bin/javah
lrwxrwxrwx   1 root     other         18 Feb 23 2001 javald -> ../java/bin/javald
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javap -> ../java/bin/javap
bash-2.03# ln -s /usr/java/jrel.6.0_16/bin/java java 
bash-2.03# ls -la java* 
lrwxrwxrwx   1 root     other         30 Oct 12 11:32 java -> /usr/java/jrel.6.0_16/bin/java 
lrwxrwxrwx   1 root     other         16 Feb 23 2001 java1 -> ../java/bin/java
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javac -> ../java/bin/javac
lrwxrwxrwx   1 root     other         19 Feb 23 2001 javadoc -> ../java/bin/javadoc
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javah -> ../java/bin/javah
lrwxrwxrwx   1 root     other         18 Feb 23 2001 javald -> ../java/bin/javald
lrwxrwxrwx   1 root     other         17 Feb 23 2001 javap -> ../java/bin/javap
3) Instalar el Primer paquete para ASR 
bash-2.03# pkgadd -d SUNWsasm-1.0.0-20090122192946.pkg 
The following packages are available:
1  SUNWsasm     Sun Automated Service Manager
(all) 1.0.0
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: a
*************************************************************************
Warning! An old Java version ( /var/sadm/pkg/SUNWsasm/install/postinstall: /usr/bin/java: not found ) was detected in /usr/bi
n/java .
SASM requires a Java version of 1.5 or higher to run correctly. 
You can edit /opt/SUNWsasm/bin/sasm and change the JAVA=java line to 
point to a Java 1.5 or higher instance that may exist elsewhere on this 
system. 
Java can be downloaded from Java from http://java.sun.com
*************************************************************************
NOTA: Si no esta bien configurada JAVA manda el siguiente Warning!!! 
pero como ya validamos que esta instalado Editamos /opt/SUNWsasm/bin/sasm 
JAVA=java
quedando:
JAVA=/usr/java/jre1.6.0_16/bin/java 
4) Instalar el segundo paquete para ASR 
bash-2.03# pkgadd -d SUNWswasr.2.3-20090622144235.pkg 
The following packages are available:
1  SUNWswasr     SASM ASR Plugin
(Generic) 2.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: a

Installation of <SUNWswasr> was successful.
5) Hacemos una prueba de conexión:
bash-2.03# telnet transport.sun.com 443 
transport.sun.com: Unknown host 
bash-2.03# telnet 198.232.168.156 443 
Trying 198.232.168.156...
telnet: Unable to connect to remote host: Network is unreachable
6) Instalar el tercer paquete para ASR 
bash-2.03# ls 
EISasrassetbundle.tar.bz2          jre-6u16-solaris-sparc.sh          SUNWswasr.2.3-20090622144235.pkg
install_stb.sh                     sun_mc-4_0-ga.zip
install_stb.sh.tar.gz              SUNWsasm-1.0.0-20090122192946.pkg
bash-2.03# bunzip2 EISasrassetbundle.tar.bz2 
bash-2.03# tar xvf EISasrassetbundle.tar 
bash-2.03# cd asrassetbundle 
bash-2.03# ls 
asrassetmenu.sh  bin              cfg
bash-2.03# ./asrassetmenu.sh 
Welcome to the ASR asset menu.
-------------------------------------------------
1) Check system for ASR qualifications.
2) Install and configure SunMC 4.0 for ASR.
3) Configure FMA for ASR.
4) Install Service Tags 1.1.4 (Required for ASR).
5) Test SNMP to SASM ASR plugin connectivity (Solaris 10 only).
6) Install SunMC 4.0 and Service Tags 1.1.4.
7) Configure FMA and install Service Tags 1.1.4.
8) Add a trap-destination to SunMC.
9) Remove a trap-destination from SunMC.
10) Uninstall Service Tags.
11) Uninstall SunMC.
12) Exit.
Please enter your selection [1-12]: 1
Checking machine type
Sun-Blade-1000 is not a qualified hardware type. 
bash-2.03# ls 
asrassetmenu.sh  bin              cfg              log
bash-2.03# cd cfg 
bash-2.03# ls
ASRsmc.tar.gz          ASRsvc.tar.gz          machine_qualification  respond
bash-2.03# more machine_qualification 
Sun-Fire-E12K
Sun-Fire-12000
Sun-Fire-E15K
Sun-Fire-15000
Sun-Fire-E20K
Sun-Fire-20000
Sun-Fire-E25K
Sun-Fire-25000
Sun-Fire-T1000
Sun-Fire-T2000
Sun-Fire-280R
Sun-Fire-V210
Sun-Fire-V215
Sun-Fire-V240
Sun-Fire-V245
Sun-Fire-V440
Sun-Fire-V445
Sun-Fire-V480
Sun-Fire-V490
Sun-Fire-V880
Sun-Fire-V890
Sun-SPARC-Enterprise-M4000
Sun-SPARC-Enterprise-M5000
Sun-SPARC-Enterprise-M8000
Sun-SPARC-Enterprise-M9000
bash-2.03# uname -a 
SunOS SB1000-1 5.8 Generic_111433-02 sun4u sparc SUNW,Sun-Blade-1000 
NOTA: Si se dieron cuenta en el paso anterior  la consola que estamos 
configurando NO CALIFICO, para eso debemos hacer un pequeño truco; 
Agregar nuestra maquina a la lista del archivo machine_qualification 
bash-2.03# ls 
ASRsmc.tar.gz          ASRsvc.tar.gz          machine_qualification  respond
bash-2.03# vi machine_qualification 
add Sun-Blade-1000 
bash-2.03# pwd 
/space/ASR/asrassetbundle
bash-2.03# ./asrassetmenu.sh 
Checking ASR qualifications.  Please wait.
Checking machine type
Sun-Blade-1000 is a qualified hardware type. 
Checking SunMC
SunMC is not installed.
Checking FMA
./asrassetmenu.sh: svcs: not found
Cannot find FMA on this system
FMA is configured to send traps to the following.
cat: cannot open /etc/sma/snmp/fmd-trapgen.conf
Checking Service Tag packages.
SUNWpsn is installed.
SUNWservicetagr is installed.
SUNWservicetagu is installed.
SUNWstosreg is installed.
SUNWsthwreg is installed.
Service Tags version 1.1.4 is installed.
Press enter to continue.
Please enter your selection [1-12]: 12
Hasta aquí la Segunda Parte...
Anuncios

3 comentarios sobre “Instalando ASR (Auto Service Request) Segunda Parte

  1. memox, un gusto escribir en tu web.

    Tengo un SF15k, necesitaría me orientes para habilitar el envío de traps automáticos de alertas de environment o boards, hacia un destino adecuado (un host en la intranet)

    Es necesario hacerlo desde un dominio o desde la sc??

    Yo lo tengo con Nagios, pero como le chequeo cada 15 minutos vía llamadas con rsh y showenvironment|showboards, me dicen que la ejecución de estos comandos es muy agresiva con la performance de la sc.

    Saludos.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s