Scripts to automating daily tasks http://gitea.open6hosting.com/Open6Hosting/smartos-bin
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
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