<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2540434789909949294</id><updated>2025-01-04T18:21:33.497+08:00</updated><category term="Aruba"/><category term="CentOS"/><category term="Extreme"/><category term="expect"/><category term="fortinet"/><category term="ESX"/><category term="backup"/><category term="fortigate"/><category term="fortios"/><category term="freebsd"/><category term="hp"/><category term="vmware"/><category term="CIDR"/><category term="ESXi"/><category term="FortiAnalyzer"/><category term="HP ilo"/><category term="IBM"/><category term="X3550"/><category term="XOS"/><category term="ad"/><category term="edirectory"/><category term="google apps"/><category term="ibook"/><category term="ipad"/><category term="iscsi"/><category term="itunes"/><category term="lacp.extreme"/><category term="ldap"/><category term="linux"/><category term="moodle"/><category term="netstat"/><category term="nmap"/><category term="procurve"/><category term="procuve"/><category term="sflow"/><category term="sslvpn"/><category term="sso"/><category term="trunk"/><category term="wifi"/><category term="備份"/><category term="義大利麵"/><category term="食譜"/><title type='text'>喬家大院</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-740146950078060319</id><published>2018-12-05T15:57:00.001+08:00</published><updated>2019-05-13T10:47:22.191+08:00</updated><title type='text'>[Moodle] 刪除多筆課程週數</title><content type='html'>就這麼的剛好，原本系統做了更新，隔天同事反映 Moodle 怪怪的，很多使用者登不上(跟課程進不去分不清楚..-.-，這問題應該是課程頁面點了會出現 500 的問題)，因為剛好做了系統的更新，一度懷疑是更新的問題。&lt;br /&gt;
&lt;br /&gt;
隔天，該同事另一門課程原本也是好好的，結果他終於發現問題了，然後跑來告訴我，原來是因為[新增週數或課程數]他打成年月日，所以系統就建了兩千多萬筆的資料，總共兩門課共四千多萬筆的垃圾資料。&lt;br /&gt;
&lt;br /&gt;
後來直接進資料庫下指令砍掉就可以了，指令如下:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
DELETE FROM `mdl_course_sections` WHERE `id` &amp;gt; id編號&lt;/blockquote&gt;
&lt;br /&gt;
最後執行&amp;nbsp; moodle&amp;nbsp; 網站管理 &amp;gt; 開發 &amp;gt; 清空所有快取 ，這樣課程應該就可以正確顯示了。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/740146950078060319/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/740146950078060319' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/740146950078060319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/740146950078060319'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2018/12/moodle.html' title='[Moodle] 刪除多筆課程週數'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-992375119066053382</id><published>2018-12-04T15:06:00.001+08:00</published><updated>2018-12-04T15:06:53.292+08:00</updated><title type='text'>[Windows] 空間不夠之 NPS Log 佔用空間。</title><content type='html'>前先日子就發現一台WIN 2012的空間不夠了低於100MB，直覺是當初空間切太小了，一度懷疑是不是更新檔案太大了。&lt;br /&gt;
&lt;br /&gt;
最近突然想到是否 IIS Log 檔案太大，一查也還好，也順便查了底下的目錄的使用空間。&lt;br /&gt;
C:\Windows\System32\LogFiles&lt;br /&gt;
結果是網路原則伺服器(NPS)產生的 Log 日積月累吃掉了大部分的空間，把檔案刪一刪就完成這回合的工作。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/zh-tw/windows-server/networking/technologies/nps/nps-top&quot; ping=&quot;/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://docs.microsoft.com/zh-tw/windows-server/networking/technologies/nps/nps-top&amp;amp;ved=2ahUKEwiAk-7WzYXfAhWFULwKHZXVBL4QFjAAegQIBxAB&quot; style=&quot;background-color: white; color: #660099; cursor: pointer; font-family: arial, sans-serif; font-size: small; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/992375119066053382/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/992375119066053382' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/992375119066053382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/992375119066053382'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2018/12/windows-nps-log.html' title='[Windows] 空間不夠之 NPS Log 佔用空間。'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-7448680783373030863</id><published>2018-07-11T09:26:00.000+08:00</published><updated>2018-07-11T09:28:54.806+08:00</updated><title type='text'>[CentOS] inode 空間使用100%的問題</title><content type='html'>&lt;br /&gt;前些日子一台設備的網頁服務有使用者反映無法登入，第一個想法是重新啟動網頁服務，結果也無法開啟，系統也吐出一些訊息(忘了截圖)。丟到 Google 後發現是 inode 滿了。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;後來找到是 /var/spool/postfix/maildrop 塞滿的，所幸就把目錄底下的資料全刪了。&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
[root@xxx var]# df -i&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
Filesystem&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Inodes&amp;nbsp; IUsed&amp;nbsp; IFree IUse% Mounted on&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
/dev/mapper/vg_dorm-lv_root&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;757392 651590 105802&amp;nbsp; &amp;nbsp;100% /&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
/dev/sda1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 128016&amp;nbsp; &amp;nbsp; &amp;nbsp;62 127954&amp;nbsp; &amp;nbsp; 1% /boot&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
[root@xxx /]# cd /var/spool/postfix/maildrop&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
[root@xxx maildrop]# ls | xargs rm -f&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
最後在某網站找到解決方式如下:&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;/var/spool/postfix/maildrop 下面有很多文件&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;为了避免，可以执行&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #fbfbfb; border-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #dd1144; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 14px; padding: 2px 4px; white-space: nowrap;&quot;&gt;crontab -e&lt;/code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;在最开头添加&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #fbfbfb; border-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #dd1144; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 14px; padding: 2px 4px; white-space: nowrap;&quot;&gt;MAILTO=&#39;&quot;&#39;&lt;/code&gt;&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;保存，然后&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #fbfbfb; border-radius: 3px; border: 1px solid rgb(225, 225, 232); color: #dd1144; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 14px; padding: 2px 4px; white-space: nowrap;&quot;&gt;server crond restart&lt;/code&gt;&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;重启 crond&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;span style=&quot;color: #555555; font-family: &amp;quot;microsoft yahei&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
http://www.dahouduan.com/2014/12/19/linux-inode-full/&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: small;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/7448680783373030863/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/7448680783373030863' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/7448680783373030863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/7448680783373030863'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2018/07/centos-inode-100.html' title='[CentOS] inode 空間使用100%的問題'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-282963096260932175</id><published>2018-07-11T09:13:00.004+08:00</published><updated>2018-07-11T09:13:38.868+08:00</updated><title type='text'>[Subaru]Forester NA 2015安裝喇叭。</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGMMC889tMi6VDIBQg1dfsRcOgmDph7zILqmA7FuM4RQIrLmv0YwifRfN3SgVEqYLBzDAkj5ZDda1Cw_gbuynhL-v79pE05LEdsjGj-GMTpqJdvzINXoXjW7rOZJsVMIbRTZLkYlwolVsz/s1600/12b.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
本次安裝BOSCH EC6 高低音汽車喇叭，有兩個無極性端子，也就是說一個接原本的電源，另一個要用搭鐵。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
要拆掉保桿需要拆掉下面的扣子。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGMMC889tMi6VDIBQg1dfsRcOgmDph7zILqmA7FuM4RQIrLmv0YwifRfN3SgVEqYLBzDAkj5ZDda1Cw_gbuynhL-v79pE05LEdsjGj-GMTpqJdvzINXoXjW7rOZJsVMIbRTZLkYlwolVsz/s1600/12b.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGMMC889tMi6VDIBQg1dfsRcOgmDph7zILqmA7FuM4RQIrLmv0YwifRfN3SgVEqYLBzDAkj5ZDda1Cw_gbuynhL-v79pE05LEdsjGj-GMTpqJdvzINXoXjW7rOZJsVMIbRTZLkYlwolVsz/s400/12b.gif&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
這顆原廠喇叭藏在右邊大燈後面，所以直接拆前保桿。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmCWdoCk1QNt6QIQV2X3Xrj6-QLECF4mOsdRl_OovoqMjXwQnA9bD-pcZL34QhFwJmfjjQFq_91MMDn1pWZp1Vhtsof0SviErlbHw-jvumQAj7uCAWP9hwGewe-Quykyke5P9bPCDoA6J/s1600/S__16056345.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmCWdoCk1QNt6QIQV2X3Xrj6-QLECF4mOsdRl_OovoqMjXwQnA9bD-pcZL34QhFwJmfjjQFq_91MMDn1pWZp1Vhtsof0SviErlbHw-jvumQAj7uCAWP9hwGewe-Quykyke5P9bPCDoA6J/s400/S__16056345.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
下圖一邊是接原本的電，另一個就是接地。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHVxMGMcJYoXKi0TJebNNJlsS-2w0jrcwUVrlpaOOXIUhdla0buZvrutgG00hy9pYLWHityR9yv2Z36SbYgnrJ-Sk8RO50szkZHTKXkHa5Sl6bJZNsfSNl_u_9ZjVElNGgtjiqGpFFi2xG/s1600/S__16056336.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHVxMGMcJYoXKi0TJebNNJlsS-2w0jrcwUVrlpaOOXIUhdla0buZvrutgG00hy9pYLWHityR9yv2Z36SbYgnrJ-Sk8RO50szkZHTKXkHa5Sl6bJZNsfSNl_u_9ZjVElNGgtjiqGpFFi2xG/s400/S__16056336.jpg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgA1cjCxPQNtdZbs8Lp6dWlgLaE49s9oBPwK6yglfx0s5dQBFDcc4_YYwjfMM5jCxFIySTqURrE1hn662uEtbEnfV4vTrHNm5hklivZ_IUobj-DqwNww9mCcdVm7j_pNsxqK1O734TkO-d/s1600/S__16056338.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgA1cjCxPQNtdZbs8Lp6dWlgLaE49s9oBPwK6yglfx0s5dQBFDcc4_YYwjfMM5jCxFIySTqURrE1hn662uEtbEnfV4vTrHNm5hklivZ_IUobj-DqwNww9mCcdVm7j_pNsxqK1O734TkO-d/s400/S__16056338.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
另外一顆喇叭忘記拍照了，位置在右大燈下方附近。</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/282963096260932175/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/282963096260932175' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/282963096260932175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/282963096260932175'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2018/07/subaruforester-na-2015.html' title='[Subaru]Forester NA 2015安裝喇叭。'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGMMC889tMi6VDIBQg1dfsRcOgmDph7zILqmA7FuM4RQIrLmv0YwifRfN3SgVEqYLBzDAkj5ZDda1Cw_gbuynhL-v79pE05LEdsjGj-GMTpqJdvzINXoXjW7rOZJsVMIbRTZLkYlwolVsz/s72-c/12b.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-8692544396951060503</id><published>2016-03-31T10:08:00.001+08:00</published><updated>2016-03-31T10:08:29.647+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aruba"/><title type='text'>Aurba 使用者登入出現  authentication failed(null)</title><content type='html'>前些日子無線網路出現一個問題，使用者登入出現authentication failed(null) 訊息。&lt;div&gt;
從管理介面的 AAA Test 測試測試兩台 Radius Server 又很正常。&lt;/div&gt;
&lt;div&gt;
後來是直接更改 Radius&amp;nbsp;Timeout的時間，就正常了。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
猜想是 &amp;nbsp;Radius Proxy 連至&amp;nbsp;MS NPS 時間過長導致驗證失敗。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/8692544396951060503/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/8692544396951060503' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8692544396951060503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8692544396951060503'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2016/03/aurba-authentication-failednull.html' title='Aurba 使用者登入出現  authentication failed(null)'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6451991930571049873</id><published>2015-06-08T19:27:00.003+08:00</published><updated>2015-06-08T19:27:45.127+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ad"/><category scheme="http://www.blogger.com/atom/ns#" term="moodle"/><title type='text'>Moodle 使用 AD 認證</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
以下為 Moodle 透過 AD 認證的設定&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;LDAP 伺服器設定&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
主機網址 &amp;nbsp; &amp;nbsp; &amp;nbsp;ldap://123.123.123.123/&lt;/div&gt;
&lt;div&gt;
版本 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/div&gt;
&lt;div&gt;
使用TLS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NO&lt;/div&gt;
&lt;div&gt;
LDAP編碼 &amp;nbsp; utf-8&lt;/div&gt;
&lt;div&gt;
頁面大小 &amp;nbsp; &amp;nbsp; 250&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;繫結的設定&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
不要快取密碼 &amp;nbsp; &amp;nbsp; Yes&lt;/div&gt;
&lt;div&gt;
可區辨的名稱 &amp;nbsp; &amp;nbsp; administrator@Domain.com&lt;/div&gt;
&lt;div&gt;
密碼 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Your PW&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;用戶搜尋設定&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
用戶類型 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MS ActiveDirectory&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
情境 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ou=user,DC=Domain,DC=com&lt;/div&gt;
&lt;div&gt;
搜尋子條件 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes&lt;/div&gt;
&lt;div&gt;
不同的代稱 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes&lt;/div&gt;
&lt;div&gt;
用戶屬性 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;samaccountname&lt;/div&gt;
&lt;div&gt;
物件類別 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;b&gt;資料對應&lt;/b&gt;&lt;br /&gt;名字 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; givenName&lt;br /&gt;姓氏 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sn&lt;div&gt;
電子郵件信箱 &amp;nbsp; &amp;nbsp; mail&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6451991930571049873/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6451991930571049873' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6451991930571049873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6451991930571049873'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2015/06/moodle-ad.html' title='Moodle 使用 AD 認證'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6464398901157254201</id><published>2015-03-30T13:29:00.004+08:00</published><updated>2015-03-30T22:53:51.614+08:00</updated><title type='text'>Office365 與 AD 帳號同步</title><content type='html'>1. 事先準備 AD server，確定可以用。&lt;br /&gt;
2. 在 Office365，「使用者」開啟「Active Directory 同步處理」&lt;br /&gt;
3. 按照網頁步驟執行&lt;br /&gt;
a. 執行ADSync 時，第一個輸入帳號的地方是輸入Office365的管理帳號，第二個是輸入AD管理者的帳號。&lt;br /&gt;
&lt;br /&gt;
注意事項：&lt;br /&gt;
1. AD 使用者的電子郵件帳號需設定，不然會以預設 .onmicrosoft.com 為優先帳號&lt;br /&gt;
2. 設定完後系統預設每三小時同步一次（不確定？）&lt;br /&gt;
3. &amp;nbsp;強制同步，啟動 PowerShell，輸入 Import-Module DirSync，然後按 ENTER。輸入 Start-OnlineCoexistenceSync，然後按 ENTER。&lt;br /&gt;
&lt;br /&gt;
待處理事項：&lt;br /&gt;
1. 大量匯入&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6464398901157254201/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6464398901157254201' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6464398901157254201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6464398901157254201'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2015/03/office365-ad.html' title='Office365 與 AD 帳號同步'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6580743326349339632</id><published>2013-12-11T10:33:00.001+08:00</published><updated>2013-12-11T10:33:13.137+08:00</updated><title type='text'>VMware vSphere HA &amp; DRS 建置注意事項</title><content type='html'>1.兩台 Host 需有兩個實體網卡且同網段&lt;br /&gt;
2.兩台&amp;nbsp;Host 都需 mount 共同的 Storage。&lt;br /&gt;
3.兩台&amp;nbsp;Host 需同廠牌的 CPU。</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6580743326349339632/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6580743326349339632' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6580743326349339632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6580743326349339632'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/12/vmware-vsphere-ha-drs.html' title='VMware vSphere HA &amp; DRS 建置注意事項'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-5940028677151154823</id><published>2013-12-06T22:14:00.004+08:00</published><updated>2013-12-06T22:14:51.469+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="義大利麵"/><category scheme="http://www.blogger.com/atom/ns#" term="食譜"/><title type='text'>[食譜]火燒蝦義大利麵</title><content type='html'>材料：&lt;br /&gt;
蝦子（比較大尾的可以切對半）&lt;br /&gt;
洋蔥（切絲）&lt;br /&gt;
蒜頭（切片）&lt;br /&gt;
奶油&lt;br /&gt;
橄欖油&lt;br /&gt;
義大利麵&lt;br /&gt;
鹽&lt;br /&gt;
胡椒粉&lt;br /&gt;
普羅旺斯香草&lt;br /&gt;
花椰菜&lt;br /&gt;
以上份量隨意。&lt;br /&gt;
&lt;br /&gt;
步驟 A&lt;br /&gt;
1. 把水煮沸後加[鹽]，在加入[義大利麵]。&amp;nbsp;
&lt;br /&gt;
&lt;br /&gt;
步驟 B&lt;br /&gt;
1. 在鍋子放入[奶油]融化後在放入[洋蔥]拌炒，再加一點點的[橄欖油]。&lt;br /&gt;
2. 等洋蔥變成透明狀後再加入[蒜頭]，煮到軟化，再灑上[胡椒粉]。&lt;br /&gt;
3. 加入[蝦子]。&lt;br /&gt;
&lt;br /&gt;
步驟 A 和 B 可同步進行，當步驟 B 完成時，麵也差不多熟了。&lt;br /&gt;
&amp;nbsp;
&lt;br /&gt;
步驟 C&lt;br /&gt;
1. 將步驟 A 的義大利麵加入 步驟 B 的鍋子中拌炒。&lt;br /&gt;
2. 加入 [普羅旺斯香草]。&lt;br /&gt;
&lt;br /&gt;
完成！&amp;nbsp;
&lt;br /&gt;
&lt;br /&gt;
對了，花椰菜是配色用的，可以用煮麵的水煮熟，蝦子可以換其他材料，比如小卷之類的。
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPXpFjQ1PBG2tGUzEA9QR5gLfN3V_QWEZP2RG8CQJLIk9e1llRnL_zT7XQZ1mN_v1J4HiRtsYxylmUgHWdWgyNrzpCKLl-oQKu4aPCNPpWYD9x3tfwAuID6563WpTT1YbyPsMhTi_a-EE1/s1600/2013-12-06+18.09.37.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPXpFjQ1PBG2tGUzEA9QR5gLfN3V_QWEZP2RG8CQJLIk9e1llRnL_zT7XQZ1mN_v1J4HiRtsYxylmUgHWdWgyNrzpCKLl-oQKu4aPCNPpWYD9x3tfwAuID6563WpTT1YbyPsMhTi_a-EE1/s400/2013-12-06+18.09.37.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/5940028677151154823/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/5940028677151154823' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/5940028677151154823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/5940028677151154823'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/12/blog-post.html' title='[食譜]火燒蝦義大利麵'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPXpFjQ1PBG2tGUzEA9QR5gLfN3V_QWEZP2RG8CQJLIk9e1llRnL_zT7XQZ1mN_v1J4HiRtsYxylmUgHWdWgyNrzpCKLl-oQKu4aPCNPpWYD9x3tfwAuID6563WpTT1YbyPsMhTi_a-EE1/s72-c/2013-12-06+18.09.37.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-8542952559282949552</id><published>2013-12-04T21:02:00.001+08:00</published><updated>2013-12-06T21:48:03.724+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ibook"/><category scheme="http://www.blogger.com/atom/ns#" term="ipad"/><category scheme="http://www.blogger.com/atom/ns#" term="itunes"/><title type='text'>[Apple] iTunes 11 刪除 PDF 書籍</title><content type='html'>iTunes11 開始，書籍便獨立成一個 iBook APP，筆者遇到一個小 Bug，就是無法移除 iTunes 上的 PDF 書籍，研究之後有了結果， 
首先開啟 OSX 的 iBook，然後點選上方工具列的[檔案]-[從iTunes搬移書籍]。
所以現在會看到 iBook 和 iTunes 的書籍顯示是一模一樣的，以後就是在 iBook 管理書籍，在 iTunes 上做同步的動作。
 </content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/8542952559282949552/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/8542952559282949552' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8542952559282949552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8542952559282949552'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/12/itunes-11-pdf.html' title='[Apple] iTunes 11 刪除 PDF 書籍'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-9155594372216753528</id><published>2013-11-27T21:20:00.000+08:00</published><updated>2013-12-02T10:33:45.248+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hp"/><category scheme="http://www.blogger.com/atom/ns#" term="lacp.extreme"/><category scheme="http://www.blogger.com/atom/ns#" term="procuve"/><category scheme="http://www.blogger.com/atom/ns#" term="trunk"/><title type='text'>LACP - Extreme Summit X430 and HP Procuve 2610</title><content type='html'>&lt;br /&gt;
