Ver Mensaje Individual
Antiguo 06/02/2014, 16:59   #1
††LUCIFER††
Invitado
 
Mensajes: n/a

script infoMV

Os dejo un pequeño script que he hecho para el mvision 700 con firmware de fabrica el cuaL muestra ciertos datos de nuestro receptor:

[CODE]#!/bin/sh


RAM="$(free)"
MEMTOTAL="$(echo $RAM | awk '{print $7}')"
MEMUSED="$(echo $RAM | awk '{print $8}')"
MEMFREE="$(echo $RAM | awk '{print $9}')"
KERNELV="$(uname -a)"
KERNELV1="$(echo $KERNELV | awk '{print $1 $2 $3}')"
FLASH="$(df -h)"
FLASH1="$(echo $FLASH | awk '{print $12}')"
MAC="$(ifconfig eth0)"
MIMAC="$(echo $MAC | awk '{print $5}')"
CPU="$(cat /proc/cpuinfo)"
CPU1="$(echo $CPU | awk '{print $10}')"
CPU2="$(echo $CPU | awk '{print $14}')"
CPU3="$(echo $CPU | awk '{print $23}')"
IP="$(ip addr show)"
MIIP="$(echo $IP | awk '{print $15}')"
SCRIPTCAM="$(cat /var/keys/emu)"
SCRIPTCAM1="$(echo $SCRIPTCAM | awk -F/ '{print $1}')"
USUARIO="$(who -a)"
USUARIO1="$(echo $USUARIO | awk '{print $13}')"
ECM="$(cat /tmp/ecm.info)"
ECM1="$(echo $ECM | awk '{print $37}')"

echo -e "Mem total:\t\t $MEMTOTAL"
echo -e "Mem usada:\t\t $MEMUSED"
echo -e "Mem libre:\t\t $MEMFREE"
echo -e "Flash usada:\t\t $FLASH1"
echo -e "Version Kernel:\t $KERNELV1"
echo -e "Mi Mac es:\t\t $MIMAC"
echo -e "Mi IP es:\t\t $MIIP"
echo -e "Mi sistema es:\t\t $CPU1"
echo -e "Modelo CPU:\t\t $CPU2"
echo -e "Emu Activa:\t\t $SCRIPTCAM1"
echo -e "Respuesta ECM:\t\t $ECM1"


exit[/CODE]

Y el resultado tras ejecutarlo en consola terminal:

[URL=https://imageshack.com/i/mh96nnp][/URL]

Respuesta rápida a este mensaje
Responder Citando Subir