[NetApp] OCUM 6.x/7.x enable diag shell (SSH)

適用於
OnCommand Unified Manager (UM) 6.x
OnCommand Unified Manager (UM) 7.0, 7.1

step01. choice 4) Support/Diagnostics

step02. type erds

step03.
Remote diagnostic acces is disabled.
Would you like to enable remote diagnostic access? (y/N) y

step04.

Enter new UNIX password: 輸入密碼
Retype new UNIX password: 輸入密碼
passwd: password updated successfully

Remote diagnostic access will be disabled after midnight UTC tomorrow (2019-03-08) to use.

Press any key to continue.

step05. 可以利用 WinSCP 或 putty 使用帳號 diag 及剛設定密碼登入OCUM.

[Windows] How to count CIFS/SMB files in a folder or a directory ?

運用PowerShell來計算檔案及目錄數
**計算檔案數量**
Get-ChildItem \\CIFS-IP\Share-Volume -Recurse -File | Measure-Object | %{$_.Count}
**計算目錄數量**
Get-ChildItem  \\CIFS-IP\Share-Volume -Recurse -Directory | Measure-Object | %{$_.Count}
PS: 在 Restricted 可執行無需 bypass 或 unrestricted
運用命令提示列 (cmd.exe)
dir *.* /w /s
count-file2.jpg

[Linux] CentOS 6.x / 7.x change Hostname

{Centos 6.x}
step01. check current hostname
# hostname

step02.
# vi /etc/sysconfig/network
———modify———
HOSTNAME=改成你要的主機名稱
———modify———

step03.
# vi /etc/hosts
———modify———
* IP FQDN Hostname *
192.168.1.1  www1.dns.com.tw www1
———modify———

step04.
# service network restart 或 sync;sync;sync;shutdown -r now , init 6

Done.

{Centos 7.x}
step01. check current hostname
# hostname

step02. 永久的名稱
# hostnamectl –static set-hostname www1.dns.com.tw

若暫時等同用CentOS 6.x > hostname www1.dns.com.tw)
# hostnamectl –transient set-hostname www1.dns.com.tw

—-hostnamectl 三個模式—
-static        靜態
–transient 短暫
–pretty       機靈

step03.
systemctl restart network.service  或 sync;sync;sync;reboot , init 6
** Check **
# cat /proc/sys/kernal/hostname
# hostname
# hostname -f  (查詢 FQDN)
# hostname -i  (查詢主機對應IP)
# hostname -I  (查詢主機對應所有IP)

**Caution**
若只用指令hostname來變更CentOS 6.x僅是暫改,若重開機還是會回復原先主機名稱 !

[Cisco] UCSM / FI6248UP ‘default Keyring’s certificate is invalid, reason: expired’

在維護已久的UCSM (FI6xxx) series總是容易見著這樣的錯誤訊息。不去理會其它不會對維運設備造成太大影響,只是偶而客戶問及總不希望有個錯誤訊息掛載在那兒。
ucs-error.jpg

Resolution :

step01. SSH login UCSM

step02. # scope security

step03. /security# scope keyring default

step04./security/keyring# set regenerate yes

step05./security/keyring* commit-buffer // 套用立即生效

等待幾分鐘這個錯誤訊息即會消失..^O^


 

Rerfernce :

  1. vStrong.info – HOW TO: Regenerate expired UCS Manager certificate
  2. virtualbuildingblocks.com – Regenerate Expired Cisco UCS Certificate
  3. vnotions – Fix: Cisco UCSM – Default Keyring’s certificate is invalid

[Web] Let use HFS be security + STunnel

讓如何HFS.exe小型網頁伺服器可以使用 SSL 443加密呢? 那就是找個伴侶唄..

step01. download STunnel 工具

step02. 下載好即安裝它 ‘ stunnel-5.49-win32-installer.exe’ 過程是在產生憑證自行定義之。

step03. 編輯 %PROGRAMFILES(x86)%\stunnel\config\stunnel.conf

————————————stunnel.conf————————————
拿掉註解 ‘ ; ‘分號
; TLS front-end to a web server
[https]
accept = 443
connect = 80
cert = stunnel.pem
; “TIMEOUTclose = 0″ is a workaround for a design flaw in Microsoft SChannel
; Microsoft implementations do not use TLS close-notify alert and thus they
; are vulnerable to truncation attacks
;TIMEOUTclose = 0
————————————stunnel.conf end————————————

step04. stunnel > Configuration > Reload Configuration
stunnel-config-reload.jpg

step05. try HFS , https://HFS-ip-address
hfs-enable-ssl.jpg

Enjoy ^O^!

[Linux] How to use Memtest86+ v5.01 from PXE boot on BIOS

step01. ready Binary zip/gz file , 載點

step02. create /memtest86boot directory

step03. extract zip/gz file , then put ‘memtest86+-5.01.bin‘ into /MT folder

step04. download ‘some one custome tfptd packages environment

step05. extract MemTest86.zip , rename ‘PXE_Mem_test’ to ‘MT86’

step06. perform ‘TFTPD32’

step08.extract memtest86+ v5.01 binary zip/gz pub ‘MT’ , remove .bin extension otherwise it will NOT BOOT!

memtest86_001.jpg

step09. TFTPD32 settings > TFTP Base directory 指向 ‘%path%MT86’
memtest86_002.jpg

step10. DHCP > Boot file : pxememtest.0
memtest86_003.jpg

step11.
Let’s use hardware on BIOS environment to PXE boot + memtest86+..
Enjoy !


Reference :
* Symantec – Running Memtest86+ Using the Altiris PXE Server
* wiki.seanmadden.net – Memtest over PXEBoot
How To Setup a custom PXE Server on Windows OS