Category: Script

Daylight Saving 1

Iran Daylight Saving on March 2023

The government of Iran has announced that daylight savings will not be observed from March 2023. But apparently, this issue has not been properly coordinated with international institutions. So this was cause of many issues on public services in Iran. We did some updates and configuration changes before 22nd March 2022 and I want to share the story with you.

PowerShell 1

BIOS Configuration: Best Solution for HPE G10/G11 Servers by PowerShell

Last post was about configuring HPE smart array and create logical drives on HPE G10 servers by HPE Scripting Tools. This post is about configuring HPE G10/G11 via PowerShell by using HPE BIOS cmdlets. As I have mentioned in the last post, there are also cmdltes available for Smart Array, iLO and OA which helping administrators to configure and deploy servers faster than regular ways and without no additional cost. In order to configure HPE servers by script, you need to download and install HPE Scripting Tools: Scripting Tools for Windows Sample BIOS Script The below script is a sample for configuring HPE DL580 G10: The above script needs same credential on multiple servers if you want to applying configurations on multiple servers at same time. Also don’t run script on server that server has production server, it has been created for first deployment. Replace “iLO IP 1” and others with your servers’ iLO IP addresses. Further Reading Why Device Bay IP Doesn’t Change in HPE BladeSystem? [Script]: Enable/Disable vMotion on VMKernel Ports via PowerCLI Configure NTP on iLO via HPE Scripting Tools How to Create Logical Drive on HPE DL580 G10

PowerShell 1

PowerShell: How to Create Logical Drive on HPE G10

I have published some posts about HPE Scripting Tools for PowerShell to automating physical server preparation and deployment services. The tools helping administrators to deploying services on HPE servers faster than normal ways, also there is no additional costs, just buy a PowerShell book! The scripting tools provides PowerShell cmdlets for configuring BIOS, iLO, OA and Smart Array. The tools are available for download as free tools on HPE website. Scripting Tools for Windows The smart array cmdlets are compatible with HPE Generation 10 and not all smart array adapters. Read the user guide document to find list of compatible smart array adapters. The tools will help to configure smart array adapters on multiple servers very faster than normal ways or other automation tools. Of course, the tools is not comparable with HPE OneView. Sample PowerShell Script to Create Logical Drive with 2 Drive The below sample will create two logical drives from 4 drives on multiple servers: Same administrator account will be required on the servers and you can change “iLO IP” with your iLO IP addresses. Logical drives will be made as RAID 1. The script has been tested on HPE DL580 G10. You need to install HPE...

PowerCLI 0

PowerCLI: Best Way to Run Invoke-VMScript and Challenges with Linux Guest

There is some challenges for passing Linux commands with parameters to guest OS. In most of cases, administrators have to pass commands as a PowerShell variable also I had some bad experiences, as an example: run “Sed” with some special parameters. I have to use lot of double quotes and single quotes to pass command via Invoke-VMScript to guest OS.