Posts

Showing posts from February, 2013

NetScaler - N2N Files

NetScaler to NetScaler File Transfers

So you want to transfer over either an SSL cert or config file to another NetScaler. There are many ways to do this, but in this scenario, I will be using the command "scp" form the NetScaler

Scenario

NetScaler AVersion 10.0Hostname: nsvpx_aIP: 10.0.0.1User: nsrootPassword: toorNetScaler BVersion 10.0Hostname: nsvpx_bIP: 10.0.0.2User: nsrootPassword: toorSCP Usage
scp [[user@]from-host:]source-file [[user@]to-host:][destination-file] SCP Optionsr = recursively copy entire directoriesp = preserves modification times, access times, and modes from the original fileC = compression enableq = Do not display the progress barv = Displays debugging messages SCP Examples
Copying NS.CONF I want to copy the ns.conf file from nsvpx_a to nsvpx_b scp -rpC /nsconfig/ns.conf nsroot@10.0.0.2:/nsconfig/ns.confCopying all *.CONF Files I want to copy all the ".conf files" from nsvpx_a to nsvpx_b scp -rcP /nsconfig/*.conf nsroot@10.0.0.2:/nsconfig/Copy all SS…

PowerShell - Show VMWARE VM UUID

How to show the VMWARE UUID of a VM using PowerShell

I am working on a project where one of the functions is to get the UUID of a VM from the guest vm via PowerShell. You can get the "Windows" UUID with:

(Get-WmiObject Win32_ComputerSystemProduct).UUIDThe problem is that a lot of the values are reversed. Below are examples of a Windows UUID and a VMWARE UUID. Windows UUIDF8420542-10A9-9961-5225-C6F8D91A468DVMWARE UUID420542f8-a910-6199-5225-c6f8d91a468dSo i needed to figure out a way to move the variables around. To do this, I used ".substring" with delimiters to extract out each value, and then piece it back together. I am not a PowerShell expert in any means, so if you think there is a better way to accomplish any of what I am doing, there probably is.  NOTE: There is another way of doing this with "vSphere PowerCLI" and Get-VM commands. I did not want to go that route, because I did not want to download or install anything to accomplish my task. I wanted t…

Citrix PVS - Error: vDisk is not available

Image
So I got to work this morning with the intention of reverse imaging a couple vDisks. Usually a simple process, but today I am having nothing but issues. Luckily it is the same issue on each of the vDisks. So here is a quick synopsis of how I am reverse imaging:Add a Secondary Disk to my VMUse Xenconvert to copy my "c:\" volume to the new vmdk I attachedSet the new drive to "active" and reboot to the biosSet the VM to boot off the HDBoot the VMRemove VMWARE ToolsRemove Target Device SoftwareRebootAdd VMWARE Tools (Now upgraded)Add Target Device Software (Now upgraded)Run through PVS Wizard and "Optimize"Reboot to Bios and set boot order to PXE firstLet the PVS Imaging Wizard complete after logging inSo now for the issue.. At this point, instead of the wizard taking over and completing the process it gives me a very vague error message. To me it doesn't really tell me anything.Error: vDisk is not available. Please check your network PXE boot Configurati…

XenApp - Install and Publish SQL Server Management Studio

Image
Citrix XenApp SQL Server Management Studio Installation
Versions I am working with: OS: Server 2008 R2 Standard 64-bitCitrix: XenApp 6.5SQL: SQL Server 2008 R2 Management Studio Below was the error I was receiving when trying to install SSMS: “Another version of Microsoft Visual Studio 2008 has been detected on this system that must be updated to SP1. Please update all Visual Studio 2008 installations to SP1 level, by visiting Microsoft update.”


First off, "DO NOT REMOVE CITRIX". That is not a required step. Even if you saw that on some Citrix forum. You just need to install Visual Studio and Visual Studio SP1. To accomplish this:Install Visual StudioE:\1033_ENU_LP\x64\Setup\vs_shell.msi Install Visual Studio SP1E:\1033_ENU_LP\x64\Setup\VS90sp1-KB945140.msp
SQL Server Management Studio will now install without any issues. If you want to publish it via Citrix just point you app towards: "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"…

WINSXS Too Big?

How to shrink your Winsxs directory

If I had a nickel for every time I had a drive space issue due to the "Winsxs" directory.... I'd probably only have 50 cents. Right now I have a 14GB Winsxs Directory ( c:\windows\winsxs ) and need to do something with it. To fix the issue on your server, open up a command prompt as adminiistrator, and run the following command:

dism /online /cleanup-image /spsupersededThat will take some time depending on the size of it. I just went from 14GB to 7.7GB, and it took about 2-3 minutes to run. I am thinking it may be a good idea to just create a start up script with the dism command in it to automate this on reboots. On my PVS'd servers, I am just going to  setup a personality string to remove the winsxs directory on boot if the server is in standard mode.