Posts

Showing posts from September, 2013
Taking this up again.  I know I only posted a couple blogs before I stopped doing this, but I have decided to try to start it up and actually do something with it. I will most likely focus mostly on technology related topics, but may throw in some other posts as I had originally.  Since I started this I finished my Bachelor's in IT, gotten a new job, and started my Master's in Strategic Leadership specializing in cyber-security. I would like to make this mostly a place where I provide little bits of knowledge for problems I solve at work that may hopefully help others in the future. 

Functional but ugly (hey im not a programmer) script for teaming emulex NICs

'Teams 10Gb Emulex Nics into a failover Team 'Script to take the IP from the active emulex nic, enable any disabled emulex nic, then team them and reapply the IP to the team. 'Requires the Emulex teaming software to be installed. ' Enable any Emulex NICs which are disabled. strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery( _     "SELECT * FROM Win32_NetworkAdapter where NetEnabled='False'and servicename='be2net'",,48) For Each objItem in colItems     Wscript.Echo "-----------------------------------"     Wscript.Echo "Win32_NetworkAdapter instance"     Wscript.Echo "-----------------------------------"     'Wscript.Echo "NetEnabled: " & objItem.NetEnabled     Wscript.Echo "ProductName: " & objItem.ProductName     objitem.enable Next ' Gets