Category Archives: Guide

Guide to…. quick info that you could use for emailing to people!

Gmail POP3 Setup in Outlook Desktop using Google “App Password”

In order to use the old school method of POP3 (Yes there are some crazy systems still using this) you need to use a different one time password which bypasses the two factor authentication… The tricky part is where to find this setting!

  1. Google Security
  2. “2-Step Verfication” (Scroll to the bottom)
  3. “App Passwords” (Generate a specific password for POP3 (Or any other service needed)

Screenshot showing where to locate the App Password settings for POP3 configuration in Outlook

VMware, ESX | CLI Cheatsheet

Quick guide / cheatsheet with various ESXCLI commands specifically for ESX 7.0+

Enter maintenance mode:

esxcli system maintenanceMode set --enable true

Exit maintenance mode:

esxcli system maintenanceMode set --enable false

Restart management agents “ESXi host daemon” and “vCenter Agent” services:

/etc/init.d/hostd restart
/etc/init.d/vpxa restart

Restart management agents “All”:

services.sh restart

Reboot Host:

esxcli system shutdown reboot --reason Upgrades

Reference: 

Restarting the Management agents in ESXi (1003490) (vmware.com)

APC UPS | Management Card

Rebooting APC/UPS management card

  • Method 1: Using Web interface under “Administration->General->Reset/Reboot->Reboot Management”
  • Method 2: Using Putty (SSH) Session using “reboot” command.
  • Method 3: Physically pressing the “reset” button on the management card

Raspberry Pi Zero 2 W | Headless Setup | WIFI Config

Quick steps (Cutdown version) to getting WiFi configured on Raspberry Pi Zero W (A little more involved than using Raspberry Pi 2/3/4 with physical ethernet cables)

    • Flash the MicroSD card with your flavour of OS.
    • Add file called “SSH” no extension
    • Add file called “wpa_supplicant.conf” and modify the info

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
ssid=”your_network_name”
psk=”your_wifi_password”
}

    • Insert MicroSD into Raspberry Pi Zero & Boot
    • The IP address can be found from DHCP table OR using an app to scan the network such as “Network Analyser

Continue reading

APC UPS | Unable to login to APC Management

Error when trying to connect to the APC UPS management GUI (This is probably only applicable on the older models and firmware versions, but lets face it there’s a shed load of these older units gathering dust at the bottom of the rack somewhere, they get missed unless they start bleeping!)

“Someone is currently logged into the APC Management Web Server. Please try again later”

Continue reading

Windows | Increase System Partition Size Remotely PS

After increasing a virtual machine VMDK size you need to also resize this partition in Windows.

This can be completed remotely using PowerShell. There are various methods to run this but I prefer to use “Server Management” and admin the machines from here. you can run “PowerShell” on a remote session to run the script below.

This process will increase the C:\ partition to use all space that has been allocated by VMware. (Replace -DriveLetter with the required drive)

There are various methods (this is just one of them) 


Update-HostStorageCache
$size = Get-PartitionSupportedSize -DriveLetter C
Write-Output $size
Resize-Partition -DriveLetter C -Size $size.SizeMax -Verbose
Write-Output "Drive Extension Complete!"

Exit-PSSession

Windows Dedup | Cheat Sheet

Get dedup status:

Get-DedupStatus

Get dedup status formatted & additional info:

Get-DedupStatus | fl

Get dedup status for specified volumes:

Get-DedupStatus -Volume "D:","F:"

Show Dedup Metadata (How deduplication is being used) on the server:

Get-Dedupmetadata

Show Dedup Metadata for specified volumes:

Get-Dedupmetadata D:

Enable Dedup Job:

Start-DedupJob D: -Type Optimization -Full

Disable Dedup Job:

Start-DedupJob -Type Unoptimization -Volume <Desired-Volume>

Ref: https://docs.microsoft.com/en-us/windows-server/storage/data-deduplication/whats-new

DFS | DFSR Removal of Staging Directory

