2013年4月30日火曜日

"Deep Security Manager 9.0"の冗長化

スズキです。

以前、下記で"Deep Security Manager"(EC2 x2)と"RDS"(Multi-AZ)を使った冗長構成を
試したのですが、ちょっとうまく行かず(DSMの追加ができない)止まっていました。

これは、"AddressAndPortsScreen.NewNode=True"がインストール時の設定ファイル
(dsm.properties)に記載されていなかったのが原因でした...

せっかくなので、今回は下記の構築スクリプトまで作成して、再度インストール
(構築)してみました。
# cat suz-lab_dsm
#/bin/sh
set -e

FILE=Manager-Linux-9.0.4017.x64

mkdir /tmp/dsm
cd /tmp/dsm
curl -sOL http://www.trendmicro.com/ftp/products/deepsecurity/$FILE.zip
unzip $FILE.zip
chmod 755 $FILE.sh

cat << EOT > ./dsm.properties
DatabaseScreen.DatabaseType=Oracle
DatabaseScreen.Transport=TCP
AddressAndPortsScreen.NewNode=True
DatabaseScreen.Hostname=$1
DatabaseScreen.DatabaseName=$2
DatabaseScreen.Username=$3
DatabaseScreen.Password=$4
CredentialsScreen.Administrator.Username=$5
CredentialsScreen.Administrator.Password=$6
EOT

./$FILE.sh -q -console -varfile ./dsm.properties
service dsm_s stop
service dsm_s start
chkconfig dsm_s on

cd /tmp
rm -rf dsm

exit 0

実行は下記の通りです。
# ./suz-lab_dsm dsm.xxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com dsm suzuki suzuki123 TestUser TestPass#123
※ 第一引数: RDSのエンドポイント
※ 第二引数: RDSのデータベース名
※ 第三引数: RDSのユーザー名
※ 第四引数: RDSのパスワード
※ 第五引数: DSMのユーザー名
※ 第六引数: DSMのパスワード

無事構築が完了すると、下記のように冗長構成になっていることが確認できます。


RDSをフェールオーバーさせても、問題なく動作してるっぽい...
--------
http://www.suz-lab.com

5 コメント:

匿名 さんのコメント...

Pretty nice post. I just stumbled upon your blog and wished to
say that I've really enjoyed browsing your blog posts. In any case I will be subscribing to your rss feed and I hope you write again very soon!

Also visit my page great labrador retriever mix facts

匿名 さんのコメント...

Customers are responsible for shipping the exchange/return merchandise back to our office. We highly advise securing a tracking number for your return, as TOMS will not be liable for any return packages lost in transit. Please note TOMS does not accept worn or damaged merchandise for return or exchange. Any merchandise returned in condition other than new will be subject to a $10 re-stock fee.In brief, TOMS Coupons provide a golden opportunity to be in trend and help the poor children along with.[url=http://www.cheaptomsbuy.com]Cheap Toms sale[/url] 1. Save Money: There is a huge demand in the market owing to the Toms coupon code. This is a perfect situation for the company, children in need and surely the customer too. The money saved can be used to upgrade the shoes wardrobe fast and keep a pace with the changing season trends. You don't have to worry about the monthly budget with the Toms Shoes coupons, as they let you save a great deal of money.Toms shoes are about new to the market. You may acquire noticed them around, they accessory a little like an espadrille, but they do not acquire the cork bottoms, instead, they acquire an adaptable sole. They are an actualization of shoe admired by boyish people, and abnormally students. They acquire the abounding above of acclimation altogether the allegation for actualization and comfort. [url=http://www.onlinetomsoutlet.com]Toms Shoes Outlet[/url] If you cannot find a pair of shoes manufactured by this company in the high street then logging on to the internet might be your answer. More and more merchandise is sold this way every year. The net has really caught on in the world of shoppers as it is so easy to do and requires no effort at all. TOMS is a brand of shoes which offer you fashionable and comfortable foot wears plus an opportunity to help the poor, barefooted children across the world.Yes, TOMS is a company that is established with the objective of helping poor children in the world who starve even for a pair of shoes and get affected with various diseases as they have to stay bare footed all the time. [url=http://www.tomsfans.com]Cheap Toms Sale[/url] The brand got successful in making its presence felt globally within three years of its conception. This is a somewhat a dream product for the serious runner who wants to watch his progress against others and himself or herself, but also it can watch your safety and if something goes wrong, you have Tom-Tom's active updating satellite software available to let emergency services know where you are.
Relate Post
[url=http://www.saleemsonsmovers.com/addguest.html]toms outlet high quality for you discount sale [/url]
[url=http://www2.vc-net.ne.jp/users/biavasasera]best toms high quality for you discount buy[/url]

匿名 さんのコメント...

I all the time emailed this weblog post page to all my contacts,
because if like to read it then my links will too.

Stop by my homepage; check my blog

匿名 さんのコメント...

The taffeta bridesmaid dresses
often embraсe а ruffled halter strap of romantiс
exubeгance. Anуоnе ωho doesn't feel nervous at getting hitched isn't human.
Claѕsіc ѕtyleѕ like А-line
strapless dresseѕ can be versatile for otheг events, but a verу trendy style might have a lіmited shelf life.

匿名 さんのコメント...

Ѕinсe уou're exposing one shoulder you need to avoid normal bras in order not to spoil your dress's
nice style. In case уou are not in a rush to expanԁ your
mateгnіtу wardrobe, thеn you might want to
looκ for maternity clothes onlіne. А flash of skin
is all you neeԁ to pay tributе to your
beautiful and maturіng figure.

Hеre іs my page ... cheap prom dresses