PeerServerのインストール手順。
yum -y install git rpm -ivh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm yum -y install nodejs npm --enablerepo=epel cd /usr/src git clone https://github.com/peers/peerjs-server.git cd peerjs-server npm install
まだ途中ですが、下書きで保存。
IPの経路を全て表示する。
たとえばgoogle.comへの通信で経由したIPを全部見たいなら、
tracert -d google.com
こんな感じですね。
1 1 ms 1 ms 1 ms 192.168.100.1 2 5 ms 4 ms 3 ms 202.224.47.115 3 3 ms 3 ms 2 ms 202.224.47.21 4 12 ms 18 ms 10 ms 202.224.47.2 5 11 ms 15 ms 11 ms 202.224.32.55 6 12 ms 11 ms 11 ms 203.190.230.31 7 12 ms 11 ms 11 ms 72.14.236.82 8 13 ms 13 ms 23 ms 72.14.234.27 9 13 ms 12 ms 11 ms 173.194.117.194
こんな雰囲気で出てきます。
AsteriskのDIALSTATUS。
--------------------------------------------------------------------------------
■ANSWER
通話成功
Call is answered. A successful dial. The caller reached the callee.
--------------------------------------------------------------------------------
■BUSY
通話中
Busy signal. The dial command reached its number but the number is busy.
--------------------------------------------------------------------------------
■NOANSWER
長時間ならしたが、繋がらなかった
No answer. The dial command reached its number, the number rang for too long, then the dial timed out.
--------------------------------------------------------------------------------
■CANCEL
呼び出し先が出る前に発信者が電話を切った
Call is cancelled. The dial command reached its number but the caller hung up before the callee picked up.
--------------------------------------------------------------------------------
■CONGESTION
番号が認識できなかった場合(混雑時等)
Congestion. This status is usually a sign that the dialled number is not recognised.
--------------------------------------------------------------------------------
■CHANUNAVAIL
使用できないチャンネル。SIPにはピアが登録されていない
Channel unavailable. On SIP, peer may not be registered.
--------------------------------------------------------------------------------
■DONTCALL
呼び出し先が呼び出しを拒否(着信拒否?)
Privacy mode, callee rejected the call
--------------------------------------------------------------------------------
■TORTURE
Privacy mode, callee chose to send caller to torture menu
--------------------------------------------------------------------------------
■INVALIDARGS
エラー解析ダイヤルコマンドの引数
Error parsing Dial command arguments (added for Asterisk 1.4.1, SVN r53135-53136)
--------------------------------------------------------------------------------
PostgreSQLで現在走っているプロセスを調べる方法。
コンソールで、
SELECT procpid, start, now() - start AS lap, current_query FROM (SELECT backendid, pg_stat_get_backend_pid(S.backendid) AS procpid, pg_stat_get_backend_activity_start(S.backendid) AS start, pg_stat_get_backend_activity(S.backendid) AS current_query FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS S ) AS S WHERE current_query <> '' ORDER BY lap DESC;
これを実行。
procpid | プロセスID |
---|---|
start | プロセス実行開始時間 |
lap | 経過時間 |
current_query | 実行中のSQL |
SELECT pg_cancel_backend(プロセスID);
これでプロセスを停止できます。