實體環境設定&lt;br /&gt;
&lt;br /&gt;
Extreme X430 的 Port 22,24 要連到 HP 2610 的 Port 5,6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extreme:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#enable sharing 24 grouping 22, 24 algorithm address-based L2 lacp&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
HP:&lt;br /&gt;
&lt;code&gt;#configure terminal&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#trunk 5-6 trk1 lacp&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#vlan XXX&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#untag trk1&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
設定完成後&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Extreme:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#show lacp&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
LACP Up &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Yes&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
LACP Enabled&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Yes&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
System MAC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : 00:04:96:xx:xx:xx&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
LACP PDUs dropped on non-LACP ports : 1500&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Lag&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Actor&amp;nbsp; &amp;nbsp; Actor &amp;nbsp; Partner&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Partner&amp;nbsp; Partner&amp;nbsp; Agg&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sys-Pri&amp;nbsp; Key &amp;nbsp; &amp;nbsp; MAC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sys-Pri&amp;nbsp; Key&amp;nbsp; &amp;nbsp; &amp;nbsp; Count&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
--------------------------------------------------------------------------------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; 0x0400&amp;nbsp; 00:1f:28:xx:xx:xx&amp;nbsp; 60032&amp;nbsp; &amp;nbsp; 0x0035 &amp;nbsp; 2&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
================================================================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;# show sharing&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Load Sharing Monitor&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Config&amp;nbsp; &amp;nbsp; Current&amp;nbsp; &amp;nbsp; Agg &amp;nbsp; &amp;nbsp; &amp;nbsp; Ld Share&amp;nbsp; &amp;nbsp; Ld Share&amp;nbsp; Agg &amp;nbsp; Link&amp;nbsp; &amp;nbsp; Link Up&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Master&amp;nbsp; &amp;nbsp; Master &amp;nbsp; &amp;nbsp; Control &amp;nbsp; Algorithm &amp;nbsp; Group &amp;nbsp; &amp;nbsp; Mbr &amp;nbsp; State &amp;nbsp; Transitions&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
==============================================================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; 24 &amp;nbsp; &amp;nbsp; 22&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LACP&amp;nbsp; &amp;nbsp; &amp;nbsp; L2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
==============================================================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Link State: A-Active, D-Disabled, R-Ready, NP-Port not present, L-Loopback&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Load Sharing Algorithm: (L2) Layer 2 address based, (L3) Layer 3 address based&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (L3_L4) Layer 3 address and Layer 4 port based&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Number of load sharing trunks: 1&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
HP:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;# show lacp&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LACP&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; PORT &amp;nbsp; LACP&amp;nbsp; &amp;nbsp; &amp;nbsp; TRUNK &amp;nbsp; &amp;nbsp; PORT&amp;nbsp; &amp;nbsp; &amp;nbsp; LACP&amp;nbsp; &amp;nbsp; &amp;nbsp; LACP&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; NUMB &amp;nbsp; ENABLED &amp;nbsp; GROUP &amp;nbsp; &amp;nbsp; STATUS&amp;nbsp; &amp;nbsp; PARTNER &amp;nbsp; STATUS&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; ---- &amp;nbsp; ------- &amp;nbsp; ------- &amp;nbsp; ------- &amp;nbsp; ------- &amp;nbsp; -------&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; Active&amp;nbsp; &amp;nbsp; Trk1&amp;nbsp; &amp;nbsp; &amp;nbsp; Up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes &amp;nbsp; &amp;nbsp; &amp;nbsp; Success&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp;6&amp;nbsp; &amp;nbsp; &amp;nbsp; Active&amp;nbsp; &amp;nbsp; Trk1&amp;nbsp; &amp;nbsp; &amp;nbsp; Up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes &amp;nbsp; &amp;nbsp; &amp;nbsp; Success&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;#show trunks&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;Load Balancing&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; Port | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; | Group Type&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; ---- + -------------------------------- --------- + ----- -----&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; 5&amp;nbsp; &amp;nbsp; | 4F6(409) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/100TX&amp;nbsp; | Trk1&amp;nbsp; LACP&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp;6&amp;nbsp; &amp;nbsp; | 4F5(403) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/100TX&amp;nbsp; | Trk1&amp;nbsp; LACP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;code&gt;# show vlans ports trk1&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;Status and Counters - VLAN Information - for ports Trk1&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; VLAN ID Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Status &amp;nbsp; &amp;nbsp; Voice Jumbo&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; ------- -------------------- + ---------- ----- -----&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp;&amp;nbsp;XXX&amp;nbsp; &amp;nbsp; V_XXX&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;| Port-based No&amp;nbsp; &amp;nbsp; No &amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/9155594372216753528/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/9155594372216753528' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/9155594372216753528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/9155594372216753528'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/11/lacp-extreme-summit-x430-and-hp-procuve.html' title='LACP - Extreme Summit X430 and HP Procuve 2610'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-3494000503826336778</id><published>2013-08-06T14:14:00.000+08:00</published><updated>2016-06-23T16:05:52.126+08:00</updated><title type='text'>在 CentOS 6.4 安裝 OpenVAS</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
筆者最先在 CentOS 5.9 上安裝，安裝完成後使用瀏覽器無法連線，然後檢查出 9392 PORT並沒有任何服務上網查了一下解決辦法須執行下列指令，但是非常地不穩，索性就換成 CentOS 6.4，以下為安裝步驟。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;code&gt;#gsad --port 9392 -f -v --http-only&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;安裝最小化的&amp;nbsp;CentOS 6.4&lt;/li&gt;
&lt;li&gt;關掉 selinux and eth 開機啟動&lt;/li&gt;
&lt;li&gt;安裝 wget&lt;br /&gt;&lt;code&gt;#yum install wget&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Configure Atomicorp Repository&lt;br /&gt;&lt;code&gt;#wget -q -O - http://www.atomicorp.com/installers/atomic |sh&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;安裝openvas ，執行&lt;span style=&quot;font-family: monospace;&quot;&gt;openvas-setup後，因為下載定義檔需要一段時間，請耐心等候。&lt;/span&gt;&lt;br /&gt;&lt;code&gt;#yum install openvas&lt;br /&gt;#openvas-setup&lt;br /&gt;Step 1: Update NVT&#39;s&lt;br /&gt;Step 2: Configure GSAD&lt;br /&gt;&lt;pre&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;The Greenbone Security Assistant is a Web Based front end
for managing scans. By default it is configured to only allow
connections from localhost.

