Scripts to automating daily tasks http://gitea.open6hosting.com/Open6Hosting/smartos-bin
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

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