Sunday, 5 February 2017

Configuring tape library with backup exec server

Or, Storage has not been configured for the Backup Exec Server
Or, Backup Exec Error: Storage has not been configured for the Backup Exec Server

Descriptions: In this article, we will see how to configure tape library with backup exec server. Also, the tape library configuration is required the same way when you are encountered with the error ‘storage has not been configured for the backup exec server’.

This is very common scenario where you have done all the backed stuff to make sure tape library is reachable to backup exec server but you forgot to configure the drives, which will be used with backup jobs.

Environment:
Backup Exec Server Version: Symantec Backup Exec 2012
Tape Library: IBM 3537 TL
Tape Library Drive: IBM ULT3580-TD4


Error Screenshot:






Resolution/Steps:

Open Backup Exec Server Console

Go to “Storage Tab” and the Click on “Configure Storage” Option as highlighted in below screenshot:









Select “Tape Storage” and Click “Next” as shown below












Now Select “Configure Robotic Library Partition” Option and click “Next “as shown below:














Select your “Robotic Library” and Click “Next” as shown below:












Now check mark on “Reconfigure Robotic Library Partition” and click “Next” as shown below:












Now you can configure your tape library storage partitions as you wish (I configured my library partitions as shown below for your reference) and Click “Next” > Click Ok if prompt












Now, library will configure partitions on it’s own, wait till the configurations completed successfully.

IMP Note: If you have some backup job scheduled with specific partitions, then you must check your all backup job and re-assign library partition to each backup job.

Cheers…..please write me back if you have any query or feedback…

Saturday, 4 February 2017

Virtual Machines name, snapshot name, and snapshot descriptions export to CSV file –VMware vSphere PowerCLI

Or, Virtual Machines snapshot report export to csv file using VMware vSphere PowerCLI.
Or, Finding Virtual Machines with snapshot details using VMware vSphere PowerCLI.
Or, vSphere PowerCLI command to get VMs list with snapshot name and descriptions.

Descriptions: Remember the storage optimization task?, the very first thing we do is we check for the VMs having snapshot. Sometime we end up with having few VMs with very large snapshot data size.

If you have 10-20 VMs, its easy for you to check each VMs individually to see which are the VMs having snapshot but what if you have 100 or 1000 VMs?? Its not possible or even not a wise decision to check each and every VMs individually for this reason.

Therefore, here you have some cool stuffs to do in vSphere PowerCLI. Just few sequential command arrangements and you are done. You can have the list of VMs having snapshot on the CLI dashboard or you can choose to export the list of such VMs in CSV file.…

Steps: Connecting vCenter Server with vSphere Power CLI
Open vSphere PowerCLI > Type the command below and hit enter

Connect-VIServer IPAddressOfvCenterServer












Enter the vCenter Server credentials and say OK (in my case the user name is ‘administrator@vsphere.local)’





















Steps: Getting VMs list with snapshot details on vSphere CLI dashboard
Once you connected successfully with your vCenter server, type the command below and hit enter. Now you will have the VMs List, Snapshot Name Details, and Snapshots Descriptions details as highlighted in below screenshot.

Get-VM | Get-Snapshot | select VM, Name, Description













Steps: Exporting VMs list report with snapshot details in CSV file
To export the VMs list with snapshot details in a CSV file, type the below command and hit enter

Get-VM | Get-Snapshot | select VM, Name, Description | Export-Csv D:\temp\testreport.csv






Note: Please change the Export CSV path to your preferred folder path.

Upon successful completion of the command, you would be having csv report details like below:





Updated 4th Feb 2017
You can try few more commands as given below for detailed report:

To get VM list with VM Name, Snapshot Name, Snapshot Description, Snapshot Creation Date
Get-VM | Get-Snapshot | select VM, Name, Description, Created

To get VM list with VM Name, Snapshot Name, Snapshot Description, Snapshot Creation Date, Snapshot Size in GB
Get-VM | Get-Snapshot | select VM, Name, Description, Created, SizeGB

Cheers, please write me back if you have any query or feedback.

Sunday, 29 January 2017

Data Backup/Restoration Very Slow in Symantec Backup Exec.

