Shell Script Remove All Blank Links

Use the following ‘awk’ command to remove all blank lines from a file: awk ‘NF > 0’ filename

Identify UPS Account From Tracking Number – Decode UPS Tracking Number

Decode UPS Tracking Number TRACKING #: 1Z XXX XXX YY ZZZZ ZZZC X = Shipper’s Account # (6 Digits) Y = Service Code (2 Digits) (See Partial Key Below) Z = Shipper’s Reference # (Can be set by shipper for convenience, to mirror an invoice#, etc.) C = Check Digit Service Codes 01 UPS United ...

vCSA 5.5 Upgrade to 6.0 Migration Failed Failed to download vCenter Server Support Bundle Logs

vCSA 5.5 Upgrade to 6.0 Migration Failed  Failed to download vCenter Server Support Bundle Logs
While attempting to upgrade your vCSA 5.5 to 6.0 you are confronted with this error: Migration Failed Failed to download vCenter Server Support Bundle Logs Make sure that your reverse and forward DNS match (not sure why VMware continues to insist on flawless DNS – Tedious!) The solution to his upgrade error is to: 1. ...

Reset administrator@vsphere.local password vCSA 5.5

Connect to the vCenter Server Appliance via its console or via SSH. Run the vdcadmintool service tool: /usr/lib/vmware-vmdir/bin/vdcadmintool The console will load: ================================ Please select: 0. exit 1. Test LDAP connectivity 2. Force start replication cycle 3. Reset account password 4. Set log level and mask 5. Set vmdir state ================================ Press #3 When prompted ...

vCenter vCSA 6.0 Error occurred while retrieving vm names of the esx host

vCenter vCSA 6.0 Error occurred while retrieving vm names of the esx host
You are in the process of trying to upgrade an existing vCenter 5.5 vCSA to 6.0. Make note that it is asking for ESXi host to install the vCSA and not vCenter!

Add OpenSUSE Repository to VMware Appliances

Use this method to install a working Repo to a VMware Appliance (i.e. VCSA, vSphere Replication, vCloud Usage Meter, etc.) # cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 Add the repository for the appropriate version http://download.opensuse.org/distribution/[VERSION]/repo/oss/ # zypper addrepo -f http://download.opensuse.org/distribution/11.2/repo/oss/ opensuse Once the Repository is loaded, simply ...

VMware ESXi MegaCLI StorCLI Enable Cache Write Back

VMware ESXi MegaCLI StorCLI  Enable Cache Write Back
You have two options for managing the LSI Logic, Dell PERC, etc. from the ESXi CLI: StorCLI or MegaCLI. You can download MegaCLI for VMware here: 8.04.07_MegaCLI You can download StorCLI from the LSI website and here: CLI_VMWare_MN_8.04.07 MegaCLI: esxi1# ./MegaCli -LDSetProp -Cached -LAll -aAll Set Cache Policy to Cached on Adapter 0, VD 0 ...

VMware PowerCLI – How do I add functions?

When first using VMware PowerCLI, you will need to add functions that are associated with your profile. Create a new profile: PowerCLI> New-item –type file –force $profile Once your profile has been created, you can now add functions by typing: PowerCLI> notepad $profile The above command simply opens notepad and allows you to edit your ...

Change ILO IP address via CLI on HP C7000 Blade Chassis

You need to change the ILO IP on an HP blade. You don’t have access to blade except via SSH to the HP C7000 Chassis. Here is how: 1. Connect to the C7000 chassis: HP BladeSystem Onboard Administrator (C) Copyright 2006-2012 Hewlett-Packard Development Company, L.P. Type ‘HELP’ to display a list of valid commands. Type ...

ESXi identify boot LUN + boot LUN claim rules

Identify bootlun: # ls -l / lrwxrwxrwx 1 root root 49 Oct 27 17:55 bootbank -> /vmfs/volumes/94671c74-55d3efd8-6f90-332c181fc3cf Obtain the disk ID: # vmkfstools -P path For example: # vmkfstools -P /vmfs/volumes/bebbef72-6cbc41fa-b169-68d3824c6d51 vfat-0.04 file system spanning 1 partitions. File system label (if any): Mode: private Capacity 261853184 (63929 file blocks * 4096), 114647040 (27990 blocks) avail ...