This file contains 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 | |
# | |
# Setup VPN between Debian Linux and VPC G/W. | |
# How to use : ./this_script.sh Generic.txt | |
# | |
# For connecting IPsec VPN, you need to allow these connections. | |
# If VPN has global address, you change FORWARD to OUTPUT. | |
# | |
# ex) iptables -A FORWARD -p udp --dport 500 -j ACCEPT | |
# iptables -A FORWARD -p tcp --dport 500 -j ACCEPT |
This file contains 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 | |
# | |
# VMの利用状況を集計するスクリプトです。 | |
# | |
# - jq コマンド必須です | |
# http://stedolan.github.io/jq/ | |
# # How to install | |
# wget -O /usr/bin/jq http://stedolan.github.io/jq/download/linux64/jq | |
# chmod +x /usr/bin/jq | |
# |
This file contains 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 | |
# | |
# Keystoneから削除済みのユーザが所有者となっているVMのリストを表示します。 | |
# | |
# * jq コマンド必須です | |
# http://stedolan.github.io/jq/ | |
# # How to install | |
# wget -O /usr/bin/jq http://stedolan.github.io/jq/download/linux64/jq | |
# chmod +x /usr/bin/jq | |
# |
This file contains 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
# | |
# Zabbix API Client. | |
# | |
# Usage: | |
# from modules.ZabbixClient import ZabbixClient | |
# ZABBIX_HOST = "zabbix.example.com" | |
# ZABBIX_PORT = 80 | |
# ZABBIX_USER = 'Admin' | |
# ZABBIX_PASS = 'zabbix' | |
# ZABBIX_PATH = '/api_jsonrpc.php' |
NewerOlder