Or, Data Restoration Job Very Slow in Symantec Backup Exec Server. 
Or, Backup/Restoration Job Read/Write Speed Very Slow.

Descriptions: Its normal behavior of windows machines. Even if you have faster network, the read/write speed may be slower depending upon the Ethernet/LAN adapter level Speed and Duplex selections. If you have 1gbps connection, you should not have it set to 10mbps etc..
You should set this speed and duplex settings on both Backup Server and Backup Agent/Client.

Solution:
Correct the Speed & Duplex settings for LAN adapters on both servers (Backup Exec Server and Remote Agent Server).

Steps: To correct the settings:

Go to Run > Type ncpa.cpl > hit Enter > Right Click on LAN Adapter > Go to Properties > Select Internet Protocol Version 4 (TCP/IPv4) as below given reference screen shot:
















Now Click on Configure button > Then Click on Yes if prompted (Screen shot given below for reference):














Go to Advance tab > Under Property section, select Speed & Duplex > Under Value section, select 1.0 Gbps Full Duplex > Now Click OK

























Once you have configured “Speed & Duplex” on both the servers (Backup Server and Remote Agent Server), your data backup and restoration job will be speedup. 

More than 5GBof data rate (Read/Write) is archive in my case.

For example, you can see the below screen shot:





Cheers, please write me back if you have any query or feedback on this.

Understanding Active Directory, Domain Controller and Domain.

Or, Logical Difference between Active Directory and Domain?
Or, Logical Difference between Active Directory and Domain Controller?

Descriptions: Some time its little confusing to differentiate between domain, domain controller and active directory. It is because, all these terms are used knowingly or unknowingly to describe other related concepts.

To make it simple, I would say…. Domain is a logical boundary with some name like xyz.com, abc.net etc… managed by Active Directory services which contains all the objects and database information and these entries, database, objects and logical boundaries are installed or configured on a server, which is known as Domain Controller.

Let’s see the below examples:

Active Directory: Active Directory is a directory service that stores information of all AD objects like users, computers and OU etc…  NTDS and SYSVOL are some important database directories, which are used by active directory to store all information.

Domain: Domain is a logical boundary of your active directory environment, which gives a single/multiple name interface to access your active directory database information. It works under a common name, database and policy...

Example: My domain name:- xyz.com and xyz.abc.com have unique logical name but running from same AD database with domain and sub-domain logical boundary of domain concepts.

Domain Controller: The server, which hold the Active Directory service installed in it, known as Domain controller server.

Example: You have a server having nothing installed its just a server. Once you installed Active Directory services on this server, it becomes Domain Controller server.


Cheers, please write me back if you have any query or feedback on this.

Monday, 23 January 2017

How to check FSMO roles using CMD or GUI?

Or, How to check FSMO roles holders in a domain?

Descriptions: In this article we will see, how to check FSMO roles and role holders domain controllers in the domain. Using CMD, its job of cone command and it can be executed from your local machine without login in to any domain controller servers and another way is to check it using GUI where you should be having access to login your domain controllers.

Steps: Checking FSMO roles using CMD
Open CMD (run as administrator)




















Type the command given below and hit enter

netdom query fsmo










Steps: Checking FSMO roles using GUI (Domain Level Roles)

From the server manager’s Tool option select Active Directory Users and Computers















Right click on your Domain Name > Select Operations Master














Now you have all the domain level FSMO roles here. You can click on each tab to check who is having which FSMO role.

























Steps: Checking FSMO roles using GUI (Forest Level Roles)

From Server Manager’s tool option, select Active Directory Domain and Trust











Right Click on Active Directory Domain and Trust > Select Operations Master















Here you have the Domain Naming FSMO role

















Now to check the Schema Master Role, Run > MMC > Add/Remove Snap in > Select Active Directory Schema > Click OK to add the snap-in > Right Click on the Active Directory Schema > Select Operations Master













Here you have the Schema Master Role holder details






















That’s all guys, cheers!!
Please write me back if you have any query of feedback.

Sunday, 22 January 2017

Active Directory Schema console is not visible in Domain Controller

Or, Where is Active Directory Schema console in Domain Controller server?
Or, How to add Active Directory Schema console snap-in?
Or, How to register Active Directory Schema in domain controller server?

