PowerShell Cookbook v2 Mirror

May 22nd, 2010 jpavleck No comments

In case you guys missed it, Lee Holmes had a ‘review’ copy of the upcoming PowerShell 2.0 Cookbook on the O’Reilly website for a bit. It has since been taken down in preparation for it’s August 15th release. It just so happens that when it was up it was under a Creative Commons license, which means I could distribute it. So I made a mirror on March 29th, and have now placed the book in its entirety online. Enjoy! You can also download it as a PDF if you’d prefer, with all links and such intact. If you like it, and I’m sure you will, then I highly encourage you to support Lee and buy a copy. And support me too and use my Amazon associate linked version. Or don’t support me, and use this link instead. Cheers!

Categories: Powershell Tags: , ,

Visio and Sharepoint 2010 Extensions for OpsMgr

April 21st, 2010 jpavleck No comments

From the MOMTeam

If you’re looking for a reason to roll out Visio 2010, have I got a doozie for you!

Using the new Visio 2010 add-in for OpsMgr 2007 R2 and the SharePoint 2010 Visio Services Data Provider, you’ll be able to create a visio-based view of a web application, a service, or even an infrastructure (Or even import one with the OpsMgr add-in for Visio 2007) then publish it to SharePoint 2010 as a web drawing.

Once you’ve done that, you’ll get a ‘live’ view of what your environment looks like – in the way you want to see it. Perfect for a big board application in a NOC!

And there’s some even neater things coming down the pipe. Check out this MMS 2010 keynote to see this and more in action!

And go pick up the downloads from Visio Toolbox while you’re at it!

Hopefully I’ll have a nice little tutorial about how to set all of this up, as I need to rebuild my OpsMgr environment several times over the next 30 days to ensure I’m ready to go for my next assignment! Can never have too much practice, right?

http://blogs.technet.com/blogfiles/momteam/WindowsLiveWriter/VISIOANDSHAREPOINT2010EXTENSIONSFOROPERA_13679/clip_image004_2.jpg

Powershellpoint

March 12th, 2010 jpavleck No comments

People are doing a lot of interesting things with Powershell. Joel Bennett is a magician of “Look what it can do”. But then I came across this post from John Robbins’ blog and was blown away – Powerpoint, in Powershell. What better way to show the power and flexibility of Posh than to do it in posh! Friggin brilliant!

031010_2010_StartPowerS2[1]

Silect Agent Explorer

March 5th, 2010 jpavleck No comments

Now this seems really promising! I’ve been involved with Silect Software since their inception years ago. They make some great tools – MP Studio in particular. But its costs has always made it a hard sell with clients, since there’s “already a way to author management packs in SCOM”.

But what there isn’t in OpsMgr is a quick, easy, and simple way to find out just what’s running on that server – until now.

Silect is announcing the Agent Explorer feature of the next version of MP Studio.
With Agent Explorer you’ll be able see exactly what rules, monitors, discoveries and management packs are running on a given server.

Interested? View the 5 min screencap and then email Randy R and tell him you want to try this out!

Silect-Agent-Explorer

Just a few things

March 3rd, 2010 jpavleck No comments

So my current contract has ended and while I have some spare time I’m going to be focusing fiercely (Well, fiercely for me anyway) on “Project KONOP”, the OpsMgr Web Service. I’ve even been so bold as to take the liberty in registering SCOMWS.com to host it.

And a new project, still unfinished – SystemCenterSearch.com. Hoping to make it a very basic ‘portal’ for all things system center – but mainly centered on the most recent issues, most common problems and solutions, and a simple search that looks through all of the system center websites for your query.

And for you Redditors out there I’ve made two new sub-reddits. /r/SystemCenter – dedicated to all things System Center related and /r/SCOM – dedicated to just OpsMgr stuff (Of which we know I’m kind of partial to).

So just a quick note to let you know what I’m working on. Now, I’m back to working on website front-ends and building a web service using a 5 year old book from MS Press heh.

Some slight re-organizations

January 28th, 2010 jpavleck No comments

You may notice the site will be in an erratic state for awhile. Just be patient. I need to re-organize and update a majority of the content as well as aggregate a lot of the fragments sitting out there.

This site will no longer be solely dedicated to Operations Manager. Instead, it will be focusing on automation & process improvement items – things to make our lives easier.

I’ll no longer be writing as the ‘elitist’ Senior OpsMgr Consultant which was my role for so many years – I’m now Joe SysAdmin. And as such, I’ll be tackling problems in that manner.

So except fewer Opsmgr posts, and more about dealing with opsmgr in the way most companies do; they pick Random System Admin guy, point a magic wand and say “You’re the OpsMgr Guy now”.

And this is how we’ll be solving problems from here on out.

Real, every day problems. A lot of them will clearly be hacks, but some of them will be quite wonderful.

On that note – if you’re a C# developer and would like to collaborate with me to get the OpsMgr Web Service to a state I feel is acceptable to distribute, please email me and lets start a dialog about all this.

Jeremy

Categories: Community, Pavleck.NET, SCOM Tags:

More Web Service Fun

January 10th, 2010 jpavleck No comments

Or you could also title this “How to talk your company into buying you a high end gaming rig for your desktop”

So I’ve been playing with this web service I’m writing for OpsMgr. I was doing a bunch of practical things with it, that you’d normally want to do with it – but then I thought screw that, let’s do something fun with it.

I like to play Team Fortress 2. I like to monitor things. Why not put them together?