Allow connections from any IP? [Default: yes]
Stopping greenbone-security-assistant:                     [  OK  ]
Starting greenbone-security-assistant:                     [  OK  ]

Step 3: Choose the GSAD admin users password.
The admin user is used to configure accounts,
Update NVT&#39;s manually, and manage roles.

Enter administrator username [Default: admin] :
Enter Administrator Password:
Verify Administrator Password:
ad   main:MESSAGE:15385:2013-08-06 14h30.58 CST: No rules file provided, the new user will have no restrictions.
ad   main:MESSAGE:15385:2013-08-06 14h30.58 CST: User admin has been successfully created.

Step 4: Create a user

Using /var/tmp as a temporary file holder.

Add a new openvassd user
---------------------------------


Login : user
Authentication (pass/cert) [pass] :
Login password :
Login password (again) :

User rules
---------------
openvassd has a rules system which allows you to restrict the hosts that chyau has the right to test.
For instance, you may want him to be able to scan his own host only.

Please see the openvas-adduser(8) man page for the rules syntax.

Enter the rules for this user, and hit ctrl-D once you are done:
(the user can have an empty rules set)

Login             : user
Password          : ***********

Rules             :



Is that ok? (y/n) [y]
Starting openvas-administrator...
Starting openvas-administrator:
                                                           [  OK  ]