Descriptions: First things first, you may not be able to see the Active Directory Schema console on your domain controller server because its hidden by default and required to be registered first before you can access the schema console. After registration of Schema, you will have to add the snap in from MMC to access the console of Active Directory Schema.

Don’t worry, it’s not a big deal. Just a single command and few GUI steps and you are done. J

Steps: Schema Registration

Open CMD (run as administrator)




















Type the command given below and hit enter > Click OK
regsvr32 schmmgmt.dll














Steps: Adding Active Directory Schema Snap-in Console

Go to Run > Type mmc and hit enter > Click yes if prompted on pop-up window
















Go to File menu > Select Add/Remove Snap-in





















Select Active Directory Schema > Click on Add > Click OK


















That’s it, here you have the Active Directory Schema Console






Cheers, please write me back if you have any query of feedback.

Managing Global Catalog Servers best practices

Or, should we keep Global Catalog and Infrastructure Master server roles on one Domain Controller?
Or, is it good have Infrastructure master role and Global catalog server role in one Domain Controller server?

Descriptions: This is one of the most common and most ignored scenario where either people don’t take it seriously or don’t design the Active Directory domain in an efficient manner. When you are running too many DCs in your large domain environment, you must check for these common best practices as to where to keep your FSMO roles holders and how to design their architectural placements.

Guys, in a small domain environment you may not face challenges where you have one DC and one ADC, but if you have more than one ADC in your domain environment, you should never keep Global Catalog server and Infrastructure Master role on same DC/single server.

It’s because, there may be many issue while replicating new changes at Infrastructure level due to priority and communication conflicts between Infrastructure master and global catalog servers. Global Catalog server automatically receives all updates happened in the forest. Infrastructure master role then takes these updates from Global catalog server and replicate it to cross domain DCs.

If you have any query or feedback on this, please write me back.

System State Backup in Windows Server 2012

Or, How to take System State Backup of Windows Server 2012 DCs?
Or, How to run system state backup using wbadmin utility?

Descriptions: As NTBACKUP utility is no more available in Window Server 2012 Operating System, you still have WBADMIN to perform system state backup of your servers. WBADMIN utility is part of Windows Server Backup feature in windows server 2012.

Windows Server Backup Feature can be installed using Server Manager’s Roles and Features installation wizard.

Yes, please!! You must install this feature before you think of using WBADMIN for system state backup.











Steps: Using WBADMIN for system state backup

Open CMD (run as administrator)




















Type the command below and hit enter

wbadmin start systemstatebackup -backuptarget:E: -quiet

you can choose the backup target as per your scenario. In my case, I am using E:\ drive as a backup target.

The Backup will be initiate now, wait till it completed successfully.















Cheers, Please write be back if you have any query or feedback.

Saturday, 21 January 2017

Error ‘the value for option backuptarget is missing’ on Windows Server 2012

Or, WBADDMIN Error (Systemstatebackup): the value for option backuptarget is missing

Descriptions: Even when you are trying correct commands to perform systemstate backup on windows server 2008 or 2012 using wbadmin (e.g. the command ‘wbadmin start systemstatebackup -backuptarget:E: -quiet’ is correct but ends with error), it is being encountered with error ‘the value for option backuptarget is missing’.

Guys, if you don’t do, my suggestion is, always think of reboot after installing any role, feature or components on windows operating systems as per your convenience. No matter the type of installation is required reboot or not. Anyways, it’s your choice at all. J

Possible Reason: You have recently installed powershell along with windows backup feature and trying to perform systemstate backup without taking server reboot after the installation of this feature. Remember, I said always think of taking reboot after installing anything on windows operating systems.

Solution/Workaround:  Reboot your server > run CMD as administrator > try to re-execute the command... it should work… in my case it worked well…


Wait till the backup is completed successfully.














Cheers...please write me back if you have any query or feedback.

Creating date wise log file in Robocopy backup.

Or, How to take backup of shared or local folders using Robocopy?
Or, Robocopy command to take backup and exporting backup log files date wise.

Descriptions: Using Robocopy for shared folders or local folders backup is one of the good way to perform flat files/data backup in Windows. It’s an inbuilt utility in windows by Microsoft, no need to download or purchase it separately.

