Scripts to automating daily tasks http://gitea.open6hosting.com/Open6Hosting/smartos-bin
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

10 行
317 B

  1. #!/bin/bash
  2. UUID=$1
  3. for a in $(zoneadm list -n); do
  4. UUID=$a
  5. ZONEALIAS=`zonecfg -z ${UUID} info attr name=alias | awk '$1 ~ /value:/ { print $2 }' | openssl base64 -d`
  6. IP=`zonecfg -z ${UUID} info net | awk '$2 ~ /ips/ { print $2 }' | awk -F\" '{ print $2 }' | sed 's/,/ /'`
  7. echo ${UUID} ${ZONEALIAS} ${IP}
  8. done