How to find the name, when you only know the MAC?

July 9th, 2009

So, after the mess this weekend (see my twitter)… I had an IP conflict on my vCenter test server… Luckily Server 2008 told me the MAC of the offending machine. Which just happened to have a VMware Mac :)

I busted out the trusty PowerCLI and this is what I came up with!

1
2
3
4
5
6
7
8
9
10
11
12
 
$report =@()
Get-VM | Get-View | %{
 $VMname = $_.Name
 $_.guest.net | where {$_.MacAddress -eq "00:50:56:4b:29:33"} | %{
        $row = "" | Select VM, MAC
        $row.VM = $VMname
        $row.MAC = $_.MacAddress
        $report += $row
  }
  }
$report
Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Ping.fm
  • Slashdot
  • TwitThis
  • Yahoo! Bookmarks

Trying to figure out how many luns we are using

June 3rd, 2009

so here at work, we use extents… LOTS of them. the nazi storage admins will only give us 200gb luns at a time…. (i dont believe in extents and plan on outlawing them) so i needed a good reason to argue with the storage admins.

the only way i could think of was that we are hitting the maximum number of luns, so i grabbed powershell and got to work!

Note: i used the -notlike “dell” function to escape the built in dell array controllers… modify to suit your needs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
foreach ($cluster in Get-Cluster)
{
# Make sure this is returned as an array.
$vmhosts = @($cluster | Get-VMHost)
 
if ($vmhosts.Length -eq 0)
{
# No vmhosts in this cluster, move on to the next one.
continue
}
 
$firstHost = $vmhosts[0]
 
foreach ($scsilun in ($firstHost | get-scsilun | ? {$_.Vendor -notlike "*Dell*"} | measure-object))
{
# Output results
"" | select  @{Name = "Cluster"; Expression = {$cluster.name}},@{Name = "Host"; Expression = {$firsthost.name}}, @{Name = "NumLunz"; Expression = {$scsilun.count}}
}
}
Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Ping.fm
  • Slashdot
  • TwitThis
  • Yahoo! Bookmarks

has anyone ever used Tek-Tools Profiler product?

June 2nd, 2009

so i downloaded the eval, 20min later i get an email saying that i downloaded the wrong version… and was sent a link to the “correct, up to date” version and a license key for eval.

“Thank you for downloading the VMWare appliance of Tek-Tools Profiler. The appliance is currently an old version and fairly limited. I would like to get you the latest and greatest of Profiler to make your testing much more effective. To do so please send me an IP and MAC address of the server you wish to install on, it can be…

* Windows, Linux or a VM (not the VC server)
* 2+ GB of mem
* 10-15 GB of disk
* No other instance of MySQL

Once I have the IP and MAC I will provide a license key and download information. I will be your main contact here at Tek-Tools and you will have our full support throughout your evaluation.”

included in the download, was a fancy schmancy pdf they called Profiler_Installation_Guide.pdf. Included on the last page of the file was this great reading material:

“Filename: Profiler_Installation_Guide
Directory: \\192.168.15.99\Share\Santhya Backup\Profiler 4_8_3\Profiler
Documentation 4_8_3
Template: C:\Documents and Settings\Santhya\Application
Data\Microsoft\Templates\Normal.dotm
Title: OVERVIEW
Subject:
Author: Nagaraj
Keywords:
Comments:
Creation Date: 7/1/2008 6:47:00 PM
Change Number: 2,167
Last Saved On: 4/24/2009 1:52:00 PM
Last Saved By: user
Total Editing Time: 1,943 Minutes
Last Printed On: 5/5/2009 3:36:00 PM
As of Last Complete Printing
Number of Pages: 179
Number of Words: 36,216 (approx.)
Number of Characters: 206,436 (approx.)”

fun… fun

in these great instructions they dont tell you how to even use their app, what port it runs on or anything.
so i go through the install, quite simple install in fact…
the only thing is that they dont tell you what to do once your done!  so i figured from pulling a netstat, that i’d point a web browser at the ports and away i’d go right?
Im guessing https://www.profilerhost:4319/ but I get:

 

Data Transfer Interrupted
The connection to 192.168.19.129:4319 was interrupted while the page was loading.
The browser connected successfully, but the connection was interrupted while transferring information.  Please try again.     
 Are you unable to browse other sites? Check the computer’s network connection.
 Still having trouble? Consult your network administrator or Internet provider for assistance.
The connection to 192.168.19.129:4319 was interrupted while the page was loading.

And if I go to http://www.profilerhost:4319/ I get:
HTTP ERROR: 403
Forbidden
RequestURI=/
Powered by Jetty://

So I gave up, I have some scripts I need to finish, 10 new ESX hosts to build… needless to say, i canceled the webex appt to discuss further.

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Ping.fm
  • Slashdot
  • TwitThis
  • Yahoo! Bookmarks

Welcome to PowerSphere!

June 2nd, 2009

With all of the ramblings about the new marketing for vSphere, I just had to name this blog something close. A second runner up was: Power-vSphere-Blog. But it just sounded way to badass and I figured it would scare the general public off.

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Ping.fm
  • Slashdot
  • TwitThis
  • Yahoo! Bookmarks