I had the privilege of attending an HP Cloud Tech Day this past week in Houston, organized by Ivy Communications. Tom, Chris and Halley did a great job gathering some pretty cool and smart bloggers and thinkers to hear about and give feedback on HP’s cloud offerings and aspirations. The list of attendees were:
Author Archives: Matt Vogt
Find Old Computers – Using PowerShell with LastLogonTimestamp
[updated with optimization from comment from JR]
Cleaning up Active Directory is a necessary evil. You need to stay under your CAL count and it can be difficult to figure out which computers (or users) have not logged in to the domain recently.
Windows Server 2003 introduced the lastLogonTimestamp attribute which replicates between all DCs in the domain. Now, this isn’t real-time data. In fact it can be up to 14 days behind the current date, depending on your domain settings. If you want that, you’re going to have to get yourself a good syslog server, but for general cleanup and auditing purposes it works great. You can read more about this attribute on Microsoft’s TechNet Blog.
I’ve written a couple very simple PowerShell scripts that will 1) search the entire domain for all computers with a lastLogonTimestamp before a certain date 2) return a computer’s lastLogonTimestamp value in a human readable local format. It’s not so easy to just go out and get the time stamp, because the format that AD stores it UTC (GMT) format, so it needs some converting to human readable, which my scripts do.
get_lastLogonTimestamp_from_host.ps1
# Gets host and lastLogonTimestamp in UTC of specified host # get Name $hostname = Read-host "Enter a hostname" # grab the lastLogonTimestamp attribute Get-ADComputer $hostname -Properties lastlogontimestamp | # output hostname and timestamp in human readable format Select-Object Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp)}}
———————————————————–
get_stale_hosts_lastLogonTimestamp.ps1
# Gets time stamps for all computers in the domain that have NOT logged in since after specified date $time = Read-host "Enter a date in format mm/dd/yyyy" $time = get-date ($time) $date = get-date ($time) -UFormat %d.%m.%y # Get all AD computers with lastLogonTimestamp less than our time Get-ADComputer -Filter {LastLogonTimeStamp -lt $time} -Properties LastLogonTimeStamp | # Output hostname and lastLogonTimestamp into CSV select-object Name,@{Name="Stamp"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp)}} | export-csv .all_old_computers_timestamps_older_than-$time.csv -notypeinformation
These are two scripts that I use pretty often when I’m trying to determine if I should disable/delete computer accounts in AD. Hope it helps someone else.
Dell Management Plug-in for VMware vCenter Update 1 Released
Today, Dell released Update 1 to the 1.0.1 version of their Management Plug-in for VMware vCenter. The biggest highlight among the fixes and changes would be the added support of ESX5 (vCenter 5). If you’re currently running the 1.0.1 plugin under a vCenter 5 environment (which ‘works’, just not in a supported kind of way), you’ll need to unregister and re-register the Dell Management Plugin after upgrading (see the Release Notes for all issues/resolutions).
One of the major changes from the original 1.0 to the 1.0.1 plug-in was the promise that updates to the appliance/software would come as an RPM patch and not tied to re-deploying another OVF. I’m glad to report that this worked wonderfully. You can find full instructions in the Dell Management Plug-in for VMware vCenter User Guide (page 41), but here’s the quick and dirty:
- Always backup your appliance. Always backup pre-upgrade. When? Always.
- Open up and log into the web admin portal (https://myApplianceHostname/)
- Click on ‘Appliance Management’ in the left menu
- Click ‘Upgrade’
– This will boot you out of the portal, upgrade the software and reboot the VM (the User Guide makes no mention that it reboots the VM, so just know that it does).
– I recommend opening up a VM Console so you don’t have to just sit and refresh the page to see if it’s back up or not - Restart your vCenter Client (this might just be me because I was having some DNS issues at the time on my desktop)
The whole process took about 10 minutes for me. It took about 7 minutes before I saw the appliance reboot.
Dell Management Plug-In for VMware vCenter Review
Ok, I’ve had the plug-in running for a few weeks and have gone through some of the primary functions of it (firmware updates, inventory, monitoring, warranty retrieval, create hardware profile for deployment)
I’m not going to go through the initial setup, that’s been covered pretty well on DellTechCenter.com.
Here are the claimed major functionalities with my notes as far as day to day usage as well as some miscellaneous thoughts at the end.
New Dell EqualLogic Arrays
Dell unveiled an update to 2 of their EqualLogic PS series array platforms today along with their first sub-$10k array. The new PS6100 and PS4100 series arrays are a refresh of their PS6000 and PS4000 units. The new boxes are being touted as having up to a 67% improvement in I/O performance.
How I Feel After Tech Field Day 7
Full. From great conversations, vendor product information, BBQ and cakeballs. Tech Field Day 7 was quite the event. I was able to meet a few people whom I’ve either followed on twitter or read their blogs for a while who have been influential in my development as an infrastructure professional. I also met others I was not familiar with who have already informed my thinking, and I can only assume that they will continue to be a great resource of experience and knowledge.
Speaking of the delegates, I want to thank Stephen Fosket and Matt Simmons for gathering such a great and diverse group of infrastructure professionals. Also, as one of the younger delegates, both in terms of age and experience, I want to thank the delegates for listening and taking the time to explore topics that were new for me.
I’m fortunate to be able to head straight to vacation right after TFD. Rather than head back to the crazy of work, I’ll (hopefully) be able to better process what just happened in Austin. As I think back through the presentations and conversations, there’s a lot of processing to do.
New Role and Opportunity
For the last 4 years I’ve operated as a Windows Systems Administrator, primarily focusing on (surprise!) Microsoft technologies – patching, security, Active Directory, Group Policy, etc. When I took this position, our virtualization environment was quite small, not very complex, not needing a lot of love or development, and not really my job. We had about 30 virtual machines, 4 hosts running ESX 2.5 all with internal or direct attached storage, 3 hosts running EXS 3.5 with still more internal storage and one single controller NetApp FAS270 with a whopping 1.25TB of iSCSI storage! These ESX 3.5 hosts were also running un-clustered.
With demands growing much faster than our budget (centralized backup, Antivirus, patching, deployment, file and print services, CMS, LMS, better-than-just-pop-email), it was obvious that we could no longer afford physical servers. We had neither the budget nor the physical space, power, cooling, etc and had to come up with a better plan. Virtualization was the answer, and somebody had to do it. I fell in love with the technology and jumped right in. As most of you have probably experienced, it soon became the majority of my daily functions.
We quickly added one more ESX 3.5 host, consolidated 2 of the ESX 2.5 hosts into the 3.5 hosts, added a second shelf to the NetApp (now all of 3.5TB) and added a Dell PowerVault MD1000 attached to a PowerEdge 1950 running Red Hat serving as an NSF store (3TB also).
Sounds great. We should be set, right? Boy was I wrong. I had no idea how fast we could chew through storage and host resources. With our NetApp nearing End of Life (not to mention being well out of warranty), it was time to consider new storage and another host or 2. While we loved the performance of our NetApp, we couldn’t afford a system with multiple controllers, couldn’t afford death by licensed features and found it difficult to administer. Through a process I won’t detail here, and with a price my Dell AE swore me me to protect, we decided to migrate to and standardize on EqualLogic. So we purchased a PS6000XV for primary storage (6.5TB usable) and a PS4000X for replication.??
We’re now sitting with a single ESXi 4.1 cluster with 5 hosts and 3 EqualLogic arrays in two groups. We’re still using the old NetApp iSCSI and MD1000 NFS SANs as tier 2 storage and now have a grand total of 26TB of storage (96TB more coming).
With the evolution of my workload and focus, as well as a new project building a remote data center in Houston as both a multi site cluster and DR site, I was offered the new position of Sr. Systems Administrator – Virtualization and Storage, which I gladly accepted. While this in part realigns my job title and description with what I actually do and where the Datacenter and IT services field is headed, it also adds more opportunities for growth. I will be taking on the role of Scrum Master (Srum is our internal project management framework), operate as lead/backup technician for the rest of the Sys Admin team and be responsible for server/service patch management oversight.
It’s big and a little bit scary, but if im?? not a little bit scared of what I’m doing, I get complacent and don’t learn nearly as much.
Here’s to being scared.
Contact Sharing at VMWorld
Connecting with new people and exchanging contacts at VMWorld is a crucial component of the conference (or any other conference, for that matter). I’ve networked with many people over my admittedly short conference going history, and the value of being able to easily contact colleagues in the field post-conference is only outdone by their willingness to help out.
Tech Field Day 7 – Austin, TX
Just got word Tuesday that I’ll have the honor to be a delegate for Gestalt IT’s Tech Field Day 7 focusing on Datacenter IT Infrastructure. The event seeks to bring together some of the industries great thinkers, authors, bloggers, influencers and vendors to engage each other. You can read more about the Tech Field Day at their site to get an idea of what these guys are about.
LA VMUG – vCenter Operations
The Los Angeles VMUG was held today at the DoubeTree Hotel at LAX and the primary topic was a product discussion and demo of vCenter Operations. Much of the time was dedicated to what needs and gaps it fills.