Teljes szöveg:
- Hasznos TSM SQL lekérdezések
- ep '[D]RV02' | wc -l` if [ "$TIME" -eq "2355" ]; then echo "$TIMEA,$DRIVE1,$DRIVE2" >> $STAT ... HEN substr(end_time,1,13)=substr(start_time,1,13) THEN timestampdiff(4,end_time-start_time) WHEN substr(end_time,1,13)>substr(start_time,1,13) THEN timestampdiff(4,timestamp(concat(date(start_time)... HEN substr(end_time,1,13)>substr(start_time,1,13) THEN timestampdiff(4,end_time-timestamp(concat(date(en
- TSM napi riport shell szkript @shell:riportok
- | ' min',1,7) as \"RUNTIME\" , case when result=0 then ' 0-Succesfull' when result=4 then ' 4-Skipped Files' when result=8 then ' 8-Warnings' when result=12 then '12-Errors' else cast(result as char(7)) end as \"RESULT\" from event
- Hálózati okosságok @linux
- ' })" if [[ "${wPROTO,,}" = 'https' ]] ; then echo "${HTTP_REQUEST}" | openssl s_client... ath. If you add the trailing slash to the source, then the source directory will not be created at the d... if [[ $(grep -c "Slave.*$ETH" $BOND) -gt 0 ]]; then MAC=$(grep -A5 "Slave.*$ETH" $BON... fi done if [[ $ETH =~ ^bond ]]; then SLAVES=$(awk '/^Slave Interface/{
- Linux okosságok
- "$epoch" -lt "$(date -d '1 minute ago' +%s)" ] ; then #[[ "$(date -d '2024-02-01 17:26:00' +%s)" -lt ... tgyűjtés ==== <file> #!/bin/sh if [ $? -ne 0 ]; then exit 1; fi ps -ef | grep '[n]mon ' | awk '{print
- Színes TSM szerver konzol @shell:riportok
- user jelszava # KONFIG vege. if [ "$1" == "" ]; then echo "Nem adtal meg szerver sztanzat para... ____________________________________ if [ ! $2 ]; then echo "Kiemeljek valami extra szot LILA sz... ESES else KERESES=$2 fi if [ $KERESES ]; then KERESES="pink $KERESES" fi echo -ne "\03
- Szkriptelés @linux
- p -q "SigIgn:\s.{15}[13579bdf]" /proc/$$/status ; then echo "Ignores SIGHUP (runing via nohup)" e... #^.*\/##g') if [[ "$A_CURR_SHELL" == "bash" ]]; then exec > >(tee -ia $A_TMP_FILE) exec 2>... _FILE >&2) elif [[ "$A_CURR_SHELL" == "ksh" ]]; then mkfifo /tmp/$$-out-fifo ( exec tee -i... aced with Replacement. If Replacement is omitted, then the first match of Pattern is replaced by nothing
- TSM "Inkrementális" archiváló szkript @shell
- ------" >> "$LOGFILE" if [[ $RC -eq 0 ]]; then mv "${FILELIST}" "${FILELIST}.arc
- TSM és OS adatgyűjtő TSM szerver felméréshez @shell:riportok
- STGPOOL_NAME,substr(case when s.devclass='DISK' then s.devclass else s.devclass || ' (' || d.devtype |... ' ',1,6)-1)" if [[ $1 != "-t" && $1 != "-o" ]]; then echo "Hasznalat:" echo "$0 [-t] [-o]" echo ec... xit 1 fi while [ "$1" ]; do if [ "$1" = "-t" ]; then VER=$((`dsmadmc -id=$TSMUSER -pa=$TSMPASS -se... /\1/p' -e 's/\t\s//g'`)) if [ "$VER" = "0" ]; then echo "A TSM szerverre nem tudtam bejelentkezni
- TSM drive usage riport @shell:riportok
- HEN substr(end_time,1,13)=substr(start_time,1,13) THEN timestampdiff(4,end_time-start_time) WHEN substr(end_time,1,13)>substr(start_time,1,13) THEN timestampdiff(4,timestamp(concat(date(start_time)... HEN substr(end_time,1,13)>substr(start_time,1,13) THEN timestampdiff(4,end_time-timestamp(concat(date(en... HEN substr(end_time,1,13)=substr(start_time,1,13) THEN timestampdiff(4,end_time-start_time) WHEN substr(
- TSM kliens riport shell szkript @shell:riportok
- AS \"ACTUAL START\", case when e.status='Missed' then '' else TRANSLATE('a bc:de:fg', DIGITS(e.complete... ',' ') end as \"RUNTIME \", case when e.result=0 then ' 0-Successful' when e.result=4 then ' 4-Skipped Files' when e.result=8 then ' 8-Warnings' when e.result=12 then ' 12-Failed' when e.resul
- Linux interfészek listázása @shell:device_management
- if [[ $(grep -c "Slave.*$ETH" $BOND) -gt 0 ]]; then MAC=$(grep -A5 "Slave.*$ETH" $BON... fi done if [[ $ETH =~ ^bond ]]; then SLAVES=$(awk '/^Slave Interface/{
- VMware image mentések riportja @shell:riportok
- .env >$OUTPUT_FILE . govc.config if [[ -z $1 ]]; then echo "Hiba: nem adtal meg cimzettet! Hely... # if [[ $(($ROWNUM % 2)) -eq 0 ]]; then ROWNUM=$(($ROWNUM+1)); fi if [[ $(echo $INPUT | grep -c '<caption>') -gt 0 ]]; then echo "$INPUT" >> $OUTPUT_FILE.html; eli... $(echo $INPUT | grep -c 'NINCS MENTVE') -gt 0 ]]; then echo "<tr style=\"background-color: #ffa8
- ovm_functions.sh szkript @shell:oravm
- -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Nincs SSH kulcs a CLI-hez, legenera... -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Sikertelen. Eddig tartott a
- Oracle VM CPU pin map @shell:oravm
- cpu_pin_map.log" if [[ -z "$OVM_ADMIN_PASSWD" ]]; then read -s -p "Add meg az oracle VM Manager admin j... p -q "SigIgn:\s.{15}[13579bdf]" /proc/$$/status ; then # nohup esetén ACT_TTY=$(ps -ef | awk "/$$/{i... -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Nincs SSH kulcs a CLI-hez, legenera... -p 10000 list manager |grep -c Success) -eq 0 ]]; then echo "Sikertelen. Eddig tartott a
- VM-ek listázása @shell:oravm
- && continue; if [[ $DISK_ID =~ img$ ]]; then DISK_SIZE=$(ovm_exec "show virtualdis