發表文章

目前顯示的是 2011的文章

Linux VNC

Enable VNC -- vncserver -cc 3 Disable VNC -- vncserver -kill :1 reset vnc passwrod -- vncpasswd

display user's ad group

net user john /domain

FTP7.5 path-authentication fail

1. FTP7.5 access remote share folder and set as home directory 2. user access as personal permission need to do below To check the permissions on the physical folder, right click on the home directory for the site, select Properties and then Security and ensure that their are, at least, read permissions for the "Users" security group, this will ensure that all inbuilt users on the system should have read access to the folder. Then check to see what account the site's Application Pool is running as. To do this, open the IIS management console, find the Application Pools entry, right-click on "DefaultAppPool" and then select "Advanced Properties". The account the App Pool is running as is listed under "Identity". It'll probably be set to NetworkService. Make sure this account also has read permissions on the home directory. If that doesn't work, try changing the Identity entry from NetworkService to one of the user accounts on t...

Using Poweshell upgrade VMtools without reboot

为Cluster里的所有VM升级VMware Tools: Get-Cluster "Cluster_Name" | Get-VM | Update-Tools -NoReboot 复制代码 升级指定文件夹下VM的VMware Tools: Get-Cluster "Cluster_Name" | Get-Folder "Folder_name" | Get-VM | Update-Tools -NoReboot 复制代码 升级选定虚拟机的VMware Tools: Get-Cluster "Cluster_Name" | Get-VM "VM_Name" | Update-Tools -NoReboot 复制代码 查看虚拟机的VMware Tools版本: Get-View -ViewType VirtualMachine | Select VM_Name,@{Name="ToolsVersion"; Expression={$_.config.tools.toolsVersion}} 复制代码

VMware View run powershell error

Error message:windows powershell snap-in vmware.view.broker is not installed on Resolution: C:\WINNT\Microsoft.NET\Framework64\v2.0.50727\installUtil  \bin\PowershellServiceCmdlets.dll Where is where you installed your Connection Server.

Query AD Group members

dsquery group domainroot -name groupname | dsget group -members |  dsget user -samid

Easy ways to query hot fix information

If the computer is connected to the Internet, you can go to Windows Update Online at http://windowsupdate.microsoft.com. After scanning your system, the website will tell you what hot fixes you do not have. In the %windir%, you can find a number of log files with names beginning with “KB” and followed by six digits, e.g. KB870764.log, KBxxxxxxUninst.log. KBxxxxxx.log – Contain installation information of the hot fix. If you can find this file and there are no errors in the log, then the hot fix in the file name has been installed. KBxxxxxxuninst.log – Contain uninstallation information of this hotfix. If you can find this file and there are no errors in the log, then the hot fix KBxxxxxx has been uninstalled from your system. In addition, you also can find uninstall folders of the hotfix in %windir% (with names like $NtUninstallKBxxxxxx$) and %windir%\$hf_mig$ (with names like KBxxxxxx). Generally you can uninstall the hot fix from that folder by running spuninst.exe. Cmd ...

How to restart Suse9 http

/usr/sbin/apache2ctl graceful

Windows Run Commands

Program/Utility command Accessibility Controls access.cpl Add Hardware Wizard hdwwiz.cpl Add/Remove Programs appwiz.cpl Administrative Tools control admintools Automatic Updates wuaucpl.cpl Bluetooth Transfer Wizard fsquirt Calculator calc Certificate Manager certmgr.msc Character Map charmap Check Disk Utility chkdsk Clipboard Viewer clipbrd Command Prompt cmd Component Services dcomcnfg Computer Management compmgmt.msc Device Manager devmgmt.msc Direct X Control Panel (If Installed) directx.cpl Direct X Troubleshooter dxdiag Disk Cleanup Utility cleanmgr Disk Defragment dfrg.msc Disk Management diskmgmt.msc Disk Partition Manager diskpart Display Properties control desktop Display Properties desk.cpl Display Properties (w/Appearance Tab Preselected) control color Dr. Watson System Troubleshooting Utility drwtsn32 Driver Verifier Utility verifier Event Viewer eventvwr.msc File Signature Verification Tool sigverif Findfast findfast.cpl Folders Properties...

