Wednesday, December 18, 2013

Tuesday, October 15, 2013

ESLT - Connect Failed. XML Service. Could not find application

Because I was creating lots of connections I was copying the connections and then editing them with the appropriate config. This doesn't seem to work too well. You need to create each connection manually, this seems to resolve the problem
Read More ->>

Wednesday, September 18, 2013

How can I find out why specific AD accounts are being locked daily?

I usually have luck doing it this way:
  1. Run LockoutStatus.exe.
  2. Enter the username and find out which of your DCs was the source of the lock ("Orig Lock" column) and when it happened ("Lockout Time" column).
  3. Examine the Security log on the DC at that time and you will usually be able to pinpoint it to a specific machine.
  4. Once you have the machine it's usually:
    • User has a scheduled task running in their name and their password has changed.
    • User has a disconnected RDP session.
Read More ->>

Tuesday, September 10, 2013

Event ID 1071 — Terminal Server Connections

Resolve

Configure the terminal server to allow connections

To resolve this issue, configure the terminal server to allow connections by using the chglogon command-line tool.
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To allow connections:
  1. On the terminal server, open an elevated Command Prompt window. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. In the elevated Command Prompt window, type chglogon /enable, and then press ENTER.

Verify

To verify that connections to the terminal server are working properly, establish a remote session with the terminal server.
Read More ->>

How to change password on Citrix License Server

1) Open the "server.xml" file in C:\Program Files\Citrix\Licensing\LS\conf. If on Win2k8 you will need to open your editor as an admin.
2) Find the entry that looks something like this:
<user firstName="System" id="admin" lastName="Administrator" password="(ENC-01)UaFz17cJ2oNQ+LkskjkzUyVV5ZcmaoJCDCiuiusbB6zk2P0uR" passwordExpired="false" privileges="admin"/>;

3) Erase the contents between the double quotes after "password="
4) Enter a plaintext password so it looks like this: password="test"
5) Change the passwordExpired value to be "true"
6) Save the server.xml file.
7) Restart the licensing services. I also closed and re-opened the LAC but this may not be necessary.
8) Log into the LAC using user name "admin" and the password you set.
9) You will be prompted to change your password. Do it. By doing it, the new password will be encrypted in the server.xml file.
10) To check that everything is working as planned, re-open the server.xml to check that the password is now encrypted.
Read More ->>

Friday, July 5, 2013

CTX135585 - Error - HDX Engine stopped working - Citrix Knowledge Center

CTX135585 - Error - HDX Engine stopped working - Citrix Knowledge Center
Read More ->>

Citrix HDX Engine has encountered a problem and needs to close we are sorry for the inconvenience

http://trentent.blogspot.it/2013/03/citrix-hdx-engine-has-encountered.html
Read More ->>

CTX135099 - XenServer Tool Workarounds for XenServer 6.1.0 - Citrix Knowledge Center

CTX135099 - XenServer Tool Workarounds for XenServer 6.1.0 - Citrix Knowledge Center
Read More ->>

Citrix XenApp Load 10000

Open CMD as administrator and ran the following command on the server

lodctr /R

C:\Windows\system32>lodctr /R
Error: Unable to rebuild performance counter setting from system backup store, error code is 2
C:\Windows\system32>cd ..
- If it fails , run it in syswow64:
C:\Windows>cd syswow64
C:\Windows\SysWOW64>lodctr /R
Info: Successfully rebuilt performance counter setting from system backup store
C:\Windows\SysWOW64>winmgmt.exe /RESYNCPERF
C:\Windows\SysWOW64>


more information on this command can be found at the following Microsoft site

http://support.microsoft.com/kb/300956/

This rebuilt the counters.  Opening performance monitor would no longer show the error.  After a reboot the value for QFARM /LOAD was normal again.
Read More ->>

VDI not found when starting a VM on XenServer 5.6 SP2

