lunes, 30 de mayo de 2016

Capturar llamadas en Asterix






1.- Cualquier extensión del mismo callgroup, comando por default: *8

2.- Comando para extensión en especifico: **+#Ext

3.- Cuando no acepta la sintáxís por default hay que cambiar en la configuración del PBX al siguiente comando : *+#Ext


Fuente: Julio Restrepo

Resetting WRT54G to Factory Defaults





1. Press and hold the reset button for 30 seconds.

2. Then, unplug the power keep holding down the reset button for
another 30 Seconds.

3. Plug back the power back in, and keep holding down the reset button
for 30 Seconds.

4. Release the reset button.

Admin: root
Passwd: admin






Fuente: Community Linksys

jueves, 21 de abril de 2016

Monitor printers with Nagios


1.- Descargar plugin

2.- Agregarlo al directorio plugins de nagios ya darle permisos de ejecución:

# chmod o+x check_snmp_printer

3.- Agregar el comando correspondiente al archivo commands.cfg de Nagios:


define command{
        command_name check_snmp_printer
        command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -x $ARG2$ -w $ARG3$ -c $ARG4$


4.- Agregar el servicio a la impresora que se desea monitorear, estas son algunas opciones:

  • CONSUM {"string" | TEST | ALL} 
  • DEVICE 
  • DISPLAY 
  • MESSAGES 
  • MODEL 
  • PAGECOUNT 
  • STATUS 
  • TRAY {number(s) | TEST | ALL} 
  • VERSION 


Ejemplo:

define service{
        use                     generic-service
        host_name               My_Printer
        service_description     Printer Model
        check_command           check_snmp_printer!community!"MODEL"
}




Referencia:

Exchange Nagios

miércoles, 20 de abril de 2016

Centos Nagios install



1.- yum install nagios

2.- vi /etc/nagios/objects/contacts.cfg

 contact_name              admin
 email                           admin@localhost ;

 members                     admin


3.-   vi /etc/httpd/conf.d/nagios.conf

## Comment Lines

#   Order allow,deny
#   Allow from all

## Uncomment and Change lines

Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.0/24

4.-  htpasswd /etc/nagios/passwd nagiosadmin


5.- service nagios start
     chkconfig nagios on

6.- Conf check

 nagios -v /etc/nagios/nagios.cfg




Referencia:

Unixmen

jueves, 14 de abril de 2016

Boot CD/DVD VMware Hypervisor (vSphere)





1.- Insert CD/DVD

2.- Connect CD/DVD - Host Device

3.- Guest  - Send Ctrl-Alt-Del



martes, 29 de marzo de 2016

CUDA + TORQUE Example


#!/bin/bash
##PBS -l nodes=1:ppn=4
#PBS -l nodes=1:cuda
#PBS -l walltime=16:00:00
#PBS -N testIO
#PBS -o cuda_out.$PBS_JOBID
#PBS -e cuda_err.$PBS_JOBID
#PBS -r n
#PBS -V
##PBS -m abe
##PBS -M jouser@mines.edu
#-----------------------------------------------------
cd $PBS_O_WORKDIR

cp ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/deviceQuery .

echo
echo running on: `cat $PBS_NODEFILE`

echo
echo " gives a report of the devices that were found"
./deviceQuery $lt; /dev/null


Referencia:

GECO Mines

viernes, 4 de marzo de 2016

Debian Cluster + OpenMPI





1.- Descargar software de Open-MPI.org

# wget https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.2.tar.gz


2.- Instalar en todos los nodos:

# gunzip -c openmpi-1.10.2.tar.gz | tar xf -
# cd openmpi-1.10.2
# ./configure --prefix=/usr/local
# make all install

3.- Agregar variables de entorno:

# vi /etc/profile

Agregar:

export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# source /etc/profile
#ldconfig


4.- Testing:

# mpirun --hostfile host_file mpi_hello_world



Referencias: