ネットワーク」カテゴリーアーカイブ

ESXiのログをSyslogサーバに送る

ESXiのログを改めて取ってみようということで。。。
USBだと死んでしまうので、Syslogサーバに飛ばしてみます。
GUIとCUIの両方でやってみます。

ESXiサーバ
ESXi・・・5.0.0

Syslogサーバ
OS・・・Scientific Linux release 6.3 (Carbon)
Syslog・・・rsyslogd 5.8.10
IP・・・192.168.100.14
port・・・514
protcol・・・UDP

参考URL
・CUIでESXiのファイヤウォール設定
・http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2014699
・http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2003322

続きを読む

CUIでESXiのファイヤウォール設定

CUIでファイヤウォールの設定をしたかったので、
調べてみました。

参考URL
http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.security.doc_50%2FGUID-7A8BEFC8-BF86-49B5-AE2D-E400AAD81BA3.html

基本コマンド

# esxcli network firewall
Usage: esxcli network firewall {cmd} [cmd options]

Available Namespaces:
  ruleset               Commands to list and update firewall ruleset configuration

Available Commands:
  get                   Get the firewall status.
  load                  Load firewall module and rulesets configuration.
  refresh               Load ruleset configuration for firewall.
  set                   Set firewall enabled status and default action.
  unload                Allow unload firewall module.

いろんなオプションがある。。。
続きを読む

lsyncdとrsyncでリアルタイム同期

linux kernel2.6.13から導入されたinotify APIを使います。
最近のディストリビューションであれば使えるはずです。

OS・・・Ubuntu 12.04
Kernel・・・3.2.0-26-generic
同期元・・・192.168.100.100 /mnt/cache/
同期先・・・192.168.100.200 /mnt/cache/
ポート・・・TCP/UDP 873

続きを読む

IX2010のNAPTを取得

SNMPではNATPセッション数を取得出来ないので、
サーバから自動でTelnetして取得して
MRTGで表示する方法を考えてみました。

ルータ
・IX2010、2015

サーバ
・Scientific Linux、Debian/Ubuntu
・MRTG
・telnet
・expect
・tr

特に必要なのは、
telnet」「expect」です。

続きを読む