{"id":175,"date":"2014-11-20T17:23:44","date_gmt":"2014-11-20T08:23:44","guid":{"rendered":"http:\/\/teraterm.feasible-lab.com\/?p=175"},"modified":"2024-04-24T17:18:25","modified_gmt":"2024-04-24T08:18:25","slug":"5-1-tera-term-password","status":"publish","type":"post","link":"https:\/\/teraterm.feasible-lab.com\/?p=175","title":{"rendered":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046"},"content":{"rendered":"<h2>5.1.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u6570\u5316\u3059\u308b<\/h2>\n<p>&nbsp;<\/p>\n<p>\u4eca\u307e\u3067\u30eb\u30fc\u30bf\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001&#8217;cisco&#8217;\u3067\u3042\u308b\u4e8b\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u74b0\u5883\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u8aad\u307f\u66ff\u3048\u3066\u3001\u30de\u30af\u30ed\u3092\u4f5c\u6210\u9802\u3044\u3066\u3044\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.1.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306e\u5fc5\u8981\u6027<\/h3>\n<p>\u3053\u3053\u3067\u3001\u4eee\u306b\u3001\u3053\u3093\u306a\u8a71\u304c\u6319\u3063\u305f\u3068\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>A\u90e8\u9577\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u304ccisco\u3060\u3068\u3061\u3087\u3063\u3068\u3088\u308f\u3044\u306a\u3042\u300d<\/p>\n<p>B\u4e3b\u4efb\u300c\u305d\u3046\u3067\u3059\u306d\u3001\u90e8\u9577\u300d<\/p>\n<p>\u3042\u306a\u305f\u300c\uff08\u3075\u3080\u3075\u3080\u30fb\u30fb\u30fb\uff09\u300d<\/p>\n<p>A\u90e8\u9577\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u306fcisco123\u306b\u5909\u66f4\u3057\u3088\u3046\u300d<\/p>\n<p>B\u4e3b\u4efb\u300c\u305d\u3046\u3067\u3059\u306d\u3001\u90e8\u9577\uff01\u300d<\/p>\n<p>\u3042\u306a\u305f\u300c\uff08\u30de\u30af\u30ed\u306e\u5909\u66f4\u304c\u5fc5\u8981\u3060\u306a\u3042\u30fb\u30fb\u30fb\uff09\u300d<\/p>\n<p>A\u90e8\u9577\u300c\u6bce\u6708\u5225\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u66f4\u65b0\u3082\u5fc5\u8981\u3060\u300d<\/p>\n<p>B\u4e3b\u4efb\u300c\u30de\u30af\u30ed\u3082\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3059\u306d\u3001\u90e8\u9577\uff01\u300d<\/p>\n<p>\u3042\u306a\u305f\u300c\uff08\u304a\u3001B\u4e3b\u4efb\u304c\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u304b\u306a\uff01\uff1f\uff09\u300d<\/p>\n<p>B\u4e3b\u4efb\u300cC\u3055\u3093\uff08\u3042\u306a\u305f\uff09\u3088\u308d\u3057\u304f\u301c\u300d<\/p>\n<p>\u3042\u306a\u305f\u300c\u30fb\u30fb\u30fb\u300d<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.1.2. \u30de\u30af\u30ed\u5185\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u6570\u5316\u3059\u308b\u5fc5\u8981\u6027\u304c\u767a\u751f<\/h3>\n<p>&nbsp;<\/p>\n<p>B\u4e3b\u4efb\u306e\u83ef\u9e97\u306a\u308b\u30b9\u30eb\u30fc\u30d1\u30b9\u3082\u3055\u308b\u3053\u3068\u306a\u304c\u3089\u3001A\u90e8\u9577\u306f\u5341\u5e74\u304f\u3089\u3044\u524d\u306e\u65e5\u7d4c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7279\u96c6\u3067\u3082\u8aad\u3093\u3060\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30a8\u30d4\u30bd\u30fc\u30c9\u5185\u3067\u306f\u3001\u3042\u306a\u305f\u304c\u4f5c\u6210\u3057\u3066\u3044\u308b\u30de\u30af\u30ed\u304c\u904b\u7528\u30de\u30af\u30ed\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u5b9a\u671f\u7684\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u5834\u5408\u3001\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3068enable\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3068\u3082\u306b\u540c\u3058\u5024\u3067\u826f\u3057\u3068\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u7d20\u76f4\u306b\u30de\u30af\u30ed\u3092\u5909\u66f4\u3059\u308b\u3068\u306a\u308b\u3068\u3001\u3069\u3053\u306e\u90e8\u5206\u3067\u5909\u66f4\u304c\u5fc5\u8981\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>5.1.2. \u30de\u30af\u30ed\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u6570\u5316\u3059\u308b<\/h2>\n<p>&nbsp;<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u3053\u308c\u307e\u3067\u306b\u4f5c\u6210\u3057\u305f\u30de\u30af\u30ed\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u90e8\u5206\u3092\u5909\u6570\u306b\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.2.1. \u524d\u56de\u307e\u3067\u306b\u4f5c\u6210\u3057\u305f\u30de\u30af\u30ed\u306e\u632f\u308a\u8fd4\u308a<\/h3>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001<a title=\"4.3. logclose\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\" href=\"http:\/\/teraterm.feasible-lab.com\/4-3-logclose%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86\/\" target=\"_blank\" rel=\"noopener\">\u524d\u56de<\/a>\u307e\u3067\u306b\u4f5c\u6210\u3057\u305f\u30de\u30af\u30ed\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default mark:7,13 decode:true\">connect '172.16.0.1:23 \/nossh \/T=1'\r\nchangedir 'C:\\Users\\Shun\\Desktop'\r\n\r\nlogopen 'show_run.log' 0 0\r\n\r\n  wait 'Password:'\r\n sendln 'cisco'\r\n  wait '&gt;'\r\n   pause 3\r\n sendln 'en'\r\n  wait 'Password'\r\n   pause 3\r\n sendln 'cisco'\r\n  wait '#'\r\n   pause 3\r\n sendln 'terminal length 0'\r\n  wait '#'\r\n   pause 3\r\n sendln 'show run'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n\r\nlogclose\r\nlogopen 'show_log.log' 0 0\r\n\r\n sendln 'show log'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n sendln 'exit'\r\n\r\nend<\/pre>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306e\u4e2d\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6295\u5165\u3057\u3066\u3044\u308b\u7b87\u6240\u306f\u30017\u884c\u76ee\u306813\u884c\u76ee\u306e\u4e8c\u7b87\u6240\u3067\u3059\u306d\u3002<\/p>\n<p>\u4e00\u56de\u5909\u66f4\u3059\u308b\u3060\u3051\u306a\u3089\u307e\u3060\u3057\u3082\u3001\u6bce\u6708\u5b9a\u671f\u7684\u306b\u5909\u66f4\u3092\u3057\u3066\u3044\u304f\u3068\u306a\u308b\u3068\u3001\u7d50\u69cb\u5909\u66f4\u6f0f\u308c\u3068\u304b\u5909\u66f4\u5fd8\u308c\u306a\u3093\u304b\u304c\u51fa\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u30827\u884c\u76ee\u306813\u884c\u76ee\u307f\u305f\u3044\u306a\u4e2d\u9014\u534a\u7aef\u306a\u5834\u6240\u306b\u5909\u66f4\u7b87\u6240\u304c\u3042\u308b\u305f\u3081\u3001\u5909\u66f4\u4f5c\u696d\u4e2d\u306b\u4ed6\u306e\u884c\u3092\u6d88\u3057\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u3001\u3001\u3068\u8003\u3048\u308b\u3068\u3001\u982d\u304c\u75db\u304f\u306a\u3063\u3066\u304d\u307e\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.2.2. \u30de\u30af\u30ed\u306e\u4e2d\u3067\u5909\u6570\u5ba3\u8a00\u3059\u308b<\/h3>\n<p>\u305b\u3081\u3066\u3001\u3082\u3063\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u3053\u308d\u306b\u66f4\u65b0\u5834\u6240\u304c\u3042\u308c\u3070\u30fb\u30fb\u30fb\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u304d\u308b\u3093\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u3067\u3001\u3044\u3088\u3044\u3088\u5909\u6570\u306e\u767b\u5834\u3067\u3059\u3002<\/p>\n<p>\u5909\u6570\u3068\u306f\u3001\u6587\u5b57\u5217\u3084\u3089\u6570\u5024\u3084\u3089\u3092\u4ee3\u5165\u3059\u308b\u4e8b\u304c\u3067\u304d\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002\u3057\u304b\u3082\u3001\u4ee3\u5165\u3057\u3066\u304a\u3051\u3070\u3001\u30de\u30af\u30ed\u306e\u4e2d\u3067\u3001\u305d\u306e\u5909\u6570\u304c\u3055\u3082\u5b9f\u969b\u306e\u5024\u3067\u3042\u308b\u304b\u306e\u3088\u3046\u306b\u6271\u3048\u308b\u306e\u3067\u3001\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u5909\u6570\u3092\u4f7f\u3046\u306b\u306f\u3001\u307e\u305a\u3001\u300e\u5909\u6570\u5ba3\u8a00\u300f\u3068\u3044\u3046\u3082\u306e\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300e\u5909\u6570\u5ba3\u8a00\u300f\u3068\u306f\u3001\u300c\u3053\u306e\u30de\u30af\u30ed\u3067\u306f\u3001A\u3068\u8a00\u3063\u305f\u3089&#8217;Tokyo&#8217;\u3068\u3044\u3046\u6587\u5b57\u5217\u306e\u3053\u3068\u3067\u3059\u3088\u300d\u3068\u5ba3\u8a00\u3059\u308b\u30eb\u30fc\u30eb\u6c7a\u3081\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.2.3. \u5909\u6570\u5ba3\u8a00\u3092\u3057\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u4ee3\u5165\u3059\u308b<\/h3>\n<p>&nbsp;<\/p>\n<p>\u8a00\u8449\u3060\u3051\u3067\u8aac\u660e\u3059\u308b\u3068\u5168\u304f\u610f\u5473\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u65e9\u901f\u66f8\u3044\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">PWD = 'cisco123'<\/pre>\n<p>\u3053\u308c\u3067\u3001PWD\u3068\u3044\u3046\u6587\u5b57\u5217\u306f&#8217;cisco123&#8217;\u306e\u4e8b\u3060\u3088\u3001\u3068\b\u5ba3\u8a00\u3057\u305f\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30de\u30af\u30ed\u306e\u4e2d\u306b\u304a\u3044\u3066\u306f\u3001PWD\u3068\u3044\u3046\u6587\u5b57\u306e\u4e26\u3073\u304c\u51fa\u3066\u304d\u305f\u3089\u5e38\u306b\u3001\u300c&#8217;cisco123&#8217;\u306e\u4e8b\u3092\u8a00\u3063\u3066\u3044\u308b\u3093\u3060\u306a\u300d\u3068\u52dd\u624b\u306b\u89e3\u91c8\u3055\u308c\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5909\u6570\u306b\u306f\u6570\u5024\u3092\u4ee3\u5165\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"lang:default decode:true\">TEN = 10<\/pre>\n<p>\u3053\u306e\u5834\u5408\u3001TEN\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u30de\u30af\u30ed\u5185\u306b\u51fa\u3066\u304f\u308b\u3068\u3001\u5e38\u306b10\u3068\u3044\u3046\u5024\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3001\u52d5\u4f5c\u3059\u308b\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3061\u3087\u3046\u3069\u3001\u6570\u5b66\u306e\u300ex=1\u300f\u3068\u4f3c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u5909\u6570\u306e\u5834\u5408\u306f\u3001\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u4e00\u6587\u5b57\u3058\u3083\u306a\u304f\u3066\u3082\u3044\u3044\u3057\u3001\u6570\u5b57\u306e\u4ee3\u308f\u308a\u306b\u5225\u306e\u6587\u5b57\u5217\u3082\u5165\u308c\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.2.4. \u5909\u6570\u5316\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30de\u30af\u30ed\u306b\u53d6\u308a\u8fbc\u3080<\/h3>\n<p>&nbsp;<\/p>\n<p>\u5b9f\u969b\u306b\u30de\u30af\u30ed\u306e\u4e2d\u306b\u53d6\u308a\u8fbc\u3093\u3067\u307f\u308b\u3068\u3001\u30a4\u30e1\u30fc\u30b8\u304c\u308f\u304d\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u5909\u6570\u3092\u4f7f\u3063\u3066\u30de\u30af\u30ed\u3092\u66f8\u304d\u76f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default mark:1,9,15 decode:true\">PWD = 'cisco123'\r\n\r\nconnect '172.16.0.1:23 \/nossh \/T=1'\r\nchangedir 'C:\\Users\\Shun\\Desktop'\r\n\r\nlogopen 'show_run.log' 0 0\r\n\r\n  wait 'Password:'\r\n sendln PWD\r\n  wait '&gt;'\r\n   pause 3\r\n sendln 'en'\r\n  wait 'Password'\r\n   pause 3\r\n sendln PWD\r\n  wait '#'\r\n   pause 3\r\n sendln 'terminal length 0'\r\n  wait '#'\r\n   pause 3\r\n sendln 'show run'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n\r\nlogclose\r\nlogopen 'show_log.log' 0 0\r\n\r\n sendln 'show log'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n sendln 'exit'\r\n\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p>1\u884c\u76ee\u306bPWD\u3092\u4f7f\u3063\u3066\u5909\u6570\u5ba3\u8a00\u3092\u3057\u3066\u30019\u884c\u76ee\u300115\u884c\u76ee\u304c\u4eca\u307e\u3067&#8217;cisco&#8217;\u3060\u3063\u305f\u306e\u304c\u3001PWD\u306b\u7f6e\u304d\u63db\u308f\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8a00\u3046\u3068\u3001\u3053\u306e\u30de\u30af\u30ed\u3067\u306f1\u884c\u76ee\u3067PWD\u3068\u8a00\u3048\u3070&#8217;cisco123&#8217;\u3068\u6c7a\u307e\u3063\u305f\u306e\u3067\u30019\u884c\u76ee\u306815\u884c\u76ee\u306b\u51fa\u3066\u304d\u305fPWD\u30821\u884c\u76ee\u306e\u5ba3\u8a00\u306b\u57fa\u3065\u3044\u3066\u3001&#8217;cisco123&#8217;\u3068\u8a8d\u8b58\u3055\u308c\u305f\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3046\u3057\u3066\u304a\u3051\u3070\u3001\u4eca\u5f8c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u6642\u30011\u884c\u76ee\u3060\u3051\u3092\u5909\u66f4\u3059\u308c\u3070\u3088\u304f\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>5.1.2.5. \u30de\u30af\u30ed\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b<\/h3>\n<p>&nbsp;<\/p>\n<p>\u3068\u3053\u308d\u3067\u3001\u3069\u3046\u3082\u30de\u30af\u30ed\u304c\u9577\u304f\u306a\u3063\u3066\u304d\u3066\u3001\u3044\u308d\u3044\u308d\u3068\u8aad\u307f\u306b\u304f\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u305d\u3046\u3067\u3059\u3002\u30b3\u30e1\u30f3\u30c8\u3092\u305d\u308d\u305d\u308d\u4f7f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u4f4e\u9650\u3001\u5909\u6570\u5ba3\u8a00\u306e\u90e8\u5206\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001\u81ea\u5206\u304c\u3042\u3068\u3067\u898b\u305f\u3068\u304d\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u3066\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u79c1\u304c\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u308b\u969b\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u901a\u5e38\u3088\u308a\u591a\u3081\u306b\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u4ee5\u4e0a\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u3059\u304e\u308b\u3068\u3001\u9006\u306b\u898b\u3065\u3089\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u5f0a\u5bb3\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u6ce8\u610f\u3057\u3064\u3064\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true\">;=================================\r\n;password\u306e\u5909\u6570\u3001\u6708\u306b\u4e00\u56de\u5909\u66f4\u3059\u308b\r\n;=================================\r\nPWD = 'cisco123'\r\n\r\n\r\n;=================================\r\n;telnet\u63a5\u7d9a\u90e8\u5206desktop\u306b\u30ed\u30b0\u4fdd\u5b58\r\n;=================================\r\nconnect '172.16.0.1:23 \/nossh \/T=1'\r\nchangedir 'C:\\Users\\Shun\\Desktop'\r\n\r\n\r\n;=================================\r\n;show run\u306e\u30ed\u30b0\u3092\u53d6\u5f97\r\n;=================================\r\nlogopen 'show_run.log' 0 0\r\n\r\n  wait 'Password:'\r\n sendln PWD\r\n  wait '&gt;'\r\n   pause 3\r\n sendln 'en'\r\n  wait 'Password'\r\n   pause 3\r\n sendln PWD\r\n  wait '#'\r\n   pause 3\r\n sendln 'terminal length 0'\r\n  wait '#'\r\n   pause 3\r\n sendln 'show run'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n\r\nlogclose\r\n\r\n;=================================\r\n;show log\u306e\u30ed\u30b0\u3092\u53d6\u5f97\r\n;=================================\r\nlogopen 'show_log.log' 0 0\r\n\r\n sendln 'show log'\r\n   pause 5\r\n sendln ''\r\n  wait '#'\r\n sendln 'exit'\r\n\r\nend<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>5.1.3. \u307e\u3068\u3081<\/h2>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u7384\u4eba\u3063\u307d\u304f\u306a\u3063\u3066\u304d\u305f\u6c17\u304c\u3057\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u30b3\u30e1\u30f3\u30c8\u3092\u5165\u308c\u308b\u3068\u3001\u30de\u30af\u30ed\u306b\u3044\u3076\u3057\u9280\u306e\u8f1d\u304d\u304c\u751f\u307e\u308c\u3066\u304f\u308b\u306e\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u884c\u6570\u3082\u7a3c\u3052\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u3071\u3063\u3068\u898b\u300c\u3059\u3054\u3044\u4e8b\u3092\u3084\u3063\u3066\u305d\u3046\u306a\u30de\u30af\u30ed\u3060\u30fb\u30fb\u30fb\u300d\u3068\u601d\u308f\u305b\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306f\u5909\u6570\u5ba3\u8a00\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6587\u5b57\u5217\u3092PWD\u3068\u3044\u3046\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3053\u3068\u3092\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u5909\u6570\u3092\u3046\u307e\u304f\u4f7f\u3048\u3070\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5909\u66f4\u306a\u3069\u306b\u67d4\u8edf\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u304f\u3089\u3044\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3001\u96a3\u306e\u90e8\u7f72\u304b\u3089\u300c\u3042\u305d\u3053\u306e\u90e8\u7f72\u306b\u306f\u3001\u751f\u7c8b\u306e\u30de\u30af\u30e9\u30fc\uff08\u30de\u30af\u30ed\u306e\u4f7f\u3044\u624b\uff09\u304c\u3044\u308b\u3089\u3057\u3044\u305e\u30fb\u30fb\u30fb\u300d\u3068\u3072\u305d\u3072\u305d\u58f0\u304c\u805e\u3053\u3048\u3066\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u6211\u3005\u306e\u9032\u5316\u306f\u307e\u3060\u6b62\u307e\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><a title=\"5.2. \u30de\u30af\u30ed\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30ed\u30b0\u3092\u4fdd\u5b58\u3057\u3088\u3046\" href=\"http:\/\/teraterm.feasible-lab.com\/5-2-getdir-log-file\/\" target=\"_blank\" rel=\"noopener\">\u6b21\u56de<\/a>\u306f\u3001\u3082\u3046\u5c11\u3057\u5909\u6570\u3092\u6d3b\u7528\u3057\u3066\u3001\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,32],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-05-tera-term-var","category-05-1-tera-term-password-var"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/teraterm.feasible-lab.com\/?p=175\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/teraterm.feasible-lab.com\/?p=175\" \/>\n<meta property=\"og:site_name\" content=\"\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-20T08:23:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-24T08:18:25+00:00\" \/>\n<meta name=\"author\" content=\"Shunsuke Yoshikawa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shunsuke Yoshikawa\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175\"},\"author\":{\"name\":\"Shunsuke Yoshikawa\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/#\\\/schema\\\/person\\\/e37c225a001d2e04f83152790d000c65\"},\"headline\":\"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046\",\"datePublished\":\"2014-11-20T08:23:44+00:00\",\"dateModified\":\"2024-04-24T08:18:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175\"},\"wordCount\":63,\"commentCount\":2,\"articleSection\":[\"05. \u5909\u6570\u3092\u4f7f\u3063\u3066\u3044\u3053\u3046\",\"05.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u6570\u306b\u7f6e\u304d\u63db\u3048\u308b\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175\",\"url\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175\",\"name\":\"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/#website\"},\"datePublished\":\"2014-11-20T08:23:44+00:00\",\"dateModified\":\"2024-04-24T08:18:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/#\\\/schema\\\/person\\\/e37c225a001d2e04f83152790d000c65\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?p=175#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/#website\",\"url\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/\",\"name\":\"\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed\",\"description\":\"Teraterm\u30de\u30af\u30ed\u3067\u65e5\u3005\u306e\u4ed5\u4e8b\u3092\u697d\u306b\u3057\u307e\u3057\u3087\u3046\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/#\\\/schema\\\/person\\\/e37c225a001d2e04f83152790d000c65\",\"name\":\"Shunsuke Yoshikawa\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g\",\"caption\":\"Shunsuke Yoshikawa\"},\"url\":\"https:\\\/\\\/teraterm.feasible-lab.com\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/teraterm.feasible-lab.com\/?p=175","og_locale":"ja_JP","og_type":"article","og_title":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed","og_url":"https:\/\/teraterm.feasible-lab.com\/?p=175","og_site_name":"\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed","article_published_time":"2014-11-20T08:23:44+00:00","article_modified_time":"2024-04-24T08:18:25+00:00","author":"Shunsuke Yoshikawa","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"Shunsuke Yoshikawa","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/teraterm.feasible-lab.com\/?p=175#article","isPartOf":{"@id":"https:\/\/teraterm.feasible-lab.com\/?p=175"},"author":{"name":"Shunsuke Yoshikawa","@id":"https:\/\/teraterm.feasible-lab.com\/#\/schema\/person\/e37c225a001d2e04f83152790d000c65"},"headline":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046","datePublished":"2014-11-20T08:23:44+00:00","dateModified":"2024-04-24T08:18:25+00:00","mainEntityOfPage":{"@id":"https:\/\/teraterm.feasible-lab.com\/?p=175"},"wordCount":63,"commentCount":2,"articleSection":["05. \u5909\u6570\u3092\u4f7f\u3063\u3066\u3044\u3053\u3046","05.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u6570\u306b\u7f6e\u304d\u63db\u3048\u308b"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/teraterm.feasible-lab.com\/?p=175#respond"]}]},{"@type":"WebPage","@id":"https:\/\/teraterm.feasible-lab.com\/?p=175","url":"https:\/\/teraterm.feasible-lab.com\/?p=175","name":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046 - \u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed","isPartOf":{"@id":"https:\/\/teraterm.feasible-lab.com\/#website"},"datePublished":"2014-11-20T08:23:44+00:00","dateModified":"2024-04-24T08:18:25+00:00","author":{"@id":"https:\/\/teraterm.feasible-lab.com\/#\/schema\/person\/e37c225a001d2e04f83152790d000c65"},"breadcrumb":{"@id":"https:\/\/teraterm.feasible-lab.com\/?p=175#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/teraterm.feasible-lab.com\/?p=175"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/teraterm.feasible-lab.com\/?p=175#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/teraterm.feasible-lab.com\/"},{"@type":"ListItem","position":2,"name":"5.1. \u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306b\u5bfe\u5fdc\u3057\u3066\u307f\u3088\u3046"}]},{"@type":"WebSite","@id":"https:\/\/teraterm.feasible-lab.com\/#website","url":"https:\/\/teraterm.feasible-lab.com\/","name":"\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308bTera Term\u30de\u30af\u30ed","description":"Teraterm\u30de\u30af\u30ed\u3067\u65e5\u3005\u306e\u4ed5\u4e8b\u3092\u697d\u306b\u3057\u307e\u3057\u3087\u3046","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/teraterm.feasible-lab.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/teraterm.feasible-lab.com\/#\/schema\/person\/e37c225a001d2e04f83152790d000c65","name":"Shunsuke Yoshikawa","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/50ab8703b04a9ec3a59e1459091a462d3233d120549dac001854c8892741e6ee?s=96&d=mm&r=g","caption":"Shunsuke Yoshikawa"},"url":"https:\/\/teraterm.feasible-lab.com\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":1,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions\/367"}],"wp:attachment":[{"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teraterm.feasible-lab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}