Normally, administrators do use robocopy with source, destination and export logs arguments in the robocopy command and rename the log files manually everyday... that’s waste of time frankly... J

Here in this article, we will see how we can set the robocopy command to take backup of data, export log in a txt file and keep the log file name with execution date included. We are going to get it done with batch script..

e.g. If the log file name is fileserverbackup.txt, it should be exported with name fileserverbackup-YYYYMMDD.txt

Please note, I have used some special switched to for best backup output. you should understand the behaviour of special switches before using them.

You can use Robocopy /? for more help on robocopy command and switches.

Commands and batch file:

General command with no special switches

robocopy C:\TestSourceFolder E:\DestFolder

Customized command as per suitable requirements with some special switches

robocopy C:\TestSourceFolder E:\DestFolder /E /ZB /SEC /R:3 /W:3 /TEE /UNILOG+:C:\FileServerBackup.txt

the above mentioned command will take backup well, but it will create a log file FileServerBackup.txt with no date inserted in the file name.

Recommended:

Batch script to take backup using robocopy command and then creating log files every day with date specified/added in the file name.

--------------------------------------------------------------------------------------------------------------------------
@echo off
echo wscript.echo year(date) ^& right(100 + month(date),2) ^& right(100+day(date),2)  > "%temp%\dateparts.vbs"
for /f "tokens=1 delims=" %%a in ('cscript //nologo "%temp%\dateparts.vbs"') do set yyyymmdd=%%a
echo Today is %yyyymmdd%
robocopy C:\TestSourceFolder E:\DestFolder /E /ZB /SEC /R:3 /W:3 /TEE /UNILOG+:C:\FileServerCopy-%yyyymmdd%.txt
--------------------------------------------------------------------------------------------------------------------------

Copy and paste the above given script in a text files > save as filename.bat > use this bat file in windows task scheduler.

