<?xml version="1.0" encoding="UTF-8" ?>
<feed xml:lang="ja" xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="text">IT-Note</title>
  <subtitle type="html">インフラ屋さんのメモ書き</subtitle>
  <link rel="self" type="application/atom+xml" href="https://itnote.yamatoblog.net/atom"/>
  <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/"/>
  <updated>2015-08-13T21:35:55+09:00</updated>
  <author><name>estera</name></author>
  <generator uri="//www.ninja.co.jp/blog/" version="0.9">忍者ブログ</generator>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />
  <entry>
    <id>itnote.yamatoblog.net://entry/13</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/teraterm/teraterm%E5%90%91%E3%81%91%E3%81%AE%E4%BE%BF%E5%88%A9%E3%83%84%E3%83%BC%E3%83%AB" />
    <published>2017-02-19T20:46:46+09:00</published> 
    <updated>2017-02-19T20:46:46+09:00</updated> 
    <category term="TeraTerm" label="TeraTerm" />
    <title>TeraTerm向けの便利ツール</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[インフラ屋さんとは切っても切り離せないTeraTerm。<br />
<br />
今回関わっているプロジェクトでは外部の方と一緒に仕事をしているのですが、<br />
その方々から便利なツールを教えて頂きました。<br />
<br />
■<a href="http://www.vector.co.jp/soft/win95/net/se276622.html" title="" target="_blank">TeraTerm Assistant<br />
<br />
</a>同じコマンドを、複数のTeraTermのウインドウに対して同時に実行できる、という補助ツールです。<br />
インフラ屋さんであれば、どんなときに使うかすぐにわかると思いますが、<br />
障害対応や試験などで複数機器(1号機・2号機や相互接続されている機器同士など)のステータスを同時に取得することが非常に楽になります。<br />
<br />
会社でも使ってみようと思います。<br />
<br />
<a href="http://www.vector.co.jp/soft/winnt/net/se481698.html" title="" target="_blank">■TTLGen<br />
<br />
</a>TeraTermマクロの作成補助ツールのようなもののようです。<br />
複数ホストに対し、事前に作成しておいたコマンドリストに従って、<br />
同時にコマンド入力ができたり、スケジュールを組んででの定期自動実行ができる模様。<br />
こっちについては、似たようなものをTeraTermマクロで組んでいるので、<br />
そっちのほうが独自カスタマイズがしやすいので、自分としては実際に使うかは微妙ですが、<br />
目的が一致すれば(特に同時一括実行)、非常に使いやすいツールではないかなと思いました。]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/12</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/raspberry%20pie/%E3%83%A9%E3%82%BA%E3%83%91%E3%82%A4%E5%90%91%E3%81%91%E3%81%AE%E9%9D%A2%E7%99%BD%E3%81%9D%E3%81%86%E3%81%AA%E9%9B%91%E8%AA%8C" />
    <published>2017-02-19T20:40:06+09:00</published> 
    <updated>2017-02-19T20:40:06+09:00</updated> 
    <category term="Raspberry Pie" label="Raspberry Pie" />
    <title>ラズパイ向けの面白そうな雑誌</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[会社では日経○○という雑誌やSoftwareDesignという雑誌を購読しているのですが<br />
(ほとんど読んでませんが)<br />
趣味でたまに触っているラズパイの記事はあまりないなーと思っていました。<br />
<br />
CQ出版社というところが出している雑誌で面白そうなものがありましたので、<br />
2017年3月号を購入してみました。<br />
<br />
インターフェース<br />
<br />
<a href="http://interface.cqpub.co.jp/" title="" target="_blank">http://interface.cqpub.co.jp/<br />
<br />
</a>やっと週末に届きまして、<br />
特に人工知能関係について記載されていたので、ちまちまと読んでみようと思います。<br />
同じ出版社が出している、ラズパイを使ったネットワークテスターの作り方の本も面白そうだなあ&hellip;<br />
<br />
]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/11</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/fortigate/link%20monitor%E3%81%AE%E8%A8%AD%E5%AE%9A" />
    <published>2017-02-19T20:32:53+09:00</published> 
    <updated>2017-02-19T20:32:53+09:00</updated> 
    <category term="Fortigate" label="Fortigate" />
    <title>Link Monitorの設定</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[今かかわっているプロジェクトでFortigateを利用しているのですが、<br />
割といろいろなことができるんですね。<br />
<br />
比較的多くの機器に実装されていますが、<br />
FortigateにもLink Monitorという機能が存在します。<br />
<br />
■やれること<br />

<ul>
<li>監視対象を定期的にPing監視し、HAのフェイルオーバーのトリガーにする</li>
<li>監視対象を定期的にPing監視し、ダウンした場合には該当のgateway設定となっているルーティングをDisable化する。(StaticRouteのip-sla(Cisco)やKeep Alive機能(YAMAHA)みたいなもの)</li>
</ul>
後者をやる場合には、バックアップルートとなるもののDistance値を上げておき、明示的にバックアップであることを示すことで、通常時はDistance値が低いgatewayが利用され、LinkMonitorが動作する場合、そのルートが消えてDistance値の高いgatewayが採用されるようです。<br /><br /><a href="https://itnote.yamatoblog.net/fortigate/link%20monitor%E3%81%AE%E8%A8%AD%E5%AE%9A" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/10</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/linux/snmp%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%9F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AE%E5%80%A4%E3%82%92%E8%BF%94%E3%81%99%E6%96%B9%E6%B3%95" />
    <published>2017-02-19T20:12:56+09:00</published> 
    <updated>2017-02-19T20:12:56+09:00</updated> 
    <category term="Linux" label="Linux" />
    <title>snmpで指定したスクリプトの値を返す方法</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[しばらくぶりに書いてみます。<br />
<br />
サービスでbindを利用していたりするのですが、rndcを使ってQuery Per Secondを計算するのが<br />
面倒で、外部から監視できないかなと思っていたのですが、<br />
割と簡単にできそうですね。<br />
<br />
<a href="http://d.hatena.ne.jp/hirose31/20100820/1282301970" title="" target="_blank">http://d.hatena.ne.jp/hirose31/20100820/1282301970</a><br />
[Net-SNMPで外部コマンドの結果を返すときに、そのMIBを固定したいの]<br />
<br />
上記のような形で、rndcのコマンドのQueryの数のみを表示するスクリプトを作って、<br />
それをZabbixなどの外部のSNMPモニタから取得すればいいわけだ。なるほど。<br />
やってみよう。]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/9</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_04" />
    <published>2015-08-22T14:18:03+09:00</published> 
    <updated>2015-08-22T14:18:03+09:00</updated> 
    <category term="zabbix" label="zabbix" />
    <title>ZabbixのAPIを使うVBAを作り直していく_04</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[今回は、(4)「グラフ画像の保存」について書いていきます。<br /><br /><a href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_04" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/8</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/vbs/vbs_http_request_v01" />
    <published>2015-08-14T17:10:34+09:00</published> 
    <updated>2015-08-14T17:10:34+09:00</updated> 
    <category term="vbs" label="vbs" />
    <title>VBSでのHTTPリクエストスクリプト例(初期Ver)</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[未整理状態ですが、今あるスクリプトのコードをそのまま掲載しておきます。<br />
これはHTTPリクエストをVBSで実装したものです。<br /><br /><a href="https://itnote.yamatoblog.net/vbs/vbs_http_request_v01" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/7</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_03" />
    <published>2015-08-14T17:02:22+09:00</published> 
    <updated>2015-08-14T17:02:22+09:00</updated> 
    <category term="zabbix" label="zabbix" />
    <title>ZabbixのAPIを使うVBAを作り直していく_03</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[第三回です。<br />
<br />
今回は(2)のJSON形式の扱い方について記載をしていきます。<br />
ちなみにですが、私は前回ツールを書くまで「JSON形式ってどんなものだろう」という<br />
レベルの理解度でした。今も大してわかってません&hellip;<br />
<br />
<br />
■前回までの記事<br />
<a href="/zabbix/zabbix_api_tool_remake_01" title="">・第一回記事</a><br />
<a href="/zabbix/zabbix_api_tool_remake_02" title="">・第二回記事</a><br /><br /><a href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_03" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/6</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_02" />
    <published>2015-08-14T15:27:15+09:00</published> 
    <updated>2015-08-14T15:27:15+09:00</updated> 
    <category term="zabbix" label="zabbix" />
    <title>ZabbixのAPIを使うVBAを作り直していく_02</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[Zabbix APIを使ったツール作成。第二回です。<br />
<br />
<a href="/zabbix/zabbix_api_tool_remake_01" title="" target="_self">一回目の記事へのリンク</a><br />
<br />
前回も書きましたが、基本的にはツールはExcel上のVBAを使います。<br />
なので、システム要件としては「Excelマクロが使える環境であること」であり、<br />
ターゲットはWindows端末を前提としています。<br />
Zabbix API関係の記事を探すとどうしてもWebツール開発者の方の記事が多くて、<br />
phpスクリプトやcurlの例は多いんですが、運用ツールっぽい扱いのものが少ないんですよね。<br />
自分もいろいろと調べる際に苦労しましたので、<br />
利用OSがWindowsの方の参考になればいいなと思ってます。<br />
<br />
今回は「(1)Zabbix APIを使うための、HTTPのPOSTメソッド」を中心に「(3)Zabbix APIとSESSION_ID」の要素も少し含めて書いていきます。<br /><br /><a href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_02" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/5</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_01" />
    <published>2015-08-14T15:07:08+09:00</published> 
    <updated>2015-08-14T15:07:08+09:00</updated> 
    <category term="zabbix" label="zabbix" />
    <title>ZabbixのAPIを使うVBAを作り直していく_01</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[IT業界で<span style="color: #ff0000;">Zabbix</span>の地位がどんどん高くなっているように思います。<br />
(他ツールの状況を自分が知らないだけかもしれませんが&hellip;)<br />
<br />
会社内でも一部環境の監視をZabbixで実装しているのですが、<br />
そのグラフ閲覧やらデータの一括受信やらを手動でやっていると非常に手間なので、<br />
Excel VBAを中心にツールを作りました。<br />
<br />
作った当初はとりあえず動くことを目的に作っていたのですが、<br />
VBA自体やZabbixの機能などを勉強しながら突貫工事で<br />
ツギハギやコピペも含めて作ったこともあり、<br />
整理して作り直したいなと思うところもあり、その覚書を書いていきます。<br /><br /><a href="https://itnote.yamatoblog.net/zabbix/zabbix_api_tool_remake_01" target="_blank">つづきはこちら</a>]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
  <entry>
    <id>itnote.yamatoblog.net://entry/4</id>
    <link rel="alternate" type="text/html" href="https://itnote.yamatoblog.net/%E4%B8%80%E8%88%AC/%E3%82%B3%E3%83%BC%E3%83%89%E3%83%8F%E3%82%A4%E3%83%A9%E3%82%A4%E3%83%88%E3%83%86%E3%82%B9%E3%83%88" />
    <published>2015-08-14T10:49:30+09:00</published> 
    <updated>2015-08-14T10:49:30+09:00</updated> 
    <category term="一般" label="一般" />
    <title>ソースコードのハイライトの導入</title>
    <content mode="escaped" type="text/html" xml:lang="utf-8"> 
      <![CDATA[同じ忍者ブログのこのサイトを見て、<br />
ソースコードのハイライト機能(syntaxhighlighter)の導入をしてみました。<br />
<a href="http://pcmemo.take-uma.net/_blog/syntaxhighlighter">http://pcmemo.take-uma.net/_blog/syntaxhighlighter</a> <br />
<br />
忍者ブログでアップロードしたものはfile.FQDNという形で利用するため、相対パスでテンプレートに記述できないんですね。<br />
<br />
&lt;や&gt; が必須の言語は置き換えが必要とのことなので、これが頻出する言語はちょっと面倒ですね。<br />
<br />
1行毎の色変えはshThema○○.css ファイルの[.line.alt]部分の書き換えでできるんですね。<br />
少し試してみました。<br />
<br />
■PHPシンタックスのテスト<br />

<pre class="brush: php; html-script: true">&lt;?php
 phpinfo();
?&gt;
</pre>
<br />
■VBシンタックスのテスト<br />

<pre class="brush: vb">Dim hogehoge
If hoge=0 Then
Else
End If
</pre>
<script type="text/javascript">SyntaxHighlighter.all();</script>
<br />
なかなかきれいに表示されますね。<br />
使う機会があればチャレンジしてみます。]]> 
    </content>
    <author>
            <name>estera</name>
        </author>
  </entry>
</feed>