When a VM is started on a XenServer host, domain 0, needs to ensure that all resources required by the guest VM are available for it to start. If a VM has had an unexpected shutdown, power failure, etc., we could have a dirty flag on the VDI, which is normally a logical volume in a volume group (Storage Repository). To clear this flag, we need to do the following actions:
1. Via the command line, type “xe vm-start vm=<name of VM>” and you will get a better error message than noted in the XenCenter, namely the UUID of the VDI that cannot be used exclusively by the guest VM.
2. Make a note of the UUID of the VDI and proceed to remove it from the pool database via the following “xe vdi-forget uuid=<UUID of the VDI>. You will then note that the VM no longer is attached to the VDI in XenCenter.
3. On the SR that the VDI is located on, proceed to the “Storage” tab and select “Rescan”. You should see the VDI with no name label on it.
4. To ensure we have the correct VDI, if there are many VDIs with no name, use the following command “xe vdi-list uuid=<UUID of the VDI>. You should see it with no name label or description. We can then label this VDI via “xe vdi-param-set uuid=<UUID of the VDI> name-label=<New name label>”. You should see the labeled VDI in the XenCenter.
5. On the VMs storage tab, select “Attach” and proceed to select the VDI on the SR.
6. VM should start without issue.
Read More ->>

CTX124612 - How to Configure Multiple Launch Prevention Feature on Web Interface 5.3 or 5.4 - Citrix Knowledge Center

CTX124612 - How to Configure Multiple Launch Prevention Feature on Web Interface 5.3 or 5.4 - Citrix Knowledge Center
Read More ->>

Wednesday, March 13, 2013

Provisioning: How to avoid failover delay

Note: Installing Provisioning Services affects the following registry key:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters\OplocksDisabled. Changing this registry key disables Windows Opportunity Locking, providing the fastest possible failover time when contact with the active Provisioning Server is lost. Without this change, failover times can take up to one minute. During this time, Windows does not allow access to the vDisk file that was in use by the failed Provisioning Server. By disabling Windows Opportunity Locking on Provisioning Servers, the Stream Service can have immediate access to vDisk files. However, this reduces caching of remote vDisk data for the entire Provisioning Server.
OplocksDisabled REG_DWORD 0 or 1
Default: 0 (not disabled)
OplocksDisabled REG_DWORD 0 or 1
Default: 1 (disabled)
Read More ->>

xendesktop trust xml service

Note: If you intend to use SmartAcces
s endpoint analysis, pass-through authentication, or smart card authentication with XenDesktop, you must configure XenDesktop to trust XML services. To do this, run the following Powershell SDK command:

Set-BrokerSite -TrustRequestsSentToTheXmlServicePort $true
Read More ->>

Wednesday, March 6, 2013

XS - Multipathing



Firstly Check true multipath status (XenCentre can report it incorrectly). You should see two paths in Round Robin for each Storage Repository

Multipath –ll


If this reports two per SR as expected then we simply need to tell XenCentre to update/refresh its view this is accomplished by running the below command, give it a minute and XenCentre should then report the correct number of connections.

/opt/xensource/sm/mpathcount.py


If the multipath –ll doesn’t report as expected the quickest and simplest way to resolve is to put the host in maintenance mode, disable multipathing wait 2 minutes and then re-enable multipathing. Wait a couple of minutes and then check the multipath status as per above. Once happy you can leave maintenance mode.  This seems to sort the problem 9/10 times.  Failing that if you may need to restart the open-iscsi service, command below;  

Service open-iscsi restart
Read More ->>

Friday, January 25, 2013

CTX135099 - XenServer Tool Workarounds for XenServer 6.1.0 - Citrix Knowledge Center

CTX135099 - XenServer Tool Workarounds for XenServer 6.1.0 - Citrix Knowledge Center
Read More ->>

Run Command Shortcuts for Administrative Tools

Run Command Shortcuts for Administrative Tools

