{"id":6,"date":"2009-10-09T12:42:25","date_gmt":"2009-10-09T03:42:25","guid":{"rendered":"http:\/\/www.kaz.bz\/wp\/2009-10-09_256\/"},"modified":"2010-09-14T11:04:03","modified_gmt":"2010-09-14T02:04:03","slug":"%e3%83%9e%e3%83%ab%e3%83%81ping","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2009\/10\/09\/6.html","title":{"rendered":"\u30de\u30eb\u30c1Ping"},"content":{"rendered":"<p>\u203b\u81ea\u5206\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u9818\u57df\u4ee5\u5916\u306b\u5b9f\u884c\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u7528\u306b\u3002<br \/>\n\u5b9f\u969b\u306b\u306f<\/p>\n<p>sh \u30b9\u30af\u30ea\u30d7\u30c8\u540d | tee \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d<\/p>\n<p>\u306a\u3069\u3067\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush:bash\">\r\n#! \/bin\/sh\r\n\r\nBASE_IP=192.168.0\r\nSTART_IP=1\r\nEND_IP=254\r\n\r\nmain()\r\n{\r\n\r\nfor i in `seq ${START_IP} ${END_IP}`\r\ndo\r\nping -c1 ${BASE_IP}.$i 2&gt;&amp;1 &gt; \/dev\/null\r\nif [ $? = 0 ]; then\r\nRET=\"OK( `dig -x ${BASE_IP}.$i +short|awk 'NR == 2'` )\"\r\nelse\r\nRET=\"\u63a5\u7d9a\u304c\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093\"\r\nfi\r\n\r\necho \"${BASE_IP}.$i: ${RET}\"\r\n\r\ndone\r\n}\r\n\r\nmain\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u81ea\u5206\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u9818\u57df\u4ee5\u5916\u306b\u5b9f\u884c\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u7528\u306b\u3002 \u5b9f\u969b\u306b\u306f sh \u30b9\u30af\u30ea\u30d7\u30c8\u540d | tee \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u540d \u306a\u3069\u3067\u5b9f\u884c\u3002 #! \/bin\/sh BASE_IP=192.168.0 START_ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[83],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-shellscript","tag-lin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":33,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/08\/06\/33.html","url_meta":{"origin":6,"position":0},"title":"\u30eb\u30fc\u30c8\u30b5\u30fc\u30d0\u5909\u66f4\u306b\u4f34\u3046\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3002","author":"kaz. Suenaga","date":"2008\/08\/06","format":false,"excerpt":"\u305f\u307e\u306b\u3042\u308bRoot\u30b5\u30fc\u30d0\u306eIP\u5909\u66f4\u306b\u4f34\u3046\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u65b9\u6cd5\u3002 \u30eb\u30fc\u30c8\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08BIND\u306en\u2026","rel":"","context":"DJBDNS","block_context":{"text":"DJBDNS","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/djbdns"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1380,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/10\/03\/1380.html","url_meta":{"origin":6,"position":1},"title":"ucspi-tcp \u306eSSL\u5bfe\u5fdc\uff08\u3064\u3044\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff09\u3002","author":"kaz. Suenaga","date":"2012\/10\/03","format":false,"excerpt":"\u65b9\u91dd http:\/\/www.nrg4u.com\/ \u306b\u3042\u308b\u300ctcpserver SSL\/TLS pat\u2026","rel":"","context":"ucspi-tcp","block_context":{"text":"ucspi-tcp","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb\/ucspi-tcp"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1391,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/10\/18\/1391.html","url_meta":{"origin":6,"position":2},"title":"ProxmoxVE\u304c\u6b63\u5e38\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u306e\u4e00\u4f8b\u3002","author":"kaz. Suenaga","date":"2012\/10\/18","format":false,"excerpt":"ProxmoxVE\u306bLXDE\u3084Gnome\u3092\u3044\u308c\u3066\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u3067\u3001\u6025\u306bPVE\u7cfb\u30b5\u30fc\u2026","rel":"","context":"Proxmox VE","block_context":{"text":"Proxmox VE","link":"https:\/\/wp.kaz.bz\/tech\/category\/virtualization\/proxmoxve"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":634,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/02\/03\/634.html","url_meta":{"origin":6,"position":3},"title":"daemontools + ucspi-tcp + djbdns(dnscache) + netqmail =","author":"kaz. Suenaga","date":"2011\/02\/03","format":false,"excerpt":"\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u3081\u3046\u3061\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \/usr\/local\/src\/djb \u3068\u304b\u306b ins\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":921,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/08\/08\/921.html","url_meta":{"origin":6,"position":4},"title":"ProxmoxVE\u306eVE\u3067UT-VPN\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u306e\u63a5\u7d9a\u306e\u307f\u306eVE\u3092\u4f5c\u308b","author":"kaz. Suenaga","date":"2011\/08\/08","format":false,"excerpt":"ProxmoxVE\u306eOpenVZ\u30b3\u30f3\u30c6\u30ca\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u3064\u3044\u3066\u3002 \u306e\u7d9a\u304d\u3002 \u8ab2\u984c ProxmoxVE\u2026","rel":"","context":"PacketiX VPN \/ UT-VPN","block_context":{"text":"PacketiX VPN \/ UT-VPN","link":"https:\/\/wp.kaz.bz\/tech\/category\/security\/packetix-vpn-ut-vpn"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1055,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/11\/11\/1055.html","url_meta":{"origin":6,"position":5},"title":"ActiveDirectory \u306e\u30e6\u30fc\u30b6\u30ed\u30c3\u30af\u30a2\u30a6\u30c8\u89e3\u9664\u30b9\u30af\u30ea\u30d7\u30c8\uff08VBS\uff09","author":"kaz. Suenaga","date":"2011\/11\/11","format":false,"excerpt":"ActiveDirectory\u3067\u30a2\u30ab\u30a6\u30f3\u30c8\u30ed\u30c3\u30af\u304c\u304b\u304b\u3063\u305f\u30e6\u30fc\u30b6\u306e\u30ed\u30c3\u30af\u89e3\u9664\u3092\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \u2026","rel":"","context":"ActiveDirectory","block_context":{"text":"ActiveDirectory","link":"https:\/\/wp.kaz.bz\/tech\/category\/windows\/server\/activedirectory"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}