ESX “Dead Brain” has some symptoms

I found the ESX “Dead Brain” has some symptoms and it’s very insteresting 1. CPU utilization is heavy loading in vix-async-pipe  a. Reference VMware KB: 1030894 ---- not work   b. Reference VMware KB: 1003490 ---- not work  2. Load average is up than 20 , you can using “top” to check esx hypervisor loading. 3. Some zombie process and can’t kill it  a. ps aux | awk ‘{ print $8 “ “$2 }’ | grep –w Z ---- show zombie process ID  b. kill -9 xxxxx ---- not work  Finally, I found this VMware KB: 1005566 and it works for me. Link : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1005566 I think “Dead Brain” is cause by process dead lock (in this case  vmware-hostd)

Service mgmt-vmware restart may not restart hostd

VMware KB Article: 1005566 Symptoms •The command service mgmt-vmware restart does not restart hostd. •The script gets stuck when stopping the service. •The SSH session to the ESX host becomes unresponsive. •hostd fails to restart. Resolution You must manually stop the stuck service and restart it. To stop the service and restart it: 1.Log in as root to the ESX host command-line via the physical console or via KVM connection. 2.Navigate to the /var/run/vmware directory with the command: # cd /var/run/vmware 3.Run this command to list the files vmware-hostd.PID and watchdog-hostd.PID : # ls -l vmware-hostd.PID watchdog-hostd.PID 4.Determine the Process ID (PID) management service. View the contents of the vmware-hostd.PID file with the command: # cat vmware-hostd.PID For example: [root@vmware]# cat vmware-hostd.PID 1191[root@vmware]# 5.Use the resulting PID to kill the process. Caution: Use the kill -9 command with care. It kills the process of the su...

How to eliminate the “Open File Security Warning” from programs accessed from the file server.

1.Open the Control Panel 2.Open Internet Options 3.Click the Security Tab 4.Click on Local Intranet 5.Click on Sties 6.Click Advanced 7.Type the drive letter of your file server where the application is located in the “Add this website to this zone” box. 8.Click Add 9.Click Close 10.Click OK 11.Close Internet Options by clicking OK 12.Close the Control Panel You should no longer get the “Open File Security Warning” when you run an application from the file server.

Black screen at windows 2003 logon window

