This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIP="169.55.63.3" | |
| cd /etc/sysconfig/network-scripts/ | |
| cp ifcfg-eth1{,:1} | |
| sed -i 's|eth1$|eth1:1|g' ifcfg-eth1:1 | |
| sed -i "s|^IPADDR=.*|IPADDR=$GIP|g" ifcfg-eth1:1 | |
| sed -i "s|^NETMASK=.*|NETMASK=255.255.255.255|g" ifcfg-eth1:1 | |
| sed -i "/HWADDR=/d" ifcfg-eth1:1 | |
| systemctl restart network |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import SoftLayer | |
| from prettytable import PrettyTable | |
| client = SoftLayer.Client() | |
| accountClient = client['SoftLayer_Account'] | |
| try: | |
| maskval='mask[location.pathString,id,hostname,domain,maxCpu,maxMemory,primaryIpAddress,primaryBackendIpAddress,operatingSystem.passwords,activeTransaction.transactionStatus.friendlyName]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # RHEL7 TESTING. | |
| # Run with bash instead of sourcing. | |
| # swinstall_no_source | |
| ntpdate time.service.networklayer.com | |
| # These will be xslt driven, using static values and integrated capsule for testing. | |
| RHN_SATELLITE="rhnsatdal0901.service.networklayer.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import SoftLayer | |
| from prettytable import PrettyTable | |
| client = SoftLayer.Client() | |
| accountClient = client['SoftLayer_Account'] | |
| ''' Env. variables for credential | |
| export SL_USERNAME=xxxxxx | |
| export SL_API_KEY=xxxxxx | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -sL whatismyip.akamai.com | |
| curl -sL checkip.amazonaws.com | |
| curl -sL ipecho.net/plain | |
| curl -sL ipinfo.io/ip | |
| curl -sL checkip.dyndns.org/plain | |
| curl -sL httpbin.org/ip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create Virutal Server : 1core x 1GB MEM, PoD SEO01, 1Gbps NIC, CentOS 7(latest), Hourly , SSH Key | |
| slcli vs create -H iperf2 -D sk.com -c 1 -m 1G -d seo01 -n 1000 -o CENTOS_LATEST --billing hourly --key mungi | |
| # listing VMs | |
| slcli vs list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bar="" | |
| while true; do | |
| DASH=$(printf '=%.0s' {1..30}) | |
| echo $DASH $(date) $DASH | |
| foo=$(slcli vs list) | |
| DIFF=$(diff <(echo "$foo") <(echo "$bar")) | |
| bar=$foo | |
| if [ "$DIFF" != "" ] | |
| then | |
| echo $foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cat << EOF > /root/cloudz.sh | |
| #!/bin/sh | |
| CONFIG_FILE="/root/provisioningConfiguration.cfg" | |
| if [ -f "\$CONFIG_FILE" ] ; then | |
| source \$CONFIG_FILE | |
| INIT_ID="CloudZ" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # DB, Wordpress 초기비번 정의 /root/INIT_PASSWORD | |
| INIT_ID="CloudZ" | |
| INIT_PASSWORD=$(date +%s | sha256sum | base64 | head -c 10) | |
| echo $INIT_PASSWORD > /root/INIT_PASSWORD | |
| # 필요 패키지 설치 | |
| #yum update -y | |
| yum install -y httpd php mariadb-server php-mysqlnd expect |