Setup complete, you can now access GSAD at:
  https://&amp;lt;IP&amp;gt;:9392&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/code&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;&lt;code&gt;#/etc/init.d/openvas-administrator start&lt;br /&gt;#openvas-nvt-sync&lt;br /&gt;#openvassd restart&lt;br /&gt;#openvasmd restart&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;檢查openvas是否安裝完成&lt;br /&gt;&lt;code&gt;#wget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-#setup -O openvas-check-setup.sh --no-check-certificate &lt;br /&gt;#chmod +x openvas-check-setup.sh &lt;br /&gt;#./openvas-check-setup.sh --server&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;定期更新定義檔 &lt;code&gt;#vi /etc/crontab
&lt;br /&gt;00 5 * * * root openvas-nvt-sync&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;Service temporarily down 解決方式&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;openvas-mkcert -f&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;openvas-mkcert-client -i -n&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;#restart all daemons&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/3494000503826336778/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/3494000503826336778' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3494000503826336778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3494000503826336778'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/08/centos-64-openvas.html' title='在 CentOS 6.4 安裝 OpenVAS'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6956607225725300743</id><published>2013-07-23T11:28:00.002+08:00</published><updated>2013-12-18T15:24:32.516+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="expect"/><category scheme="http://www.blogger.com/atom/ns#" term="fortigate"/><category scheme="http://www.blogger.com/atom/ns#" term="fortinet"/><title type='text'>每日自動備份 Fortigate 設定檔</title><content type='html'>&lt;br /&gt;
For&amp;nbsp;v5.0,build0252 (GA Patch 5)&lt;br /&gt;
首先在&amp;nbsp;Fortigate上面建立一個名為backup的使用者，密碼為YourPassword，權限設定如下：&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCunLDmXxkcC19syYtj_y8In-_FZXk1GmecGOtE58w6d-UkcpeO_BZU2eVzoxNHbLKCiZKMYW__gXXd8jAkfplv2oR9XLGdOWUxtJVWrBv9-EwIzLMb5kkiH-HssBqPNY_16gYDgXE0iqr/s1600/Screenshot1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCunLDmXxkcC19syYtj_y8In-_FZXk1GmecGOtE58w6d-UkcpeO_BZU2eVzoxNHbLKCiZKMYW__gXXd8jAkfplv2oR9XLGdOWUxtJVWrBv9-EwIzLMb5kkiH-HssBqPNY_16gYDgXE0iqr/s400/Screenshot1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
然後在 Linux 建立 sh 並賦予執行權限和建立排程，檔案內容如下:&lt;br /&gt;
(範例中的備份伺服器是使用 tftp)&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
#!/bin/bash&lt;br /&gt;
user=&quot;backup&quot;&lt;br /&gt;
password=&quot;YourPassword&quot;&lt;br /&gt;
tftp_ip=&quot;YourBackupServerIP&quot;&lt;br /&gt;
fg_devices=&quot;YourFortigateIP&quot;&lt;br /&gt;
date=&quot;$(date +&quot;%Y%m%d&quot;)&quot;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;for fg_device in $fg_devices ; do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; expect -c &quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; set timeout 30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; spawn ssh $user@$fg_device&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; expect \&quot;(yes/no)\&quot; { send \&quot;yes\r\&quot;; exp_continue }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; expect \&quot;*password:*\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; set send_slow {1 0.05}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; send -s \&quot;$password\r\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; send_user \&quot;$password\r\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; expect \&quot;FG*\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; send -s \&quot;execute backup full-config tftp $fg_device-$date.cfg $tftp_ip\n\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; expect \&quot;FG*\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; send -s \&quot;exit\n\&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; interact&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6956607225725300743/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6956607225725300743' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6956607225725300743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6956607225725300743'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/07/fortigate.html' title='每日自動備份 Fortigate 設定檔'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCunLDmXxkcC19syYtj_y8In-_FZXk1GmecGOtE58w6d-UkcpeO_BZU2eVzoxNHbLKCiZKMYW__gXXd8jAkfplv2oR9XLGdOWUxtJVWrBv9-EwIzLMb5kkiH-HssBqPNY_16gYDgXE0iqr/s72-c/Screenshot1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-3225356070183137053</id><published>2013-07-16T16:59:00.003+08:00</published><updated>2013-07-16T16:59:50.073+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aruba"/><title type='text'>Aruba 認證出現問題 &quot;Web Authentication Disabled, Please contact Administrator&quot;</title><content type='html'>發生原因：&lt;br /&gt;
不詳。&lt;br /&gt;
&lt;br /&gt;
解法：&lt;br /&gt;
進管理畫面的 clients 選擇 user 然後 disconnect。</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/3225356070183137053/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/3225356070183137053' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3225356070183137053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3225356070183137053'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/07/aruba-web-authentication-disabled.html' title='Aruba 認證出現問題 &quot;Web Authentication Disabled, Please contact Administrator&quot;'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-8368298651696923761</id><published>2013-07-01T15:32:00.000+08:00</published><updated>2013-07-01T15:32:25.092+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FortiAnalyzer"/><title type='text'>解決 FortiAnalyzer-400B 日誌查看停在某一天， 但是LOG檔還是會有紀錄的問題。</title><content type='html'>在 CLI 執行 #execute sql-local rebuild-db&lt;br /&gt;
&lt;br /&gt;
FortiAnalyzer-~# execute sql-local rebuild-db&lt;br /&gt;
Rebuild the whole SQL database has been requested.&lt;br /&gt;
This operation will remove the SQL database and rebuild from log data.&lt;br /&gt;
This operation will reboot the device.&lt;br /&gt;
Do you want to continue? (y/n)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
等待重開機，再重新登入後右上會出現 build database 的圖示。&lt;br /&gt;
&lt;br /&gt;
雖說筆者做完之後LOG資料還會存在，但是建議能備份就備份下來。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/8368298651696923761/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/8368298651696923761' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8368298651696923761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/8368298651696923761'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/07/fortianalyzer-400b-log.html' title='解決 FortiAnalyzer-400B 日誌查看停在某一天， 但是LOG檔還是會有紀錄的問題。'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6926343684148098541</id><published>2013-04-15T09:50:00.002+08:00</published><updated>2013-07-23T11:30:01.167+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iscsi"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>VMware vSphere 移除 Storage 問題 </title><content type='html'>當使用 vCenter 要移除 iSCSI Storage 時，會出現 No virtual machine resides on the datastore&lt;br /&gt;
官網的 Knowledge Base 解決辦法是移除所有的 Snapshot 。&lt;br /&gt;
但是筆者移除後還是出現這個訊息，後來就把所有的 Virtual Machine 用 remove from inventory 指令移除後就可以順利把&amp;nbsp;iSCSI&amp;nbsp;Storage 給 unmount 了。</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6926343684148098541/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6926343684148098541' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6926343684148098541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6926343684148098541'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/04/vmware-vsphere-storage.html' title='VMware vSphere 移除 Storage 問題 '/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-4630426394280847771</id><published>2013-03-05T14:43:00.000+08:00</published><updated>2013-08-06T14:04:05.573+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="expect"/><category scheme="http://www.blogger.com/atom/ns#" term="Extreme"/><title type='text'>使用 Expect 備份網路設備設定檔 for Extreme</title><content type='html'>&lt;br /&gt;
支援 Extreme DB8800系列、X450a系列、X460系列&lt;br /&gt;
&lt;br /&gt;