圖片
Q. I got this as below screen, after I enter password (it's difficult , but possible), everything is ok.... A. A similar issue happened to me when the system disk filled up. For some reason it zero out settings in the registry You'll have to free up some space and perform registry edits remotely. Remember to backup your registry before performing any task like this. this is the edit required to get the screen back or close to standard. [HKEY_USERS\.DEFAULT\Control Panel\Colors] "ActiveBorder"="212 208 200" "ActiveTitle"="10 36 106" "AppWorkSpace"="128 128 128" "Background"="102 111 116" "ButtonAlternateFace"="181 181 181" "ButtonDkShadow"="64 64 64" "ButtonFace"="212 208 200" "ButtonHilight"="255 255 255" "ButtonLight"="212 208 200" "ButtonShadow"="128 128 128" "ButtonTex...

SAN Switch Command

alicreate 給予port or wwn 一個alias name sample:    alicreate "SW6_P27_VMS01_FCS1", "1,2" zonecreate 新建zone的名字及內容 sample:    zonecreate "SW6_P27_VMS01_FCS1_SW12_P01_CX960_SPB0","SW6_P27_VMS01_FCS1;SW12_P01_CX960_SPB0" cfgsave 把所做的變更保存到flash中. (類似switch 中的write mem) 完整範例 change the logical switch within a CLI session You can use the CLI command: setcontext "FID" FABRIC Switch A ************************************************************************************** alicreate "SRV01_HBA0", "21:00:00:E0:1B:0B:F0:24" alicreate "CX4_SPA0", "21:00:00:E0:1B:0B:F0:24" zonecreate "SRV01_CX4_SPA0", "CX4_SPA0; SRV01_HBA0" zonecreate "SRV01_CX4_SPB1", "CX4_SPB1; SRV01_HBA0" cfgadd "COMP_FABRIC_A", "SRV01_CX4_SPA0; SRV01_CX4_SPB1" cfgsave cfgenable "COMP_FABRIC_A" FABRIC Switch B ****************************************...

在Microsoft Windows環境下新增, 執行, 關閉與移除服務的方法

這個主題以中央標準局的時間校時軟體 NTP 為例 最新版 NTP 校時軟體 中文版: http://www.stdtime.gov.tw/chinese/EXE/NTPClock.exe 英文版: http://www.stdtime.gov.tw/chinese/EXE/NTPClock_eng.exe 下載微軟官方網站的 Windows Server 2003 Resource Kit Tools: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en 安裝好Windows Server 2003 Resource Kit Tools, 將這下面二個檔案複製到D:\service目錄下 C:\Program Files\Windows Resource Kits\Tools\instsrv.exe C:\Program Files\Windows Resource Kits\Tools\srvany.exe PS. 另外一個可下載 instsry.exe 和 srvayn.exe 檔案的網址如下, 不過還是建議至微軟官方網站下載較好 http://www.electrasoft.com/srvany/srvany.htm ====================================================================== 新增一個名稱為AClock的服務 名字可以自行更改為其他的如NTClock, 只不過服務名稱排在越前面越早執行越好 ====================================================================== 代碼: D:\ cd service instsrv.exe AClock D:\service\srvany.exe ====================================================================== 執行regedit修改機碼 到以下機碼所...

VMware View PCoIP can not change display setting

grab the vdm_agent group policy \administrative template \and make a group policy object that changes the 'toggle display settings control' to disabled.

make Linux VNC more beautiful

[root@ereew03 .vnc]# cat xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #startx & gnome-session &

Disabling the HotPlug capability in ESX 4.0 virtual machines

You can can disable the HotPlug capability using vSphere Client or by editing the .vmx file. Note: You can disable the HotPlug capability for PCI devices such as e1000 or vmxnet2 NICs. To disable the HotPlug capability using vSphere Client: 1.Connect vSphere Client to ESX or vCenter Server. 2.Power off the virtual machine. 3.Right-click the virtual machine and click Edit Settings. 4.Click the Options tab. 5.Click General > Configuration Parameters > Add Row. 6.Insert a new row with the name devices.hotplug and value false. 7.Power on the virtual machine To disable the HotPlug capability by editing the .vmx file: 1.Power off the virtual machine. 2.Access the ESX service console using an SSH client. 3.Open the virtual machine configuration file (.vmx) in a text editor. The default location is /vmfs/volumes/ / / .vmx. 4.Add the line: devices.hotplug = "false" Note: This setting does not interfere with HotPlug CPU/memory. 5.Save the file. 6.Powe...

Cannot open Virtual Machine Console

--------------------------------------------------------------------------------- Details --------------------------------------------------------------------------------- •When you try to connect to a virtual machine console from VirtualCenter, you see these errors: ◦Error connecting: Login (username/password) incorrect ◦Error connecting: Host address lookup for server failed: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for Do you want to try again? ◦Error connecting: cannot connect to host : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Do you want to try again? ◦Error connecting: You need execute access in order to connect with the VMware console. Access denied for config file. ◦Unable to connect to MKS: failed to connect to server IP:903. For more information...

[Remove] Cydia 出現一堆 wrong language code zh-hant 錯誤

使用 91 或是 iFlile 之類的檔案管理工具 刪除或是重新更名 /private/var/lib/cydia/metadata.plist 和 /private/etc/apt/sources.list.d/cydia.list