perl – 列出 CPU 資訊
忘記當時寫這個要做什麼 XD #! /usr/bin/perl open(INFO,”top -b -n 1|”); open(CPUCORES, “cat /proc/cpuinfo | grep processor | tail -n 1 | awk ‘{print $3 …
忘記當時寫這個要做什麼 XD #! /usr/bin/perl open(INFO,”top -b -n 1|”); open(CPUCORES, “cat /proc/cpuinfo | grep processor | tail -n 1 | awk ‘{print $3 …
取得 lustre stripe 狀態 # lfs getstripe /home/xxxx 設定每 4MB 為1個 stripe 最多只用 1 個 stripe 然後每個檔案只分配到一個 OST # lfs setstripe -S 4M -i …
# for d in {c..g} ; do echo “/dev/sd`echo $d`1” ; tunefs.lustre –writeconf –dryrun /dev/sd`echo $d`1 |grep “lustre=”;done /dev/sdc1 Target: lustre=OST0002 /dev/sdd1 …
you need to dump your tsm backup logs via following command : # dsmc query backup -subdir=yes -filesonly -detail /archives/ > query_backup.log …
After the certificate is created, complete the installation and configuration of the certificate on the ESXi 6.0 host: When complete, the host …
# echo “net.ipv4.ip_forward = 1” >> /etc/sysctl.d/ip_forward.conf # sysctl -w net.ipv4.ip_forward=1 #### em1 is internal. em2 is public. # firewall-cmd –permanent –add-rule …
# grep -o ‘^[^#]*’ FILENAME
first, you need to generate a ssh2 public key. and put the public key to your web server. login to your HP …
# cat test.sh #!/usr/bin/expect -f set username [lindex $argv 0] set password [lindex $argv 1] spawn ssh $username@HOST expect “password:” send “$password\r” …
#!/usr/bin/expect -f spawn ssh root@bcmm.liho.tw expect “password:” send “PASSWORD\r” expect “system>” send “power -on -T system:blade\[1\]\r” expect “system>” send “power -on -T …