Teljes szöveg:
- Oracle VM CPU pin map @shell:oravm
- | awk -F'/' '{print $2}') else ACT_TTY=$(tty|grep -oP '(?<=/dev/pts/).*') fi SSH_USER=$(w | awk '/p... tTimeout=5 admin@localhost -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Nincs SS... tTimeout=5 admin@localhost -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "... t eval `ssh-agent -s` fi if [[ $(ssh-add -l | grep -c "$OVS_SSH_KEY") -eq 0 ]]; then printf "Ha je
- TSM napi riport shell szkript @shell:riportok
- M_SZERVERNEVEK_TMP# } if [ `echo $TSM_SZERVEREK | grep -c '[a-zA-Z]'` -eq 0 ]; then echo "Nincs hasznal... _SZERVER%%@*}/.profile; db2pd -hadr -db tsmdb1" | grep HADR_STATE | awk -F\= '{print $1" "$2}'` ... _SZERVER%%@*}/.profile; db2pd -hadr -db tsmdb1" | grep STANDBY_RECV_BUF_PERCENT | awk -F\= '{print $2}'`... ${TSM_SZERVER} -dataonly=y "${SQL_Q_NOSCRATCH}" | grep -v '^$' | egrep -v '(ANR|ANS)' | awk '{printf "%-
- Linux-os lin_tape tape device-ok 'persistent binding'-jat beállító udev konfig fájl generáló szkript @shell:device_management
- RIAL=`udevadm info --attribute-walk --name $dev | grep 'ATTR.serial_num.' | grep -o '"[0-9A-F]*"' | sed 's/"//g'` else # DPATH=`udevinfo... i SERIAL=`udevinfo -a -p $DPATH | grep 'serial_num.' | grep -o '"[0-9A-F]*"' | sed 's/"//g'` if [ ${#SERIAL} -lt 6 ]; then con
- AIX tape device-ok lekérdezése sorozatszámmal, PRI/ALT párral (ha van) @shell:riportok
- rint substr($3,1,5)}'` FCS=`lsdev -Cc adapter | grep $LOCATION | awk '{print $1}'` PRIALT=`echo $lin... get_serial.tmp SERIAL=`cat /tmp/get_serial.tmp |grep Serial|awk '{print substr($2,22,12)}'` TYPE=`cat /tmp/get_serial.tmp |grep Type|awk '{print substr($4,12,8)}'` FMR=`cat /tmp/get_serial.tmp |grep FW|awk '{print substr($2,22,4)}'` echo $DEVI S/
- Hálózati okosságok @linux
- oblémákra megoldás: ssh root@server ps uax \| grep ba[c] \| \'{ print \$2 }\' \> /tmp/back.tmp or y... ape the dollar sign) ssh root@server ps uax \| grep ba[c] \| "'{ print \$2 }'" \> /tmp/back.tmp === ... k -F': ' '/</{print $2}' | egrep -v '(@|lo|^$)' | grep "$SEARCH" | sort -k1); do STATE=$(ethtool... }' | sed 's/^[0-9]*/& /') MAC=$(ip addr | grep -A1 "[^@]$ETH:" | grep -o '\([0-9abcdef]\{2\}:\)
- VM-ek diszkjeinek listázása @shell:oravm
- "list vmdiskMapping" | egrep -v '(EMPTY_CDROM)' | grep -v '^$' | grep ')' | while read SOR; do ID=$(echo $SOR | grep -oP "(?<=id:)[^ ]+(?= )") DISK_ID=$(echo $SOR | grep -oP "(?<=\()[^ ]+(?=\))") VM=$(ovm_cli "s
- Linuxos "cfgmgr" @shell:device_management
- $ID Lun: $LUN" SCSISTR=`cat /proc/scsi/scsi | grep -A$LN -e"$grepstr"` fi if test -z "$SCSISTR";... procscsiscsi 3; then SGDEV=`echo "$SCSISTR" | grep 'Attached drivers:' | sed 's/^ *Attached drivers:... /scsi_device; then sgdevice26 else DRV=`grep 'Attached drivers:' /proc/scsi/scsi 2>/dev/null` ... "scsi report-devs 1" >/proc/scsi/scsi DRV=`grep 'Attached drivers:' /proc/scsi/scsi 2>/dev/null`
- Shell szkript felderítő szkript @shell
- <file sh collect_crontab_scripts.sh> #!/bin/sh #grep -R ".*" /var/spool/cron/ | sed -e 's/^\/var\/spool\/cron\/crontabs\///' | grep -v ':#' | grep -v '^$' | egrep -v '(errclear|clcycle|dumpcheck|lpar2rrd|pmcfg|motd|mkpasswd|logrotate|d... nd /var/spool/cron/ -type f | xargs -I{} cat {} | grep -v '^#' | grep -v '^$' | egrep -v '(errclear|clcy
- VMware image mentések riportja @shell:riportok
- *//') $(echo $SOR | awk '{print $1}')" done <<< "`grep -v '^#' $EXCEPTION_FILE`" datediff() { d1=$(... er by BACKUP_DATE desc FETCH FIRST 1 ROWS ONLY" | grep -v 'AN[RS]' | sed 's/^ //' | sed 's/\.000000$//')... .html while read INPUT ; do [[ "$(echo $INPUT | grep -c '(Off)')" -eq 1 ]] && continue; # ... ROWNUM=$(($ROWNUM+1)); fi if [[ $(echo $INPUT | grep -c '<caption>') -gt 0 ]]; then echo "$INP
- AIX tape device-ok átnevezése beszédesre konfig állomány alapján @shell:device_management
- $(echo $LINE2 | awk '{print $4}') if [[ $(grep -i "$NEW_PRE" $NAMING_CONF_FILE | grep -i -c "$NEW_NUM") -gt 1 ]]; then echo "Redundans... EW_NUM)!" >> $TMP_FILE fi if [[ $(grep -i "$NEW_SER" $NAMING_CONF_FILE | grep -i -c "$NEW_WWN") -gt 1 ]]; then echo "Redundans
- Linux interfészek listázása @shell:device_management
- k -F': ' '/</{print $2}' | egrep -v '(@|lo|^$)' | grep "$SEARCH" | sort -k1); do STATE=$(ethtool... }' | sed 's/^[0-9]*/& /') MAC=$(ip addr | grep -A1 "[^@]$ETH:" | grep -o '\([0-9abcdef]\{2\}:\)\{5\}[0-9abcdef]\{2\}' | awk '{print $1}' | grep -v 'ff:ff:ff:ff:ff:ff') VLANS=$(timeout $
- Színes TSM szerver konzol @shell:riportok
- CPS=$(cat /opt/tivoli/tsm/client/ba/bin/dsm.sys | grep -v '^\*' | awk 'BEGIN { RS=""; ORS="\n\n"}{$1=$1}1' | grep -i '^se[a-z]*[ \t]\{1,\}'$SZERVERNEV'[ \t]' | grep -oP 'TCPS[a-z]*[ \t][^ ]*' | awk -F' ' '{print $2}')... $/!ba;p}' /opt/tivoli/tsm/client/ba/bin/dsm.sys | grep -oiP 'TCPS[a-z]*[\s\t]*[^\s]*' | awk '{print $2}'
- TSM Cirkuláris Másolatkészítő szkript @shell
- SERVER -dataonly=y -displ=tabl" if [[ $(ps -ef | grep $0 | grep -vc grep) -gt 1 ]]; then echo "$(date "+%Y.%m.%d %H:%M") A PROGRAM MAR FUT EGY PELDANYBAN!" | t... rage Pool'") -eq 0 ] && [ "$(echo $EXCLUDEPOOLS | grep -c $POOL)" -eq 0 ]; then BACKUPNUM=$(
- TSM node replikacios iranyt forgato szkript @shell:replikacio
- echo "TSM replikacios parameter vezerlo szkript $(grep -o 'v[0-9]\+\.[0-9]\+' $0 | head -n1) - created b... as vege." help exit fi # Itt kezdodik a lenyeg grep -v '^$' $TMP_FILE | while read NODE; do if [[... $($DSMADMC2 validate replication $NODE verify=y | grep 'Connection Status' | grep 'Valid Connection' | wc -l) #log $white "Az uj replikacios szabalyok va
- ovm_functions.sh szkript @shell:oravm
- tTimeout=5 admin@localhost -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Nincs SS... tTimeout=5 admin@localhost -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "... RC=$? RET=${2:-[iI]d} ID=$(echo $OUTPUT | grep -oP "(?<=$RET:)[^ ]+(?= )") [[ -z $ID ]] && ID=$(echo $OUTPUT | grep -oP "(?<=$RET: )[^ ]+(?= )") [[ -z $ID ]] &&