September 8, 2015 asvignesh 2Comment

Recently My client have been having some issues with the vSphere web client plugins, they were getting #1009 error often Initially i googled and try to find the solution and root cause, many blogs are suggesting disable the installed plugins and try again. Later i read somewhere ( forget the link) , clearing cache would help This issue is because of the cached objects and it happened when you are navigating through the inventory in the vSphere 6.0, usually this error message pops up, you have to refresh your full web page Error 1009, click yes…

August 27, 2015 asvignesh

You can write the power shell modules through scripts (Script Modules) or through c# code (Binary modules) Script modules can have any valid PS code and save as .psm1 Binary modules can be any assembly that contain cmdlet classes (.dll) the assembly would be imported to powershell and use the commands In this post am writing about the how to create a Binary PowerShell module Open Visual Studio 2012 New Project -> Class Library In order to get the powershell runspace inside the programming language and to create the powershell commands we must add reference of “System.management.automation” dll The DLL…

August 8, 2015 asvignesh

I’ve been developing an automation scripts to provision and expand VMFS Datastore. Expand not Extent… I increased the storage volume size and need to increase the size of VMFS datastore without affording the downtime Here is the VIjava / YAVI Java code for expanding the datastore   https://gist.github.com/cd02090562b8cf2ee0e3  

May 28, 2015 asvignesh

When i was working on a WIX, i encountered some issue in installing the application  (REST based webservice), my service is not started and later identified that the port number which i set in the application is already used by another application To identify whether the port is in use, i used the Socket Class in Java, which is an endpoint for communication between two machines but i used for local machine to validate specified port public Socket(String host, int port) throws UnknownHostException, IOException https://gist.github.com/c830a8f4c94fa17d68a8 if the host is null it will set the host as loopback address

May 27, 2015 asvignesh

When I write blogs which explains something using code snippet, i used to add the code directly and blockquote it later i find some plugins which will render the code in the readable format with syntax highlighting, later i used to add code snippet in GIST and embed in post using some plugins, recently i got a chance to read this post  Which lets you to embed the GIST code in your blog post without any additional plugins with simple steps Login to WP_admin In WordPress admin console Goto Appearance > Editor > Select the current theme and click on functions.php Paste the below code snippet to your WordPress…

May 24, 2015 asvignesh 1Comment

Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work In this scenario developer can use Powershell To add DLL to the Global Assembly Cache Run the powershell PS C:\Users\Vignesh> [System.Reflection.Assembly]::Load(“System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”) GAC    Version        Location —    ——-        ——– True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50… PS C:\Users\Vignesh> $publish = New-Object System.EnterpriseServices.Internal.Publish PS C:\Users\Vignesh> $publish.GacInstall(“C:\Users\Vignesh\bin\asvignesh.dll”); To remove DLL from the Global Assembly Cache (Unregister) Run…

May 22, 2015 asvignesh 1Comment

VSS hardware provider can be initiate and test using DiskShadow Commands Open the Powershell and Enter Diskshadow PS C:\Users\Administrator> diskshadow Microsoft DiskShadow version 1.0 Copyright (C) 2013 Microsoft Corporation On computer: WIN-VigneshDev, 5/22/2015 12:06:35 AM DISKSHADOW> List the Hardware Providers DISKSHADOW> list providers * ProviderID: {74600e39-7dc5-4567-a03b-f091d6c7b092} Type: [2] VSS_PROV_SOFTWARE Name: Hyper-V IC Software Shadow Copy Provider Version: 1.0.0.0 CLSID: {3e02620c-e180-44f3-b154-2473646e4cb8} * ProviderID: {89300202-3cec-4981-9171-19f59559e0f2} Type: [4] VSS_PROV_FILESHARE Name: Microsoft File Share Shadow Copy provider Version: 1.0.0.1 CLSID: {fce59da7-7bac-40da-8d21-3e7311ba51cd} * ProviderID: {b57190af-4567-4dd0-ad8d51abd60b20d5 Type: [3] VSS_PROV_HARDWARE Name: Vignesh Test Provider Version: 6.2.9200.16384 * ProviderID: {b5946137-7b9f-4925-af80-51abd60b20d5} Type: [1] VSS_PROV_SYSTEM Name: Microsoft Software Shadow Copy…

May 22, 2015 asvignesh

There are lots of document and posts about GIT repos and commits, i wrote this like a note for future reference for me and my colleagues Firstly need to setup a bare repository SSH into the remote Unix machine and create a bare repo ssh git@asvignesh.in mkdir asvignesh_proj.git cd asvignesh_proj.git git init –bare Then move to the client machine, mkdir asvignesh_proj cd asvignesh_proj init git //Create Some files add * git commit -m “My initial commit ” git remote add origin git@asvignesh.in:/path/asvignesh_proj.git git push -u origin master Now your team can download / clone it git clone git@asvignesh.in:/path/asvignesh_proj.git

March 22, 2015 asvignesh

If you connected with VPN (Virtual private network), by default your internet will go through the remote gateway (ie. VPN gateway ), Here i explain how to access internet through your local gateway while you are connected to the VPN And the below steps applies only to VPN setups that use Windows default VPN connection and Windows Server RRAS as remote VPN server. The steps may differ if you are using some other My home gateway : 10.0.0.1 My VPN Gateway : 192.168.0.1 My VPN assigned IP : 192.168.0.210 To verify that i use tracert google.com, it goes to my…

March 14, 2015 asvignesh

First login to the ubuntu server via terminal or console To gain super user access, enter the following command and re-type the user password. sudo su – Type the following command to set the password for the Root user passwd root This will prompt user to enter the new password. and confirm password The terminal will return with Password updated successfully! Simply adding a password for root is not enough for Ubuntu 14.04+ Server. You need to edit /etc/ssh/sshd_config, and commend out the below line: PermitRootLogin without-password Add the following line: PermitRootLogin yes Then restart SSH: service ssh restart Yes…