search
top
Currently Browsing: Powershell

Retrieving SmartQuota Data on Isilon with RestAPI and PowerShell

Introduction Many different tools available for administrators to manage storage devices and create reports and or monitors. With EMC Isilon we have RestAPI available to make calls for information. In this post we will cover how to use PowerShell to make calls to Isilon and get Smartquota data (path, thresholds for advisory & hard) and usage data and convert it from bytes to GB. The basis of the... read more

Installing and Running PowerCLI on Linux

Introduction The wait is over, you can now run PowerCLI on Linux. This is due to Microsoft PowerShell Core 6.x and .NET Core which includes the modules. According to labs.vmware.com, PowerCLI Core uses Microsoft PowerShell Core and .Net Core to enable users of Linux, Mac and Docker to now use the same cmdlets which were previously only available on windows. PowerCLI Core enables a multi-platform scripting... read more

Installing Microsoft PowerShell Core 6.x on Fedora 28

In an earlier post we covered the release and install of PowerShell Core 6 on Linux and OS X. In this post we will install PowerShell Core 6.1 preview 2 on Fedora 28. Download the rhel7 RPM for PowerShell Core 6.1 preview 2 from https://github.com/PowerShell/PowerShell/releases/tag/v6.1.0-preview.2.  Once downloaded the installation is a standard rpm install using dnf.  sudo dnf -y install... read more

Running and Installing .NET Core SDK 2 On Fedora 28

Introduction As part of the continuing effort to port .NET Core to other OSes, Microsoft has made .NET Core available on Linux. Being the geek that I am I have to try to get it to run on Linux, more specifically Fedora 28. In this post we will cover exactly how to accomplish it. Installing First thing is to download the latest... read more

How To Find A String in a File With PowerShell

Introduction So you have a need to have PowerShell to look for a string in a file and create and entry if it doesn’t find it and do nothing if it does.  For my example I am installing an application and I need to add three lines of content, but if it exists I do not want duplicate entries created. The Code There are probably other ways to achieve the goal, but my idea was to use Get-Content and read... read more

« Previous Entries Next Entries »

top