After removing DFS shares on a server there may be some leftover files in the “DFSR” cache, this is a hidden location within the “System Volume Information”. This can be a tricky one to delete but can be completed using some CLI.

Take Ownership of folder

icacls "e:\system volume information" /grant Administrator:F

Remove Directory (Silent & whole directory tree)

rd "e:\system volume information\dfsr" /s /q

Dell PowerEdge Servers | Internal Dual SD Module (IDSDM) Failure

We are running Dell R620/630 servers with “Internal Dual SD Module” (IDSDM) for the VMware ESX installation.
Unfortunately SD card 1 recently developed a fault.
As the IDSDM is configured in a fail-over SD1 copies to SD2 therefore we had to swap the cards before performing the rebuild.

It is important to note a few IDSDM module behaviors: IDSDM White Paper

Mirror State Stored on the IDSDM module

The SD cards mirror state, along with the Disabled or Mirror mode for modular servers, is stored on the IDSDM module itself. This means that it is possible to move an IDSDM module between two systems and preserve the mirror; the BIOS will read the states from the cards during boot up and will reflect the state of the card in setup.

Master SD Card

The module design allows that either SD card slot can be the master; in the event of a tie between the two cards, then SD1 is picked as the master. For example, if two new SD cards are installed in the IDSDM while AC power is removed from the system, SD1 is considered the Active or master card in the mirror. SD2 is the backup card, and all file system IDSDM writes will go to both cards, but reads will occur only on SD1. If at any time SD1 fails or is removed, SD2 will automatically become the Active (master) card. The IDSDM module should not be serviced while AC power is present.

 


Continue reading

Draytek VPN to iPhone/iOS Setup

There’s a fairly quick and simple method to configure VPN from the Draytek to iPhone.

I’m configuring this on a Draytek 2860n-Plus but the same process applies to most Draytek interfaces.

If you don’t have a static IP then you can configure using a free DynDNS name from no-ip.org (Other dynamic DNS providers are also available)

This method is using L2TP with IPSEC. A guide to the various VPN types can be found on HowtoGeek

Draytek 2860 Setup

VPN and Remote Access -> VPN and Remote Access -> Remote Access Control”

Enable “IPsec” & “L2TP” VPN Services (These may already be enabled by default)

Continue reading

Remove Sharepoint Login Prompt in IE

We have a company SharePoint site which requires authentication information before logging on. This is a pain as the information displayed on the initial screen of SharePoint does not need to be restricted (Company Intranet).

Login “Annoying” Prompt:

In order to remove this you can modify the option in I.E. to use local logon credential (domain PCs):

  1. Tools/Internet Options/Security/Local Intranet/Sites
  2. Add the site in the list, click OK.
  3. Still in Local Intranet, click on “Custom Level”, scroll all the way to the bottom to User Authentication/Logon
  4. Click on “Automatic Logon with current user name and password”
  5. When the user logs to the site, make sure to select the checkmark “remember username/password” when the site asks for credentials

Adding NextGen Image Tag | WordPress

I get really frustrated that the Nextgen plugin for WordPress does not have a simple icon which allows a quick way to insert a “single” image from the gallery. The options in the “Add New Post” screen only seem to allow a whole gallery to be selected…

This is how to add one image to a post manually (provided you know the image ID)

There are some other shortcode options available here Nextgen Shortcode.

singlepic id=XXX float=

JumboFrames Test / Command Line

I usually configure JumboFrames on iSCSI devices. The quickest way to do this is with a direct Ethernet cable from iSCSI to Server (Configuring seperate LAN IPS for both devices)
To test that JumboFrames is enabled on the network cards I use the PING method and modify the frame size. Default packet sizes are 1500bytes (MTU).

192.168.1.45 (Is configured for Jumbo Frames) – Althought the Jumboframe MTU is 9000bytes there are some overheads in the packets therefore you need to use an MTU of 8972bytes

172.16.232.35 (Is NOT configured for Jumbo Frames) – You can see below the packets fail with “Packet needs to be fragmented but DF set