Well friends, once you’ve made a web service that talks to the system, it’s fairly trivial to write something to take that information and put it somewhere else.

Let me demonstrate (And yes, you probably do want to click and view the larger version of this)

Team Fortress OpsMgr

Stay Tuned…. Video coming soon.

Categories: Fun, SCOM, SDK Tags: , , ,

No longer an MVP

January 3rd, 2010 jpavleck No comments

Alas, with the ending of my 12th month as a Microsoft Most Valued Professional, ends it, period. I didn’t get renewed.

Just as well though.

I could go on a slight diatribe about it all, but I’ll just keep it bottled in.

Until then, let me tell you, writing a web service is a lot harder than I thought – I might be eliciting the help of the community at some point. And yes, I am still slowly trudging along with it. It’s mainly been redesign redesign redesign. Though I’m hoping to have something ‘soon’.

Categories: Community, SCOM Tags: , , ,

On writing an OpsMgr WebService

November 11th, 2009 jpavleck No comments

Konop_screenshot

So a couple of weeks ago on the MVP mailing list someone asked the question on how to best integrate SiteScope with OpsMgr. Ever the SDK/Powershell lover I immediately replied that “Hey, there’s some code in the SDK about making a webservice, we’ll just do that and then you can write a script to talk to opsmgr”.1

Well, lo and behold I was wrong. It wasn’t actually sample code for a web service, but the code to talk to one you wrote.

So I started writing one.

Since I’ve started working again I haven’t had a whole lot of time to work on code – so I’ve been messing with this for about 30 mins or so a day. Right now it doesn’t really work very well, creating an XML web service is all new to me. But if you read my last post, you know that once this is finished you’ll have a system that you’ll be able to manipulate from any system that can talk to it, which is almost anything – Linux, Unix, Mac, etc.

So I’m going to keep at this, and hopefully have something to release to you guys eventually. I’ll start small, just a few functions, then slowly add to it over time.

So while it doesn’t even really work yet, I just couldn’t help but show you guys. I’m pretty exited about this!

  1. Yes, I know, there already exists a connector, but it’s old and isn’t optimal []
Categories: SCOM, SDK Tags: , , ,

PowerShell 2.0 Released and why that’s awesome

October 28th, 2009 jpavleck 1 comment

Yesterday, posted quietly as KB article 968929, Microsoft officially released PowerShell 2.0

Why is that cool? Because now you can get PoSh 2 officially deployed to all your servers. And you get to “officially” use the coolest CmdLet in the bunch: New-WebServiceProxy

Now, if you were to just read the help about it, it doesn’t really seem all that interesting:

Creates a Web service proxy object that lets you use and manage the Web service in Windows PowerShell.

But I’m going to give you an awesome secret. There’s a webservice out there unlike any other. If you want to sell PoSh to your coworkers, this is the way to do it.

What is it?

WebServiceX_logo

WebServiceX.Net provides On Demand XML Web Services for Financial,Distribution, Retail, Health Care, Manufacturing, Telecom, Government and Educational Industry.

So, what’s the mean to us?

Well using our shiny new cmdLet and a few lines of code we can instantly access data for over 70 different services. So really it comes down to “What do you want to do?”

Get the weather? No problem.

$usWeather = New-WebServiceProxy –uri “http://www.webservicex.net/WeatherForecast.asmx?wsdl”
$usWeather.GetWeatherByZipCode(55408)

BAM. Done.

Oh, you don’t live in the US? No worries either.

Lets see how the weather of a certain favorite MS employee is.

$weather = New-WebServiceProxy –uri "http://www.webservicex.net/globalweather.asmx?wsdl”

$weather.GetWeather(‘Amsterdam’, ‘Netherlands’)

Amsterdamweather

Wow, Stefan better grab a coat, it’s chilly there.

Ok, those were interesting in an ‘yeah, I’ve seen that before’ way – but what else?

A simple-as-pie domain whois? You know it’s there.

$whois = New-WebServiceProxy –uri “http://www.webservicex.net/whois.asmx?wsdl”

$whois.GetWhois(‘Pavleck.Net)

PavleckNetWhois

BAM!

Next?

How about searching Lloyd’s for the risk code for a given item. Sure, we got it.

$lloyds = New-WebServiceProxy -uri "http://www.webservicex.net:85/LloydsRiskCodeService.asmx?wsdl"
 $lloyds.GetLloydsRiskCodeDetailByRiskCodeDescription(‘OVERSEAS LEG TERRORISM PROPERTY’)

LloydsRiskCode

BAM!

Apparently it’s risk code is 6T. No idea what that all means.

I could go on all day – there is so much information out there. From Acceleration Unit Converters, Sunset and Sunrise times, RSS Readers, Translation services, Barcode generation, Text to Braille – hell, it’ll even let you send Free SMS messages and Faxes to anyone!

As you can tell, it’s a pretty expansive list, with many options and a whole ton of data. Not always what you want when you’re trying to do a little Posh-Fu. So that’s why I’m working on a little script for you to dot source, one that “PoShifies” these various services and gives you a lot more options on the command line – look for that soon!

Oh, and before I forget – be sure to check out the PowerScripting Podcast tomorrow night because you’re in for a treat! Me, Marco Shaw, Marcus Oh and Scott Moss will be giving a little panel discussion about PowerShell in OpsMgr – the Command Shell as we’ve come to call it. So come listen in, ask some questions, and maybe win some sweet sweet schwag!