Home » Uncategorized

Category: Uncategorized

Deploying to AWS with Citrix Smart Deploy – no NAT instance was detected


During the deployment of a blueprint via Citrix Smart Tools > Smart Deploy we came across the following error when attempting to deploy to our AWS Resource Location

The following problems were detected with your configuration
Please re-configure as no NAT instance was detected in this AWS Resource location


The blueprint / Citrix tools don’t seem to (yet) support AWS NAT Gateways. This also certainly wont work with the default VPC. To solve this we spun up a new NAT Instance in our own VPC with the servers in separate private subnets in order for the wizard to proceed / succeed. Also note If you deploy to the public subnet you need to provide an elastic IP address.

Edgesight some devices not updating

Edgesight 5.4 Devices not all updating



EventID: 1309

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 21/11/2012 05:09:03
Event time (UTC): 21/11/2012 05:09:03
Event ID: 253f40dc21e443718a8b4ae7da0f3f58
Event sequence: 19
Event occurrence: 4
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT/edgesight-1-129979474088414087
Trust level: Full
Application Virtual Path: /edgesight
Application Path: C:Program Files (x86)CitrixSystem MonitoringServerEdgeSightPages

Edgesight 5.4 ASP.net eventlog erro 1309


Solution: http://support.citrix.com/article/CTX132116

Overview of fix

Open the %ProgramFiles(x86)%CitrixSystem MonitoringServerEdgeSightPages folder on the EdgeSight server. Open the web.config file in Notepad

If the web.config file already contains the <appSettings> tag, then you have to insert the <add> tag under the existing <appSettings> tag.

</system.web> </location>

MaxHttpCollectionKeys” value=”50000″ />


5000-10000 typical config – we raised ours to 50000 for teh backlog of info where the agents hadn’t updated in 2-3 days

Windows 7 network shares slow

When accessing domain shares from a non domain member w7 x64 box we were experiencing very slow prompt for credentials (1-2 minutes)

run the following from an elevated command prompt and the change should be instant
netsh interface tcp set global autotuninglevel=disabled
netsh interface tcp set global rss=disabled

SCRIPT: check if folder is empty

Option Explicit
Dim oFS : Set oFS = CreateObject(“Scripting.FileSystemObject”)
Function FolderEmpty(strFolderPathName)
 Dim oFiles, oFile, oFolder, oSubFolders, oSubFolder
 Dim blnFileFound : blnFileFound = False
 Set oFolder = oFS.GetFolder(strFolderPathName)
 Set oFiles = oFolder.Files
 If oFiles.Count > 0 Then
  FolderEmpty = False
  Exit Function
 End If
 Set oSubFolders = oFolder.SubFolders
 For Each oSubFolder In oSubFolders
  If Not FolderEmpty(oSubFolder.Path) Then
   FolderEmpty = False
   Exit Function
  End If
 FolderEmpty = True
End Function
Dim strFolderPathName1 : strFolderPathName1 = “file://server/c$/folder
If FolderEmpty(strFolderPathName1) Then
 MsgBox “the folder ” & strFolderPathName1 & ” is empty”
 MsgBox “the folder ” & strFolderPathName1 & ” is not empty”
End If

SCRIPT: check Xen servers logons enabled

const HKEY_LOCAL_MACHINE = &H80000002
Dim oReg, strKeyPath, strValueName, strDisabled, objArgs, strComputer, arrComputers
Set objArgs = WScript.Arguments
arrComputers = Array(“server1″,”server2”)

sOutput = “Logons Enabled(0) or Disabled(1)” & VBCRLF & VBCRLF
For EACH strComputer in arrComputers
 Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\” & strComputer & “rootdefault:StdRegProv”)
 strKeyPath = “SoftwareMicrosoftWindows NTCurrentVersionWinlogon”
 strValueName = “WinStationsDisabled”
 oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strDisabled
 sOutput = sOutput & strcomputer & ”    ” & strDisabled & vbcrlf

On Error Resume Next               
        wscript.echo sOutput

SCRIPT: set citrix xenapp XML to trusted for localhost

Option Explicit
Dim WSHShell
Dim objNTInfo
Dim GetComputerName
Dim xml
Const MetaFrameWinSrvObject = 6
Set objNTInfo = CreateObject(“WinNTSystemInfo”)
GetComputerName = lcase(objNTInfo.ComputerName)
Set WSHShell = WScript.CreateObject(“WScript.Shell”)
Set xml=CreateObject(“MetaframeCOM.Metaframeserver”)
xml.initialize MetaFrameWinSrvObject,GetComputerName
‘xml.initialize MetaFrameWinSrvObject,”servername”
xml.WinServerObject.TrustXMLRequests = 1

SCRIPT: set local administrator proxy

Const HKEY_CURRENT_USER = &H80000001
strComputer = “.”
Set objReg = GetObject(“winmgmts:\” & strComputer & “rootdefault:StdRegProv”)

objReg.SetDWORDValue HKEY_CURRENT_USER,”SoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”ProxyEnable”,1
objReg.SetStringValue HKEY_CURRENT_USER,”SoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”ProxyServer”,”proxy:port”
objReg.SetStringValue HKEY_CURRENT_USER,”SoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”strValue “, “<local>”
objReg.SetDWORDValue HKEY_CURRENT_USER,”SoftwareMicrosoftWindowsCurrentVersionInternet Settings”,”EnableAutodial”,0