Use AWS Lex chatbot to start and stop the AWS instance

Use AWS Lex chatbot to start and stop the AWS instance

Greetings!! Technology is changing very rapidly now.  You can design, develop and make your application up and available within minutes(depends how quick you are at designing and coding). I came across LEX recently. It is very easy to create your chatbot within minutes. You can teach your chatbot and then integrate with other services to deliver the desired result. I have created a chatbot which helps you to start and stop AWS instance just by using chat. I have integrated this with Facebook chat, slack and twilio also. It is very easy. Let's…Read more …
Using variables in Terraform

Using variables in Terraform

I hope my previous article on Terraform was helpful and you were able to create your first AWS EC2 instance using Terraform. Further in this article we are going to talk about variables. Variables are important part of Terraform. There would be elements which would change or reused. Based on different requirements some decisions need to be made. Also, you don't want to keep your credentials in plain text files. Different AMIs need to used depending upon region and requirement. Variables are always helpful to remove ambiguity in code. In last article we used…Read more …
Re-execute User Data script for windows instance in AWS

Re-execute User Data script for windows instance in AWS

User data is one of the cool feature of AWS. You can define the code which want to execute immediately after instance is created. But once it is executed the feature is immediately disabled. If you will execute the user data changes want apply. If you want to execute code using user data in later, you need to make changes to “config.xml”. You can use below script to enable user data feature. Example, from the documentation: $EC2SettingsFile="C:\Program Files\Amazon\Ec2ConfigService\Settings\Config.xml" $xml = [xml](get-content $EC2SettingsFile) $xmlElement = $xml.get_DocumentElement() $xmlElementToModify = $xmlElement.Plugins foreach ($element in $xmlElementToModify.Plugin)  …Read more …

Getting started with Terraform

IT has been changes fast. We are moving from owning the resources to renting the resources in cloud. With this roles in companies are also changing rapidly. Administrators are learning to code now. It looks like in future Infrastructure is also going to be code. Write a program for new server. I started my career as an administrator, later I got interested in PowerShell scripting and now it looks like I am going to be full time developer. I am interested in a new tool recently which has captured a lot of market,…Read more …

Add windows machine to domain using PowerShell

Greetings !! Domains make management of machines are users very easy. Managing domains using PowerShell is like being a magician. Let us add windows machine to domain using PowerShell. Basic requirement for adding a machine to domain is domain controller should be reachable. To check that just try to ping domain from machine whic is to be added to domain. If you are not able to receive ping packets then you need to make changes to you DNS entries. Add you domain controller IP to your DNS. Once done, try to ping your…Read more …

High Availability mode in Citrix Xenapp and Xendesktop 7.x

In this new version we have this feature high availability mode. If all the delivery controller sites fail, the Virtual Desktop Agent(VDA) can be configured to run in high availability mode so that users can continue to use their desktops. With high availability mode enabled, user establishes direct ICA connection with VDA. By default if communication with delivery controller fails, high availability mode is initiated after 5 minutes which user can configure as per requirement. With high availability mode enabled, VDA tries to connect to delivery controller for 30 days. But in case…Read more …

Disable session printers in Citrix ICA sessions

Whenever administrator logs on to server, he can see all printers created from all the sessions running from server. Sometime there are application(published through Xenapp) users who gets printers from othere users in thir sessions. In order to stop printers from other sessions mapping into your administrative session, one registry tweak needs to be done. Location: HKEY_LOCAL_MACHINE\Software\Citrix\Ica\PrintingSettings REG_DWORD: AdminsCanManageClientPrinters Value: 0 This will disable connections of Session Printers during logon and reconnection. This registry can have different values depending upon various requirements. You can find other values and their impact here. Earlier in…Read more …

VMware Snapshot – What, How and Why?

Snapshots allow us to save state of virtual machine. Snapshot is not backup. Snapshot can be used when we need to make changes to virtual machines in our environment. We can save a particular state of VM and later we can either revert back to saved state or merge changes to new state. Snapshots should be taken properly, if not I will cause risk not for itself but to other machine in environment also. There are various stages in snapshot process. To begin with user clicks on VM and click on create snapshot.…Read more …

Spanning Tree Protocal and Portfast

Purpose of STP is to remove redundant paths in network. The redundant paths could be creating loops in network. Loop free path is created using root bridge. Loops in network are determined and links which are redundant are blocked. Algorithm used to execute this process is Spanning-Tree algorithm. In this protocol STA chooses reference point called Root Bridge, all available paths are determined in reference to this root bridge. If there is redundant paths then it chooses best path and block other paths. Messages are exchanged between switches to gather information from all…Read more …

Powershell script to fetch Citrix Xenapp server sessions information

There are different kind of sessions created on Citrix servers. we can get various information regarding sessions either from access management console or Powershell. In this article I am sharing a script I created to get session information for couple of servers. The command I user for session information is Get-XAsession. It would give information the sessions with various details. Below script fetches Sessiontype(ICA, RDP or console), server name and user's ID. add-pssnapin Citrix.* $report = Get-XASession -ServerName Server1 | Select sessionname, servername,accountname $report += Get-XASession -ServerName Server2 | Select sessionname, servername,accountname $a = "<style>"…Read more …