That’s it, backup will be executed and file name will be created date wise automatically. Please make sure you tested the script carefully and deploy[ in production if it works 100% as per your requirement.

If you have any query or feedback, please write me back...

Understanding FSMO role in active directory and impact when unavailable

Or, FSMO Roles in AD (Active Directory) – Explained
Or, Active Directory FSMO Roles Explained
Or, FSMO roles functions and impact when unavailable

Descriptions: FSMO stands for Flexible Single Master Operation. FSMO roles are one of the critical component of Active Directory which helps a large Active Directory domain environment to be managed in an efficient way in terms of internal communication, availability, accessibility and replications.

FSMO have 5 roles and these roles are categorized logically in two categories, Domain Level roles and Forest Level roles.

FSMO Roles and Categories:











FSMO Roles functions and impact when unavailable:

Schema Master Role: The schema master role holder Domain Controller is responsible to control all updates and modifications to the schema (e.g. user name, company name, email address, department name etc..). Once the schema update is completed, it is replicated from Schema Master domain controller to all other domain controllers in the domain network or forest. To update the schema of a forest, you must have schema admin privileges.

Schema Master role is Forest Level role and there can be only one schema master in a forest.

Impact, if Schema Master Domain Controller is down? Modification to schema objects may not be replicated to other domain controllers in your network. Addition of any new application or server which requires schema modification like, Exchange server, Lync Server etc. will not take place.

Domain Naming Master Role: The domain naming master role holder domain controller is responsible for controlling the addition and removal of domains in the forest. This domain controller is the only one which can allow addition or removal of domain from in the forest.

Domain Naming Master role is Forest level role and there can be only one domain naming master in a forest.

Impact, if Domain Naming Master Domain Controller is down? You can not add new domain in the forest and also you will not be able to remove exiting domains from the forest. Unless you have domain addition and removal kind of activities, there is going to be no impact on your running production.

RID Master Role: The RID Master role holder domain controller is responsible for assigning unique identity number to all the objects created in Active Directory. Whenever any object created and joined in Domain, RID master domain controller is responsible to assign a unique identity number to that object whether it is a computer, printer, user or group etc...

The RID Master role is Domain Level role and there can be more than one RID Master in a forest.

Impact, if RID Master Domain Controller is down? When this domain controller is down, there is no quick impact going to take place because all the Domain controllers by are assigned with 500 RID pool. Even if the RID Master is down, you would be able to create or add new objects in AD till the time you have the RID pool of 500. Once this RID pool is completely occupied, you would no more be able to create or add any additional objects in AD.

To check how many RID pools are available on your domain controller, you can use below command (search for the value RIDManager term once the command is completed).

Dcdiag /test:ridmanager /v

Infrastructure Master Role: The Infrastructure Master role holder Domain Controller is responsible for cross-domain reference check.

Example: We have a security group ‘Finance’ and the user ‘Test-User-1’ is member of this security group. When the user Test-User-1 access the resources where Finance security have access, Infrastructure master role is responsible to validate this information with the help of Global Catalog server.

If any objects or user’s information changes take plane in the domain, Infrastructure master role is responsible for replicating this information to cross domain DCs.

Infrastructure Master role is Domain Level role and there can be more than one Infrastructure master role in a forest.

Impact, if Infrastructure Master Domain Controller is down? Objects changes and updates may not be replicated to cross-domain DCs. Means, if you have shared folder access on a folder where a security group from cross-domain DC is having access and you are just member of that security group, you may not be able to access the folder or it’s possible that new modification in access rights will not be replicated to other DCs.

PDC Emulator Role: PDC Emulator FSMO role holder Domain Controller is responsible for replication between NT4 DCs. This DC also hold the password update and replication authority. When any password changes or update occurs in the domain, PDC emulator is responsible for updating the password update information to all other DCs in the forest.

Authentication failures/success, logon attempts, accounts lockout status, group policy changes or modifications preferably updates on the PDC emulator domain controller first.  This DC also handles the primary Time Server (NTP Server) responsibility in the domain environment. Unless you have modified and dedicated time server in your network, PDC emulator domain controller is by default responsible for replicating time update to all domain joined machines or to the machine where it has been pointed specifically.

PDC Emulator role is Domain Level role and there can be more than one PDC emulator in a forest.

Impact, if PDC Emulator Domain Controller is down? This is the one Domain controller which is going to impact sooner than other. Time Sync across domain computers, new password changes update, group policy updates are not going to work till the time this Domain Controller is down. All existing things should work fine but any new changes and update is not going to take place.

Updated: 10-04-2018

Some reference useful KBs from Microsoft

https://support.microsoft.com/en-in/help/223346/fsmo-placement-and-optimization-on-active-directory-domain-controllers

https://support.microsoft.com/en-in/help/197132/active-directory-fsmo-roles-in-windows

Cheers, Please write me back if you have any query or feedback.

Friday, 20 January 2017

Increasing/reducing RAM and CPU capacity of a VM after taking snapshot.

Or, is it possible to increase RAM/CPU capacity of a VM after taking snapshot?
Or, is it possible to reduce RAM/CPU capacity of a VM after taking snapshot?

Descriptions: If wondering whether CPU/RAM capacity of a virtual machine can be increased/reduced or not, the answer is Yes. You can reduce or increase the Memory as well as CPU capacity of a VM even after taking snapshot of the VM.

Logically, when you take snapshot of the Virtual Machine, the CPU and Memory state of the Virtual Machine get preserved. Means, no matter whether you want to increase or decrease the CPU/RAM capacity of the VM, whenever you will revert the snapshot the earlier configurations and status will be restored.

Test Case: When I tested this concept in my lab environment, I found that I am able to change the CPU and RAM configurations (increase or decrease) after taking snapshot of the Virtual Machine. When reverting the snapshot, the original status of the Virtual Machine is enforced.

No, No, No, you can’t increase or decrease drive capacity of any Virtual Machine after taking snapshot. J


Cheers, Please write me back if you have any query or feedback.

Cisco Nexus 5672UP-IOS and Kickstart Version Upgrade Process.

Or, Cisco Nexus 5672UP-IOS and Kickstart Version upgrade without losing configurations.

Objective
To Upgrade the BIOS and Kickstart Version for Cisco Data Center switches through USB in HA Mode. (Primary and secondary Cisco Nexus 5000 DC Switches).

Stage-1
There is a need to upgrading the Cisco N5K switches OS and Kickstart version with the following parameters.

1)      Download the current Backup of the Core Switches and save to the central location (keep at least two copies of the Backup).
2)     Download the Nexus latest Version of N5K-OS from Cisco Support Portal.
3)     Cisco Nexus C5672UP Data Center Switches upgrade process activity performs in Three Stages
{Upgrade path is 7.0(1) N1 (1) -> 7.0(8) N1 (1) -> 7.2(1) N1 (1) -> 7.3(0) N1(1)}.

4)     Upload the Kickstart version 7.0(8) N1 (1) and System OS: 7.0(8)N1(1) and Installed. Therefore, we have checked switch is working or not if working, then start another stage process.

5)     Upload the Kickstart version 7.2(1)N1(1) and System OS: 7.2(1)N1(1) and Installed. Therefore, we have checked switch is working or not if working, then start another stage process.

6)     Upload the Kickstart version 7.3(0)N1(1) and System OS: 7.3(0)N1(1) and Installed. Therefore, we have checked switch is working or not if working, then start another stage process.

7)     Once the upgrade to the latest version of N5K-OS is completed, then we can verify all configurations are fine and all commands are working or not.
8)     If all configurations are done, then connected all cables to the switch.
9)     Follow all steps from (Top to Bottom) to upgrading the  another switch.


Example:-

Note: - All Files copying from USB drive :

1. Upgrade Path for N5K-OS and Kickstart Version 7.0(1) N1 (1) -> 7.0(8) N1 (1)

(Config) #copy usb1:n6000-uk9.7.0.8.N1.1.bin bootflash:n6000-uk9.7.0.8.N1.1.bin

(Config) #copy usb1:n6000-uk9-kickstart.7.0.8.N1.1.bin bootflash:n6000-uk9-kickstart.7.0.8.N1.1.bin

(Config) #install all kickstart bootflash:n6000-uk9-kickstart.7.0.8.N1.1.bin system bootflash:n6000-uk9.7.0.8.N1.1.bin

Note: Delete the Old N5K-OS and kickstart Version for creating the Space on Switches 

Commands/Proceedures:
(Config) #delete bootflash:n6000-uk9.7.0.1.N1.1.bin
(Config) #delete bootflash:n6000-uk9-kickstart.7.0.1.N1.1.bin

2. Upgrade Path for N5K-OS and Kickstart Version 7.0(8) N1 (1) -> 7.2(1) N1 (1)

(Config) #copy usb1:n6000-uk9.7.2.1.N1.1.bin bootflash:n6000-uk9.7.2.1.N1.1.bin
(Config) #copy usb1:n6000-uk9-kickstart.7.2.1.N1.1.bin bootflash:n6000-uk9-kickstart.7.2.1.N1.1.bin
(Config) #install all kickstart bootflash:n6000-uk9-kickstart.7.2.1.N1.1.bin system bootflash:n6000-uk9.7.2.1.N1.1.bin

Note: Delete the Old N5K-OS and kickstart Version for creating the Space on Switches

Commands:
(Config) #delete bootflash:n6000-uk9.7.0.8.N1.1.bin
(Config) #delete bootflash:n6000-uk9-kickstart.7.0.8.N1.1.bin

3. Upgrade Path for N5K-OS and Kickstart Version 7.2(1) N1 (1) -> 7.3(0) N1(1)

(Config) #copy usb1:n6000-uk9.7.3.0.N1.1.bin bootflash:n6000-uk9.7.3.0.N1.1.bin
(Config) #copy usb1:n6000-uk9-kickstart.7.3.0.N1.1.bin bootflash:n6000-uk9-kickstart.7.3.0.N1.1.bin
(Config) #install all kickstart bootflash:n6000-uk9-kickstart.7.3.0.N1.1.bin system bootflash:n6000-uk9.7.3.0.N1.1.bin

Note: Delete the Old N5K-OS and kickstart Version for creating the Space on Switches

Commands:
(Config) #delete bootflash:n6000-uk9.7.3.0.N1.1.bin
(Config) #delete bootflash:n6000-uk9-kickstart.7.3.0.N1.1.bin

Your feedback and suggestions are welcome..