Thanks to Brian.
I’m always looking for ways to make my job easier. Knowing shortcuts to the commonly used admin tools that you use is one of the best ways. Take a look below for your favorites and remember them…
Not only will it save you a ton of time but also make you look more intelligent!!!
Console
Command
AD Domains and Trusts
domain.msc
Active Directory Management
admgmt.msc
AD Sites and Services
dssite.msc
AD Users and Computers
dsa.msc
ADSI Edit
adsiedit.msc
Authorization manager
azman.msc
Certification Authority Management
certsrv.msc
Certificate Templates
certtmpl.msc
Cluster Administrator
cluadmin.exe
Computer Management
compmgmt.msc
Component Services
comexp.msc
Configure Your Server
cys.exe
Device Manager
devmgmt.msc
DHCP Management
dhcpmgmt.msc
Disk Defragmenter
dfrg.msc
Disk Manager
diskmgmt.msc
Distributed File System
dfsgui.msc
DNS Management
dnsmgmt.msc
Event Viewer
eventvwr.msc
Indexing Service Management
ciadv.msc
IP Address Manage
ipaddrmgmt.msc
Licensing Manager
llsmgr.exe
Local Certificates Management
certmgr.msc
Local Group Policy Editor
gpedit.msc
Local Security Settings Manager
secpol.msc
Local Users and Groups Manager
lusrmgr.msc
Network Load balancing
nlbmgr.exe
Performance Monitor
perfmon.msc
PKI Viewer
pkiview.msc
Public Key Management
pkmgmt.msc
QoS Control Management
acssnap.msc
Remote Desktops
tsmmc.msc
Remote Storage Administration
rsadmin.msc
Removable Storage
ntmsmgr.msc
Removable Storage Operator Requests
ntmsoprq.msc
Routing and Remote Access Manager
rrasmgmt.msc
Resultant Set of Policy
rsop.msc
Schema management
schmmgmt.msc
Services Management
services.msc
Shared Folders
fsmgmt.msc
SID Security Migration
sidwalk.msc
Telephony Management
tapimgmt.msc
Terminal Server Configuration
tscc.msc
Terminal Server Licensing
licmgr.exe
Terminal Server Manager
tsadmin.exe
UDDI Services Management
uddi.msc
Windows Management Instrumentation
wmimgmt.msc
WINS Server manager
winsmgmt.msc

Read More ->>

Monday, January 14, 2013

No Local Storage after XenServer installation

After installation of XenServer 6.0.2 the Local Storage SR doesn't appear.

Does running "fdisk -l" show you a device with 3 partitions
? Example:

root@xenserver /# fdisk -l

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 499 4008186 83 Linux
/dev/sda2 500 998 4008217+ 83 Linux
/dev/sda3 999 19452 148231755 83 Linux

Then you should be able to create a Local Storage via the CLI (XenCenter
is for shared storage). You need to know the SCSI device associated with this 3rd partition. Listing /dev/disk/by-id via ls command will help. Example:

root@xenserver /# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Apr 5 12:51 scsi-SATA_ST3160815AS_9RX53PHQ -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 5 12:51 scsi-SATA_ST3160815AS_9RX53PHQ-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 5 12:51 scsi-SATA_ST3160815AS_9RX53PHQ-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 5 12:51 scsi-SATA_ST3160815AS_9RX53PHQ-part3 -> ../../sda3

Now you can use the sr-create command. You need to first get the host universal unique Id via xe host-list

xe sr-create type=ext content-ty
pe=user host-uuid=<UUID of the XenServer host> shared=false name-label="Local Storage" device-config:device=/dev/disk/by-id/<SCSI ID>

In my case, SCSI ID would be: scsi-SATA_ST3160815AS_9RX53PHQ-part3 and the command to create would be:

xe sr-create type=ext content-type=user host-uuid=c9383181-27be-43dc-9a39-bf9b801582e8 shared=false name-label="Local Storage" device-config:device=/dev/disk/by-id/scsi-SATA_ST3160815AS_9RX53PHQ-part3
Read More ->>