Update VMWare ESXi Remotely

You can update your VMWare ESXi 5.5 environment via the command line without having to download and upload any patch files manually. This can be all done automatically via the CLI:

~ # <a href="esxcli%20software sources profile list">esxcli software sources profile list</a> --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

 

Read more »

Configuring iDRAC Remotely

I recently had to configure over 100 iDRACs remotely and the last thing I wanted to do was to manually go into all of them via the web interface and configure different options!

I wanted to enable alerting via email for only Warning and Critical alerts on a variety of iDRAC version, 5, 6 and 7 hence why the below commands might look like they are duplicates but what I found is that if you start with the commands for the oldest version first and move to the newest you have all your bases covered:

racadm config -g cfgLanNetworking -o cfgDNSServer1 DNSIP
racadm config -g cfgLanNetworking -o cfgDNSDomainName DOMAIN
racadm config -g cfgIpmiLan -o cfgIpmiLanAlertEnable 1
racadm config -g cfgEmailAlert -i 1 -o cfgEmailAlertEnable 1
racadm config -g cfgEmailAlert -i 1 -o cfgEmailAlertIndex 1
racadm config -g cfgRemoteHosts -o cfgRhostsSmtpServerIpAddr SMTPIP
racadm config -g cfgRemoteHosts -o cfgRhostsSmtpServerIpAddr SMTPDNS
racadm config -g cfgEmailAlert -i 1 -o cfgEmailAlertAddress ITDEPARTMENTEMAIL
racadm eventfilters set -c idrac.alert.system.critical -a none -n email
racadm eventfilters set -c idrac.alert.system.warning -a none -n email

 

VMWare ESXi vSphere 5.5 – A General System Error Occured

If when trying to authenticate to an VMWare ESXi vSphere 5.5 environment with your Active Directory Windows credentials and you receive a “A general system error occurred” – then you can try a few things:

1. Restarting the LDAP services:

/etc/init.d/lwiod restart
/etc/init.d/lsassd restart

2. Perform a gpupdate /force on the primary domain controller configured on the VMWare host

Symantec EndPoint Protection Client Migration

There was a requirement to decommission old Symantec EndPoint Management (SEPM) servers and as the majority of 2000 clients were migrated with the “Client Deployment Wizard > Remote Push” feature there were still some left behind which had to be manually migrated – or so it looked.

After some searching and reading various posts and documents on the Symantec pages it looked like the easiest solution for me was to simply replace the Sylink.xml file on the old SEPM environments and when the clients perform their routine update, the newly placed Sylink file will be downloaded by the clients and like magic they will be on the new environment!

Read more »

Verify TFS Backup Status

It seems as though when initiating a full backup in TFS (and of course depending on the size of your environment), TFS will report that it has successfully completed the backup even though it is not possible to complete a full backup of a 1TB database in 5 minutes:

414037While in the backup path the .bak files appear it still does not indicate (or possible for) that a backup has completed!

To truly see if a backup is taking place and what its current status is one can execute the following T-SQL query in SQL Server Management Studio:

SELECT command,
s.text,
start_time,
percent_complete,
estimated_completion_time/1000 as "seconds to go",
dateadd(second,estimated_completion_time/1000, getdate()) as "estimated completion time"
FROM sys.dm_exec_requests r
CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) s
WHERE r.command in ('RESTORE DATABASE', 'BACKUP DATABASE', 'RESTORE LOG', 'BACKUP LOG')

Microsoft seem to be aware of this and have suggested that I submit feedback on this issue.

MSDN Forum Source
SQL Query Source

Deletion of Large TFS Project Collection

We were tasked with splitting one large project collection into two. We split our large (1.3TB) project collection which had about 66 projects including one large (260GB) project into two collections. Everything went fine deleting the smaller (up to 30GB) projects until we got to the largest one.

The deletion process would fail via the GUI and tfsdelete command even after increasing the timeout to 10 hours! When we increased the timeout (we did so gradually – initially to 30 min then 4 hours and ultimately 10) it failed with the following message on version control:

Read more »

Team Foundation Server – Anti-Virus Exclusions

If your company policy is that a anti-virus has to be present on all environments and you happen to be running TFS then here is my list of exclusions which I have gathered from various places across the internet and compiled it together for my own future reference as well being of help to others.

Not only will the exclusions help with troubleshooting but also improve the performance of the servers.

Exclusions

  • C:\Windows\System32\inetsrv\w3wp.exe –  IIS Worker Process or w3wp.exe
  • C:\Users\TFSBuild\AppData\Local\Temp – The temporary work area used by the build server identity, if your build server runs as TFSBuild
  • C:\Program Files\Microsoft Visual Studio 11.0
  • C:\Program Files\Microsoft Team Foundation Server 2010
  • C:\Program Files\Microsoft Team Foundation Server 11.0
  • C:\Program Files (x86)\Microsoft Visual Studio 11.0
  • C:\Windows\Microsoft.NET\Framework\ –  SharePoint Portal & Web Access
  • C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Team Foundation – TFS local cache folder
  • D:\Builds – Build Agent(s) working directory. Look at your Build Agent Properties: Builds -> Manage Build Controllers -> Select Build agent(s) and click on Properties. Whatever the Working Directory is should be addded to your antivirus exclusion list. You should also include your “Drop” directory if you are using that.

Of course locations may vary depending on your setup and environment, but this should give you a good starting point.

Windows 10 Announced and Download

Windows 10, not Windows 9 has just been announced with a release date of 2015! Let’s see some of the features which will be coming with Windows 10.

Features

  • Start menu: The familiar Start menu is back, but it brings with it a new customizable space for your favorite apps and Live Tiles.
  • Everything runs in a window: Apps from the Windows Store now open in the same format that desktop apps do and can be resized and moved around, and have title bars at the top allowing for maximize, minimize, and close with a click.
  • Multiple desktops: Create desktops for different purposes and projects and switch between these desktops easily and pick up where you left off on each desktop.
  • Find files faster: File Explorer now displays your recent files and frequently visited folders making for finding files you’ve worked on is easier.
  • New task view button: There’s a new task-view button on the taskbar for quick switching between open files and quick access to any desktops you create.
  • Snap enhancements: You can now have four apps snapped on the same screen with a new quadrant layout. Windows will also show other apps and programs running for additional snapping and even make smart suggestions on filling available screen space with other open apps

You will be able to download Windows 10 shortly from Microsoft and it would be a good idea to try it out in a VM first even though continuous updates will be coming to make it better, you just know it will not be ready for full-time use.

Firefox Insecure Page Rendering

Since Firefox version 23 websites such as MSDN and Technet have not been displaying correctly like the image below:render Initially I thought Firefox was not rendering the CSS or something was up but it finally got to me that it must be a security setting somewhere which is affecting it. I thought it might have been a certificate relate issue but this advanced command in about:config resolved it.

1. Go to about:config in the address bar
aboutconfig2. Search for security.mixed_content.block_active_content and set its value to false aboutconfigcommand3. You do not have to restart Firefox, you can just refresh the page which was causing the issuetechnetMore information can be read on the Mozilla page.

Romanian Sopcast TV Channels – September

Updated list of Romanian & International TV channels:

Read more »