&lt;code&gt;
#!/usr/bin/expect -f&lt;br /&gt;
&lt;br /&gt;
if { $argc != 4 } {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; send_user &quot;usage: extreme.exp device_ip username password server_ip \n&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
set timeout 1&lt;br /&gt;
set TERM ANSI&lt;br /&gt;
set date [exec date +%Y%m%d]&lt;br /&gt;
&lt;br /&gt;
set DEVICE [lindex $argv 0]&lt;br /&gt;
set USERNAME [lindex $argv 1]&lt;br /&gt;
set PASSWD [lindex $argv 2]&lt;br /&gt;
set SERVER [lindex $argv 3]&lt;br /&gt;
&lt;br /&gt;
spawn telnet&lt;br /&gt;
expect &quot;telnet&amp;gt; &quot;&lt;br /&gt;
send &quot;open $DEVICE\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;login:&quot;&lt;br /&gt;
send &quot;$USERNAME\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;password:&quot;&lt;br /&gt;
send &quot;$PASSWD\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;#&quot;&lt;br /&gt;
send &quot;upload configuration $SERVER $DEVICE-$date vr VR-Default\r&quot;&lt;br /&gt;
sleep 3&lt;br /&gt;
expect &quot;#&quot;&lt;br /&gt;
send &quot;exit\r&quot;&lt;br /&gt;
interact&lt;br /&gt;
&lt;/code&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/4630426394280847771/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/4630426394280847771' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/4630426394280847771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/4630426394280847771'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/03/expect-for-extreme.html' title='使用 Expect 備份網路設備設定檔 for Extreme'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6090837065236190565</id><published>2013-03-05T14:40:00.004+08:00</published><updated>2013-08-06T14:04:25.360+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="expect"/><category scheme="http://www.blogger.com/atom/ns#" term="hp"/><category scheme="http://www.blogger.com/atom/ns#" term="procurve"/><title type='text'>使用 Expect 備份網路設備設定檔 for HP</title><content type='html'>&lt;br /&gt;
支援 HP ProCurve Switch 2610系列、2510系列&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;
#!/usr/bin/expect -f&lt;br /&gt;
&lt;br /&gt;
if { $argc != 4 } {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; send_user &quot;usage: hp.exp device_ip username password server_ip \n&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
set timeout 1&lt;br /&gt;
set TERM ANSI&lt;br /&gt;
set date [exec date +%Y%m%d]&lt;br /&gt;
&lt;br /&gt;
set DEVICE [lindex $argv 0]&lt;br /&gt;
set USERNAME [lindex $argv 1]&lt;br /&gt;
set PASSWD [lindex $argv 2]&lt;br /&gt;
set SERVER [lindex $argv 3]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
spawn telnet&lt;br /&gt;
expect &quot;telnet&amp;gt; &quot;&lt;br /&gt;
send &quot;open $DEVICE\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect continue { send &quot;\r&quot; ; exp_continue }&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;Username:&quot;&lt;br /&gt;
send &quot;$USERNAME\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;Password:&quot;&lt;br /&gt;
send &quot;$PASSWD\r&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sleep 1&lt;br /&gt;
send &quot;\r\r&quot;&lt;br /&gt;
expect &quot;#&quot;&lt;br /&gt;
send &quot;copy running-config tftp $SERVER $DEVICE-$date\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;#&quot;&lt;br /&gt;
send &quot;exit\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;&amp;gt;&quot;&lt;br /&gt;
send &quot;exit\r&quot;&lt;br /&gt;
sleep 1&lt;br /&gt;
expect &quot;Do you want to log out&quot;&lt;br /&gt;
send &quot;y\r&quot;&lt;br /&gt;
interact&lt;br /&gt;
&lt;/code&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6090837065236190565/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6090837065236190565' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6090837065236190565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6090837065236190565'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2013/03/expect-for-hp.html' title='使用 Expect 備份網路設備設定檔 for HP'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-2004864758812961713</id><published>2013-01-03T11:39:00.000+08:00</published><updated>2014-02-13T16:03:54.420+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Extreme"/><title type='text'>Extreme 教學</title><content type='html'>限制 telent access：&lt;br /&gt;
#edit policy mytelnet.pol&lt;br /&gt;
entry Telnet_Allow {&lt;br /&gt;
if match any {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source-address 192.168.1.0 /24;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; source-address 192.168.2.0 /24;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } then {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; permit;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
# configure telnet access-profile mytelnet&lt;br /&gt;
&lt;br /&gt;
若 source-address 有變動執行&lt;br /&gt;
# refresh policy &quot;mytelnet&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IP-MAC blind：&lt;br /&gt;
add:&lt;br /&gt;
#configure iparp add 123.123.123.123 vr VR-Default 00:11:22:33:44:55&lt;br /&gt;
del&lt;br /&gt;
#configure iparp delete 123.123.123.123 vr VR-Default 00:11:22:33:44:55&lt;br /&gt;
&lt;br /&gt;
設定檔備份：&lt;br /&gt;
#upload configuration 123.123.123.123 backupFileName vr &quot;VR-Default&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
清除&amp;nbsp;trial-license：&lt;br /&gt;
&lt;br /&gt;
enable trial-license&lt;br /&gt;
#debug epm enable trial-license&lt;br /&gt;
remove trial-license&lt;br /&gt;
#debug epm clear trial&lt;br /&gt;
&lt;br /&gt;
回覆出廠預設值：&lt;br /&gt;
#&lt;span style=&quot;background-color: white;&quot;&gt;un&lt;/span&gt;configure&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;switch all&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
另外一個方法&lt;br /&gt;
使用console連線&lt;br /&gt;
&lt;br /&gt;
1. 重開機出現Running POST的時候按住空白鍵。&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;2. POST完成之後會進入boot rom模式。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;3. 在提示符號下輸入：&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;#Config abc &amp;nbsp;(abc指的是隨便一個檔名，目的在使系統找不到檔案後開機時load default)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;4. 輸入Boot後按enter。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;系統重開之後就回預設值，所有的設定都會不見。&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;LACP&lt;/span&gt;：&lt;br /&gt;
&lt;br /&gt;
8810 config&lt;br /&gt;
enable sharing 2:47 grouping 2:47-48 algorithm address-based L2&lt;br /&gt;
第一個「2:47」為主要port，後面的「2:47-48」為群組。&lt;br /&gt;
&lt;br /&gt;
X450 config&lt;br /&gt;
enable sharing 23 grouping 23-24 algorithm address-based L2 lacp&lt;br /&gt;
&lt;br /&gt;
查看&lt;br /&gt;
show lacp lag 1&lt;br /&gt;
&lt;br /&gt;
解除設定&lt;br /&gt;
disable sharing 2:47&lt;br /&gt;
&lt;br /&gt;
備份、升級韌體&lt;br /&gt;
download image [&amp;lt;hostname&amp;gt; | &amp;lt;ipaddress&amp;gt;] &amp;lt;filename&amp;gt; {primary | secondary}&lt;br /&gt;
upload image [&amp;lt;hostname&amp;gt; | &amp;lt;ipaddress&amp;gt;] &amp;lt;filename&amp;gt; {primary | secondary}&lt;br /&gt;
use image [primary | secondary]&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/2004864758812961713/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/2004864758812961713' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/2004864758812961713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/2004864758812961713'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/03/extreme.html' title='Extreme 教學'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6733222012965008415</id><published>2012-10-03T16:34:00.001+08:00</published><updated>2013-07-23T11:29:48.671+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freebsd"/><title type='text'>FreeBSD 指令</title><content type='html'>Ports tree更新指令:&lt;br /&gt;
#portsnap fetch update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
更新&lt;br /&gt;
&lt;br /&gt;
# freebsd-update fetch&lt;br /&gt;
&lt;div&gt;
# freebsd-update install&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6733222012965008415/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6733222012965008415' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6733222012965008415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6733222012965008415'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/10/freebsd.html' title='FreeBSD 指令'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-3626867879153913236</id><published>2012-08-30T14:15:00.000+08:00</published><updated>2013-07-23T11:29:41.136+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fortigate"/><category scheme="http://www.blogger.com/atom/ns#" term="fortinet"/><category scheme="http://www.blogger.com/atom/ns#" term="fortios"/><title type='text'>更改 Fortigate 620B Policy session-TTL</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #445055; font-family: 新細明體, sans-serif; font-size: 13px; line-height: 19px;&quot;&gt;在 CLI &amp;nbsp;輸入：&lt;/span&gt;
&lt;/div&gt;
config firewall policy&lt;br /&gt;
edit policy_id&lt;br /&gt;
set session-ttl (300-604800)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
查看&lt;br /&gt;
diagnose sys session ttl　　　　　 &amp;nbsp; 查看全部配置&lt;br /&gt;
show firewall policy policy_id　　　查看
policy 配置</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/3626867879153913236/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/3626867879153913236' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3626867879153913236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/3626867879153913236'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/08/fortigate-620b-policy-session-ttl.html' title='更改 Fortigate 620B Policy session-TTL'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6961664549503793086</id><published>2012-08-09T08:34:00.002+08:00</published><updated>2012-08-09T08:34:41.627+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HP ilo"/><title type='text'>BL460c  ILO2 錯誤訊息</title><content type='html'>最近機房的 HP BL460c 莫名其妙出現了下面訊息&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&quot;An ILO2 Failure has been detected. Make sure you have a suitable iLO2 firmware loaded (must be at least iLO2 1.30)&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
印象中去年是四刀&amp;nbsp;HP BL460c 輪流出現，而且確認&amp;nbsp;iLO2&amp;nbsp;韌體版本都是在 1.30 以上，換了一片 OA 之後就好了，沒想到過了半年又出現這訊息....囧。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
目前解法就是重新啟動 OA 或者是 iLO ，二選一。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Reset iLo 頁面如下：&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXiYqR7Qb6zOtWbQy3-KkRrqxOWf40YbFweDYEZahyAnC7UJECPh4AmW0MjEUN6tYWE49F70GFVzX4nEf5ID9ba3k26yI_Kj6dVg1b3NORlfkhbmISEoh0b9EvvqT3nA4icIcMGZq-OMuq/s1600/hp460c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;499&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXiYqR7Qb6zOtWbQy3-KkRrqxOWf40YbFweDYEZahyAnC7UJECPh4AmW0MjEUN6tYWE49F70GFVzX4nEf5ID9ba3k26yI_Kj6dVg1b3NORlfkhbmISEoh0b9EvvqT3nA4icIcMGZq-OMuq/s640/hp460c.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
重新啟動 OA 方法就是直接熱拔插那片 OA 。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6961664549503793086/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6961664549503793086' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6961664549503793086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6961664549503793086'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/08/bl460c-ilo2.html' title='BL460c  ILO2 錯誤訊息'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXiYqR7Qb6zOtWbQy3-KkRrqxOWf40YbFweDYEZahyAnC7UJECPh4AmW0MjEUN6tYWE49F70GFVzX4nEf5ID9ba3k26yI_Kj6dVg1b3NORlfkhbmISEoh0b9EvvqT3nA4icIcMGZq-OMuq/s72-c/hp460c.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-2203656860139419969</id><published>2012-07-30T11:57:00.000+08:00</published><updated>2012-07-30T11:57:13.729+08:00</updated><title type='text'>Install SNMP on Centos</title><content type='html'># yum -y install net-snmp net-snmp-utils &lt;br /&gt;&lt;br /&gt;&lt;div&gt;
#vi /etc/snmp/snmpd.conf &lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
# com2sec notConfigUser default public&lt;br /&gt;# group notConfigGroup v1 notConfigUser&lt;br /&gt;# group notConfigGroup v2c notConfigUser&lt;br /&gt;# 再加入 group 存取設定&lt;br /&gt;com2sec local localhost public&lt;br /&gt;com2sec mynetwork xxx.xxx.xxx.0/24 public&lt;br /&gt;group MyRWGroup any local&lt;br /&gt;group MyROGroup any mynetwork&lt;br /&gt;找以下設定取消註解#&lt;br /&gt;view all included .1 80&lt;br /&gt;access MyROGroup &quot;&quot; any noauth 0 all none none&lt;br /&gt;access MyRWGroup &quot;&quot; any noauth 0 all all all&lt;br /&gt;disk / 10000 &lt;/blockquote&gt;
# chkconfig snmpd on&lt;br /&gt;# service snmpd start&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/2203656860139419969/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/2203656860139419969' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/2203656860139419969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/2203656860139419969'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/07/install-snmp-on-centos.html' title='Install SNMP on Centos'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-4385732081319441806</id><published>2012-04-23T09:01:00.000+08:00</published><updated>2012-04-23T09:01:25.040+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google apps"/><category scheme="http://www.blogger.com/atom/ns#" term="sso"/><title type='text'>用 simpleSAMLphp 實現 Google Apps 單一簽入</title><content type='html'>1. 安裝 simpleSAMLphp 1.8 於 /var/www/
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;simplesaml&lt;/span&gt;&amp;nbsp;底下&lt;br /&gt;
2. Edit&amp;nbsp;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;apache 設定，&lt;/span&gt;&lt;span style=&quot;font-family: sans-serif;&quot;&gt;增加&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;Alias /sso /var/www/simplesaml/www&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;安裝如果正常可連結至 http://xxx.edu.tw/sso 看到以下畫面&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8L97KpvZXBobn-mb0G6_99eEzGO01OJkMfi40emzXgkkyqnPd4y4__W0MzIXrq0ntx3Uj4xSXmL7Pv9AAAeUku6F7DRvKbnhRuxje9tRIY_0V9aYNnEqrG6H6BNi0t4JKdXH-MlU9YVUM/s1600/ggggg.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8L97KpvZXBobn-mb0G6_99eEzGO01OJkMfi40emzXgkkyqnPd4y4__W0MzIXrq0ntx3Uj4xSXmL7Pv9AAAeUku6F7DRvKbnhRuxje9tRIY_0V9aYNnEqrG6H6BNi0t4JKdXH-MlU9YVUM/s400/ggggg.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: sans-serif;&quot;&gt;3.Edit&amp;nbsp;&lt;code&gt;config.php&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;#vi config/config.php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;21 行&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&#39;baseurlpath&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;sso/&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;60 行&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp;&#39;auth.adminpassword&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;yourpassword&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;72 行&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;使用&amp;nbsp;tr -c -d &#39;0123456789abcdefghijklmnopqrstuvwxyz&#39; &amp;lt;/dev/urandom | dd bs=32 count=1 2&amp;gt;/dev/null;echo 產生&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&#39;secretsalt&#39; =&amp;gt; &#39; yourcode&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;79 行&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&#39;technicalcontact_name&#39; &amp;nbsp; &amp;nbsp; =&amp;gt; &#39;Admin&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&#39;technicalcontact_email&#39; &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;admin@xxx.edu.tw&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;89 行&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp;&#39;timezone&#39; =&amp;gt; &#39;Asia/Taipei&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;141 行&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&#39;enable.saml20-idp&#39; =&amp;gt; true,&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
212 行&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
language.default&#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; &#39;zh-tw&#39;,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. 設定 SSL key&lt;/div&gt;
#openssl genrsa -des3 -out googleappsidp.key 1024&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
#openssl rsa -in googleappsidp.key -out googleappsidp.pem&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
#openssl req -new -key googleappsidp.key -out googleappsidp.csr&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
#openssl x509 -req -days 9999 -in googleappsidp.csr -signkey googleappsidp.key -out googleappsidp.crt&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
then, copy key to /simplesaml/cert&lt;br /&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
5. 設定認證來源&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
#touch modules/ldap/enable&lt;div&gt;
# vi&amp;nbsp;&lt;span style=&quot;font-family: monospace;&quot;&gt;config/authsources.php 182 行開始&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;example-ldap&#39; =&amp;gt; array(&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;ldap:LDAP&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;hostname&#39; =&amp;gt; &#39;123.123.123.123&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;enable_tls&#39; =&amp;gt; FALSE,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;debug&#39; =&amp;gt; FALSE,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;timeout&#39; =&amp;gt; 0,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;attributes&#39; =&amp;gt; NULL,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;dnpattern&#39; =&amp;gt; &#39;uid=%username%&#39;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;search.enable&#39; =&amp;gt; TRUE,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;search.base&#39; =&amp;gt; &#39;o=users&#39;,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;search.attributes&#39; =&amp;gt; array(&#39;uid&#39;, &#39;mail&#39;,&#39;Password&#39;,&#39;givenName&#39;),&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;search.username&#39; =&amp;gt; &#39;cn=manage,o=domain&#39;,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;search.password&#39; =&amp;gt; &#39;youradminpassword&#39;,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;priv.read&#39; =&amp;gt; FALSE,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;priv.username&#39; =&amp;gt; NULL,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;priv.password&#39; =&amp;gt; NULL,&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
6.設定&amp;nbsp;metadata for an SAML 2.0 IdP&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
#vi metadata/saml20-idp-hosted.php&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;div&gt;
17 行&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;privatekey&#39; =&amp;gt; &#39;googleappsidp.pem&#39;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;certificate&#39; =&amp;gt; &#39;googleappsidp.crt&#39;,&lt;/div&gt;
&lt;div&gt;
24 行&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;auth&#39; =&amp;gt; &#39;example-ldap&#39;,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
7.設定&amp;nbsp;metadata for an SAML 2.0 IdP
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;div&gt;
#vi metadata/saml20-sp-remote.php&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
22 行&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;div&gt;
$metadata[&#39;google.com/a/xxx.edu.tw&#39;] = array(&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;AssertionConsumerService&#39; =&amp;gt; &#39;https://www.google.com/a/xxx.edu.tw/acs&#39;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;NameIDFormat&#39; =&amp;gt; &#39;urn:oasis:names:tc:SAML:2.0:nameid-format:email&#39;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;simplesaml.nameidattribute&#39; =&amp;gt; &#39;uid&#39;,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;simplesaml.attributes&#39; =&amp;gt; FALSE,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;8. 設定 Google apps&lt;/span&gt;  single sign-on (SSO)&lt;/div&gt;
&lt;div&gt;
登入網頁&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
http://xxx.edu.tw/sso/saml2/idp/SSOService.php&lt;/div&gt;
&lt;div&gt;
登出網頁&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
http://xxx.edu.tw/sso/saml2/idp/initSLO.php?RelayState=/simplesaml/logout.php&lt;/div&gt;
&lt;div&gt;
變更密碼改為貴單位 LDAP 更改密碼頁面&lt;/div&gt;
&lt;div&gt;
上傳憑證&amp;nbsp;googleappsidp.crt&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4X9Rf-9BVl1umaGT_tQeGxnJDT2QTryiC3_ZYL0u9d2rZYziL-WPLKgTwGuIPsTgQfVzUNBzDofcjyGfUgj5IOVvHIq8uT4Xckglv1jDgwjf-u8AG4HN2B-X9F-E0ntdmBwRlHa6kkpgx/s1600/33334556.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4X9Rf-9BVl1umaGT_tQeGxnJDT2QTryiC3_ZYL0u9d2rZYziL-WPLKgTwGuIPsTgQfVzUNBzDofcjyGfUgj5IOVvHIq8uT4Xckglv1jDgwjf-u8AG4HN2B-X9F-E0ntdmBwRlHa6kkpgx/s1600/33334556.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: monospace;&quot;&gt;9.測試登入頁面&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
http://mail.google.com/a/yourgoogleappsdomain.com&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
10.強烈建議網頁使用 SSL&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/4385732081319441806/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/4385732081319441806' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/4385732081319441806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/4385732081319441806'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/04/simplesamlphp-google-apps.html' title='用 simpleSAMLphp 實現 Google Apps 單一簽入'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8L97KpvZXBobn-mb0G6_99eEzGO01OJkMfi40emzXgkkyqnPd4y4__W0MzIXrq0ntx3Uj4xSXmL7Pv9AAAeUku6F7DRvKbnhRuxje9tRIY_0V9aYNnEqrG6H6BNi0t4JKdXH-MlU9YVUM/s72-c/ggggg.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2540434789909949294.post-6131183703142585027</id><published>2012-04-18T09:36:00.002+08:00</published><updated>2012-04-18T10:02:20.604+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="edirectory"/><category scheme="http://www.blogger.com/atom/ns#" term="fortinet"/><category scheme="http://www.blogger.com/atom/ns#" term="fortios"/><category scheme="http://www.blogger.com/atom/ns#" term="ldap"/><category scheme="http://www.blogger.com/atom/ns#" term="sslvpn"/><title type='text'>FortiOS 4.0MR3 使用 eDirectory(OpenLDAP) 做群組認證</title><content type='html'>&lt;br /&gt;
USER -&amp;gt; Remote -&amp;gt;LDAP&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn5BkL3m04iufTetTWltxxsFmZyb61CFja-ZigR5pODpIS9FB2WCA4EcE5tEKuGhilQemeOisN3SZrgmdXrpfnbdnHEW1oFPXupjzpUf01QuX2rRBuqjonQrUForZcSj7JnAoIMkzs_ThN/s1600/11111.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn5BkL3m04iufTetTWltxxsFmZyb61CFja-ZigR5pODpIS9FB2WCA4EcE5tEKuGhilQemeOisN3SZrgmdXrpfnbdnHEW1oFPXupjzpUf01QuX2rRBuqjonQrUForZcSj7JnAoIMkzs_ThN/s1600/11111.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
User -&amp;gt; UserGroup&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD_mRdaZ6tY7ct9CzCaCAPfU_oSo0kDuDgRvAS1YP9xk0kyQOZb1NB7Doh7B1UtiWfrf-Nr93FOdC3UljE4TEhzbU8XX4fRFDbpu_q7YPHsuWTIHwk9oi6riRE7I3cRAR-S1Qwl8pOZQ-9/s1600/222222.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD_mRdaZ6tY7ct9CzCaCAPfU_oSo0kDuDgRvAS1YP9xk0kyQOZb1NB7Doh7B1UtiWfrf-Nr93FOdC3UljE4TEhzbU8XX4fRFDbpu_q7YPHsuWTIHwk9oi6riRE7I3cRAR-S1Qwl8pOZQ-9/s640/222222.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
輸入 LDAP 上的 group 的值&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
use CLI console Set Group&lt;br /&gt;
FGT# config user ldap&lt;br /&gt;
FGT# (ldap) # edit admin_LDAP&lt;br /&gt;
FGT# (ldap) # member-attr groupMembership //this is for Windows and Open LDAP, groupMembership for eDirectory&lt;br /&gt;
FGT# (ldap) # end&lt;br /&gt;
&lt;br /&gt;
然後在輸入下列指令查看是否寫入&lt;br /&gt;
FGT# config user ldap
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://chyau317.blogspot.com/feeds/6131183703142585027/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2540434789909949294/6131183703142585027' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6131183703142585027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2540434789909949294/posts/default/6131183703142585027'/><link rel='alternate' type='text/html' href='http://chyau317.blogspot.com/2012/04/fortios-40mr3-edirectoryopenldap.html' title='FortiOS 4.0MR3 使用 eDirectory(OpenLDAP) 做群組認證'/><author><name>喬家大院</name><uri>http://www.blogger.com/profile/11058032708112660832</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn5BkL3m04iufTetTWltxxsFmZyb61CFja-ZigR5pODpIS9FB2WCA4EcE5tEKuGhilQemeOisN3SZrgmdXrpfnbdnHEW1oFPXupjzpUf01QuX2rRBuqjonQrUForZcSj7JnAoIMkzs_ThN/s72-c/11111.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>