補覺鳴詩

學海無涯


  • 首頁

  • archive

  • 關於我

  • 搜尋

Fortigate config 轉檔

時間: 2019-01-01   |   分類: 網管   | 字數: 84 字 | 閱讀: 1分鐘
來源 https://www.brg.ch/dump-fortigate-config-into-csv/ 1.先備份 fortigate config 2.準備一台 linux 3.下載 script 4.將 script、config 放進去linux 5.執行指令轉出對應的格式 fortigate-extract.pl --config <fortigate-config.conf> --csv [--debug] fortigate-extract.pl --config <fortigate-config.conf> --html [--debug] fortigate-extract.pl
閱讀全文 »

ESXi 使用 ghettoVCB 備份 VM

時間: 2018-12-04   |   分類: VMware   | 字數: 268 字 | 閱讀: 1分鐘
ghettoVCB 使用 ghettoVCB 備份 或是 xsibackup ghettoVCB 說穿只是一個批次檔 他可以放在任意位置執行 也可以以 vib 檔安裝到 ESXi 中 官網 https://github.com/lamw/ghettoVCB https://github.com/lamw/ghettoVCB/raw/master/vghetto-ghettoVCB-offline-bundle.zip ESXi 開啟 ssh 的功能 以 ssh 登錄後 切換目錄到 datastore cd /vmfs/volumes/datastore1/ 下載 ghettoVCB https://github.com/lamw/ghettoVCB/raw/master/vghetto-ghettoVCB-offline-bundle.zip 以
閱讀全文 »

CMD 呼叫變數

時間: 2018-12-01   |   分類: windows   網管   | 字數: 36 字 | 閱讀: 1分鐘
set x=%date:~0,4%%date:~5,2%%date:~8,2% 會將字串存為變數 x 要呼叫時就下 %x% :~0,4 為擷取部分內容 從第0個字元至第四個

紅米 note4x 刷機

時間: 2018-11-04   |   分類: 網管   | 字數: 52 字 | 閱讀: 1分鐘
https://developer.android.com/studio/#downloads Command line tools only 下載 ADB、fastboot toolsbinsdkmanager "platform-tools" "platforms;android-28" 檢查 裝置 platform-tools> .fastboot devices 下載 TWRP https://dl.twrp.me/mido/ 刷入 recovery .fastboot flash recovery twrp-3.2.3-1-mido.img 啟動 twrp .fastboot boot RedWolf-027-mido.img PS.twrp 會認 android 版本

替 ESXi 安裝驅動

時間: 2018-11-04   |   分類: VMware   | 字數: 335 字 | 閱讀: 1分鐘
以系統管理員身分執行 powershell Install-Module -Name VMware.PowerCLI Set-ExecutionPolicy -ExecutionPolicy Bypass 下載 ESXi-Customizer-PS https://www.v-front.de/p/esxi-customizer-ps.html#download 腳本說明 .ESXi-Customizer-PS-v2.6.0.ps1 -help This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!) Usage: ESXi-Customizer-PS [-help] | [-izip [-update]] [-sip] [-v67|-v65|-v60|-v55|-v51|-v50] [-ozip] [-pkgDir ] [-outDir ] [-vft] [-dpt depot1[,…]] [-load vib1[,…]] [-remove vib1[,…]] [-log ] [-ipname ] [-ipdesc ] [-ipvendor ] [-nsc] [-test] Optional parameters: -help
閱讀全文 »

檢查 server 主機對 SSL/TLS versions 的相容性

時間: 2018-11-02   |   分類: 網管   | 字數: 74 字 | 閱讀: 1分鐘
可以使用 openssl openssl s_client -connect example.com:443 -tls1_2 可用參數如下 -ssl2 – just use SSLv2 -ssl3 – just use SSLv3 -tls1_2 – just use TLSv1.2 -tls1_1 – just use TLSv1.1 -tls1 – just use TLSv1 也可以使用 nmap nmap –script ssl-enum-ciphers -p 443 example.com 如果沒出現該加密訊息就
閱讀全文 »

syslog-ng config 範例

時間: 2018-10-13   |   分類: Centos 7   | 字數: 951 字 | 閱讀: 2分鐘
[root@localhost syslog-ng]# cat syslog-ng.conf @version:3.5 @include “scl.conf” # syslog-ng configuration file. # This should behave pretty much like the original syslog on RedHat. But # it could be configured a lot smarter. # See syslog-ng(8) and syslog-ng.conf(5) for more information. # Note: it also sources additional configuration files (*.conf) # located in /etc/syslog-ng/conf.d/ options { flush_lines (2000); #time_reopen (10); log_fifo_size (1000);
閱讀全文 »

開源企業備份軟體 Bareos

時間: 2018-09-09   |   分類: bareos   | 字數: 4327 字 | 閱讀: 9分鐘
閱讀全文 »

在 centos 7 安裝 odoo

時間: 2018-09-02   |   分類: 網管   | 字數: 432 字 | 閱讀: 1分鐘
在 centos 7 安裝 odoo #雖然官方有提供 deb、rpm 包安裝 #但限於 ubuntu 跟 fedora #centos 7 #必須從 git 下載編譯安裝才可以 #但還好步驟不難 #首先做一次系統更新 yum update -y #安
閱讀全文 »

centos 排程 遠端指令

時間: 2018-09-01   |   分類: Centos 7   | 字數: 154 字 | 閱讀: 1分鐘
yum -y install expect switchBK.sh chmod 775 switch.sh 建立 shell #!/usr/bin/expect ## TomDV ## http://blog.penumbra.be/2010/02/expect-scripts-backup-cisco-config/ set timeout 600 # —————- configuration device —————- # ## device 1 set device1 set tftp set device1_user set device1_pass # ————– run command ————– # ## device 1 spawn ssh -l $user $device expect “
閱讀全文 »
6 7 8 9 10 11 12 13 14
Owan

Owan

愛貓如癡

131 日誌
29 分類
37 標籤
RSS 訂閱
GitHub
© 2010 - 2022 補覺鳴詩
Powered by - Hugo v0.96.0 / Theme by - NexT
0%