TechOnTip Weblog

Run book for Technocrats

Archive for the ‘Tools’ Category

Self-Sign Certificates in Windows 2008 R2

Posted by Brajesh Panda on September 5, 2012

If you want to know how to generate SAN certificate read this article.

  1. If you don’t have IIS Web Server Roll installed
    1. Download old age IIS6 Resource Kit tool & install it
    2. Then from Program -> IIS Resource -> SelfSSL -> Click SelfSSL.exe
    3. It will open up below command prompt with an example; but you may fine tune as per your requirement.

  1. It will prompt you to overwrite the settings for site 1, type yes & enter
  2. It will throw an error saying “Error opening metabase: 0x80040154 “
  3. This error can be ignored due to IIS 6.0 not being installed on the server.
  4. If you browse local Cert Store of the computer, you will able to see the certificate.

Read the rest of this entry »

Posted in IIS, Tools | 1 Comment »

Getting event log contents by email on an event log trigger

Posted by Brajesh Panda on March 18, 2012

You want to get event log contents by email when an event triggers?? Here is a easy solution 😉

http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx

Posted in Tools | Leave a Comment »

URL Monitoring using SCOM 2007 R2

Posted by Brajesh Panda on October 17, 2011

Some good articles over here –

http://www.scom2k7.com/

Method 1: http://www.scom2k7.com/bulk-url-editor/

Method 2: http://www.scom2k7.com/custom-url-management-pack-by-russ-slaten/

Method 3: http://www.scom2k7.com/web-application-management-pack-template/

Posted in Tools | 1 Comment »

Remote Desktop Management Tools

Posted by Brajesh Panda on September 23, 2010

Tool: RDCMan.Msi

Windows Remote Desktop Connection Manager is a RDP management tool created by a MS engineer in-house. Provides easy way to manage your desktop connections. You can download this tool from

http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=4603c621-6de7-4ccb-9f51-d53dc7e48047.

https://docs.google.com/leaf?id=0B1bAb3a_g5TfMDA5MDE2ODItYmVhZS00MDNiLWJhYzgtYzYwNDZiOWQyMzhk&hl=en

However if you want more advance feature like adding console URLs etc. Try out commercial version of Vision App.

Posted in Tools | Tagged: | 2 Comments »

Creating a Replica or Prototype LAB

Posted by Brajesh Panda on June 10, 2010

Usage:

Production Change Validation/Pre-Production Staging/Training/Migration Testing

Early days it used to be pretty difficult to replicate the production environment in lab. Because imaging production servers used to be kind of pain, primary reason – different kind of hardwares available mostly in LAB environment. But now a day’s virtualization made life a lot simpler. You can copy Virtual Disk (VMDK/VHD) file of the production virtual machine to the LAB environment & bring it online. Here are my considerations I used to follow while replicating production environment in my LAB. Keeping in mind that each environment is unique, you may need to fine tune your steps accordingly. Well considerations will be mostly same for Physical or Virtual Environments.

Considerations to Build the LAB

Isolation

Just to note we are not going to extend our production environment to LAB. We are going to create a replica means all LAB servers will have same name, same security identity as the production. So we can’t keep these two environments communicating each other. We have to isolate the LAB environment from the production environment (network). Else you will be ending up in a mess due to name, computer security ID conflicts. We can use standard network security devices, switching devices, virtual switches, open source virtual security appliances & also a simple dual NIC machine (without routing enabled) to configure the isolation.

To create isolation you don’t need a separate server room or separate set of switches or servers! You can use same virtual environment using different set of virtual switches to achieve the same. Only thing you have to remember virtual machine identification name is unique in the environment.

Accessibility

You may ask if I keep my LAB environment isolated, how I will access. Well it is simple, while we are doing isolation you can only open RDP (3389) port using network address translation, you may like to create couple of LAB Virtual Desktops & use them as your door step to the LAB environment.

Authentication

Current days most of all Windows Servers & their (OS & App) authentication mechanism integrate with Active Directory environment! So 1st task is to replicate the same active directory environment in LAB; We can do this in multiple ways; Older ways is by doing backup restore in lab, however now a days you can have a Temporary Virtual DC in your Prod environment & whenever you need LAB DC refreshment you can shut this temporary prod virtual server & copy the VHD to LAB environment. It will carry all new objects to lab environment. You can remove LAB DC’s old virtual disk & connect this new virtual disk & start the virtual machine. However after it get started we have Seize FSMO roles & make this server FSMO role holder. As there is no other DC for replication you may like to do Meta data clean up to stop all replication errors. These entire configurations can be done using a script file which will reduce a lot of human administrative effort. Just to remember Production & LAB are two isolated environment, so any changes to production like user account creation, deletion, modification, password change or any other modification will not get propagated to LAB till that time you didn’t refresh the AD environment in LAB again.

If you have multiple layer of AD environment you like to build the complete FOREST hierarchy by copying top, lower level & peer level domain controllers following above process.

Provision App Servers

If your production application servers are virtual machines, you can follow the same process i.e. shut them down & copy their virtual disk file to LAB. If you can’t shutdown the server due to unavailability of downtime you can take snapshot of virtual machines (either hypervisor or storage level) & transfer respective files to LAB environment. It can be achieved in most of all virtualization environments like VMWare, Hyper-v, Xen, Parallel etc.

If your production application servers are physical servers, you may like to image them & restore those images in LAB environment. However under current technologies environment you may like to use physical to virtual environment conversation process to create virtual hard drives of physical servers. And after wards these virtual hard drives can be used in LAB environment. Choice between IMAGING or P2V depends on the requirement. Let suppose you want to do some stress or load testing in LAB using same kind of hardware & environment you may chose hardware to hardware IMAGING. If your computing environment supports you can also break Mirrored RAID array from production servers & move Hard drives to LAB.

If some of the application servers (like Exchange, SQL, Oracle) holding a lot of data & you don’t want to do include those data for image/p2v process, you can exclude them & later on can restore them. You can also build some AD integrated application like Exchange server using it’s native recover switch.

Provision Public Access

If you want to expose your lab applications (let suppose web apps) to users over internet, you may like to publish them using different IP address & different URLs (like www to www1 or wwwtest etc). To make this change you have to do necessary changes in your LAB servers.

Posted in Tools | Tagged: , , , , | Leave a Comment »

 
%d bloggers like this: