Skip to main content

Posts

How to fit in the budget in orchestration projects (Part 1 - Naming standards)

Naming standards is a crucial thing in our job! This post is about time spent in naming standards, possible costs of developing naming standards and possible costs not to have a well-thought-out naming standard for the orchestration projects. First I need to say, our basic aim is to provide organization-wide uniqueness for a configuration. This is the first step in automation. If something about the naming standard is not well-considered, most probably the orchestration project will not fit in the budget. It will cost you a lot of reworks and you know how the story goes on after that particular point. In fact, on average every person/hour spent on qualitative work items saves 7.7 person/hours of quantitative work items globally. orchestration projects are not an exception! As every software project needs relatively constant requirements to decrease costs. Above all software projects, orchestration projects are the easiest one to solidify the requirements because responsi...
Recent posts

SAN Zoning in a Fancy Way

SAN Configuration is a time-consuming job. SAN zone configuration for one server lasted 1 hour or so. Now I will show you how it takes approximately 2 minutes including connecting :) I used FOS CLI and excel to create SAN zoning configuration scripts. I strongly recommend, instead of using the excel directly on your production environment, first test it in another environment. Since excel produces every SAN zoning possibilities, rule count can cause performance issues. In my production environment 3000 zone configurations are working perfectly well, but I didn't test in over 3000 zone configurations. Now, let's focus on the excel! You can download generalized excel from here You can see every SAN Switch and Storage combination has a tab at the bottom. There are 4 things to focus on, first one is the static data needed one time! This data is written in RED Please write down the aliases of Storage WWPN aliases (since tabs differ with storage data) and SAN Swit...

Copying files with permissions

Yesterday I experienced an interesting case. A bulk copy was to be done with permissions. But somehow we couldn't use Robocopy. First of all, please use Robocopy in situations like this. You can just paste this on cmd         Robocopy.exe <Source Path> <Destination Path> /COPY:DATS /E That's all!!! Now let's focus on "the die is cast" situation. I had to write this simple copy-permissions function to copy JUST THE PERMISSIONS! You can get the script from here , Github. Now I think I can share how to use this simple thing! On Powershell, type 2 mandatory fields which are string "sourcePath" and string "targetPath" and an optional switch "logEnabled"           .\Copy-Permissions.ps1 -SourcePath "<Source Path>" -TargetPath "<Target Path>" OR           .\Copy-Permissions.ps1 -SourcePath "<Source Path>" -TargetPath "<Target Path>...

Playing with registry keys

Hello Fellow System Administrators For some reasons, I had to keep track of some variables and instead of using environmental variables, I tried to write down these variables to registry. Basically I tried to write registry keys to \HKLM\Software\<Contoso> path. I think everyone passes by here knows which company Contoso.com is. Lets start with reading registry with get-childItem  hklm:\Software\Contoso Or Key properties like ( Get-ItemProperty  -Path  hklm: \ Software \Contoso). Test After reading key and key property, now we can check the key and create it on control if it doesn't exist. function   Get-RegistryKey {      param (     [ Parameter ( Position = 0 , mandatory = $true )][ String ] $RegProperty ,     [ Parameter ( Position = 0 , mandatory = $true )][ String ] $RegPath ,     [ String ] $RegKey = "."     )    ...

Network Scan via DHCP scopes

Hi, this post is about checking network reachability using DHCP scopes and ping. Despite network monitoring tools monitor all network, using DHCP scopes might be a useful technique for crosscheck. In order to do that, we can get scopes and find scope option with 003 ID (Router) $scopes = Get-DhcpServerv4Scope You can get scope router like this $scopeRouter = $scope | Get-DhcpServerv4Optionvalue -Optionid 003 -ErrorAction SilentlyContinue And you can acquire the result like $result = Test-NetConnection $( $scopeRouter .Value) You can find the script on GitHub https://github.com/ertugrulblt/PublicRepo/blob/master/Scan-ScopesReachability.ps1

First things first - Visual Studio Code and github integration

In this post, I want to show how to install the Visual Studio Code and show GitHub repositories. First download VS Code from Microsoft's site:  https://code.visualstudio.com/download# Let's start the installation. First, select the language Accept the license agreement :) We all know nobody reads it Choose the path Create a shortcut Please read the preferences, they are useful. I usually select everything here And then simply install. After the installation is completed, we can move on to VScode with complacence. Now we can select the repository folder to synchronize GitHub. File-->Add Folder To Workspace--> <Select folder to synchronize> Let's jump to git installation for a while. Download git and install it. Download git from  https://git-scm.com/download/win Apply for GNU license Select the folder to install, then leave the options below and move forward. Most of the time git shortcuts are not needed. Now s...

First post to say hi!

Welcome to my blog! I am a system administrator for 11 years and a solution architect for 3 years (In 2019 :) ) As my friends pissed off from not sharing anything I do with the public, I decided to create a blog as a system administrator and solution architect. And this is my test and welcome post. Have fun!