cliffcahill's Posts

Hi guys, Has anyone managed to Trim Value that is returned when running esxcli via powershell For example $myhost = get-vmhost -name esx01 $esxcli = Get-EsxCli -VMHost $myhost $esxcli.sy... See more...
Hi guys, Has anyone managed to Trim Value that is returned when running esxcli via powershell For example $myhost = get-vmhost -name esx01 $esxcli = Get-EsxCli -VMHost $myhost $esxcli.system.coredump.network.get() | FT Enabled I'm looking for Trim the Enabled ------- true - from the html output. Any Idea? Regards Cliff
Hi Luc, That worked a treat. In had a look lucd.info Yesterday but didn't find it for some reason.  - Thanks for the quick reply. Here is the full Syntax that i used param( [Parameter(... See more...
Hi Luc, That worked a treat. In had a look lucd.info Yesterday but didn't find it for some reason.  - Thanks for the quick reply. Here is the full Syntax that i used param( [Parameter(Mandatory=$true)]$vCenter, $datacenterName = "DC01", $dvSwitchName = "DVswitch01-A", $dvSwitchUplinkBasename = "dvUp1", $dvSwitchUplinkNumber = "2", $dvPgNumPorts = "8" ) function Set-dvSwSIOC{   param(   [parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]   [VMware.Vim.VmwareDistributedVirtualSwitch]$dvSw,   [parameter(Position = 1)]   [switch]$Enabled   )    $dvSw.EnableNetworkResourceManagement($Enabled) } #Creates new Switch New-VDSwitch -Name $dvSwitchName -Mtu 9000 -NumUplinkPorts $dvSwitchUplinkNumber -Location $datacenterName $dvSw = Get-dvSwitch -DatacenterName $datacenterName -dvSwitchName $dvSwitchName Set-dvSwSIOC -dvSw $dvSw -Enabled
Anyone ever managed to set NIOC on the VMware 5.5 DVS via PowerCli. - Its Disabled by  Default Cheers, Cliff
Discover all Host in vCenter Server and configure Round Robin om disk that do not have Round robin Configured. Replace the $clusterName = '*'  Variable with a specific clustername  if you want... See more...
Discover all Host in vCenter Server and configure Round Robin om disk that do not have Round robin Configured. Replace the $clusterName = '*'  Variable with a specific clustername  if you want to target 1 Cluster in particular ========================== param(   [Parameter(Mandatory=$true)]$vCenter,   $VMhost ="*",   $clusterName = '*'   ) #End Setting Paramters for Scripts #Connect to vCenter Write-Verbose "Connecting to vCenter" $server = Connect-VIServer $vCenter -credential $(get-credential) $cluster = Get-Cluster $clusterName if (!$cluster) {Write-host -foregroundcolor red "ERROR: ERROR: Cluster $clusterName cannot be found"; exit} ForEach ($VMhostname in ($cluster | Get-VMHost -name $VMhost)| sort) { $VMhostname | Get-ScsiLun -LunType "disk"|where {$_.MultipathPolicy -ne "RoundRobin"} | Set-ScsiLun -MultipathPolicy Roundrobin }
Hey , One Question  - What was your  value for LS_URL=https://XXXXXXXXX:7444/lookupservice/sdk - IP or HostName/FQDN I had the same problem today. I think the issue is down to DNS. I replac... See more...
Hey , One Question  - What was your  value for LS_URL=https://XXXXXXXXX:7444/lookupservice/sdk - IP or HostName/FQDN I had the same problem today. I think the issue is down to DNS. I replaced my FQDN with IP address and it worked fine. If you run through the install manually there is an Error that would receive see below if FQDN was used. My Guess is that the command line install is unable to suppress this error. I Tried in vain to fool it with hostfiles but that didn't help BTW i used Powershell to run my version of the install     # Inventory Service installation     Write-Host "Installing Inventory Service" -ForegroundColor Green     $exe = "Z:\Inventory Service\VMware-inventory-service.exe"     $args = '/s /v" INSTALLDIR=E:\vCenter\ QUERY_SERVICE_NUKE_DATABASE=1 SSO_ADMIN_USER=\"administrator@vsphere.local\" SSO_ADMIN_PASSWORD=\"secret\"'     $args = $args + ' LS_URL=\"https://192.168.101.153:7444/lookupservice/sdk\" HTTPS_PORT=10443 FEDERATION_PORT=10111 XDB_PORT=10109'     $args = $args + ' TOMCAT_MAX_MEMORY_OPTION=M /L*v \"C:\temp\inventoryservice_install.log\" /qr"'     Write-host $exe $args      Start-process $exe $args -Wait Hope this Helps. Regards Cliff
Yeah confirmed - IP address is Used,
Hi Girish, My command line install failed to install the Web-Client and the Inventory Service when i used the FDQN as variable in  the script. Similarly i tried a manual install fail to connec... See more...
Hi Girish, My command line install failed to install the Web-Client and the Inventory Service when i used the FDQN as variable in  the script. Similarly i tried a manual install fail to connect to the Lookup Service when FQDN was used. Tried IP address and work fine. Changed script to using IP Variable and tested fine. Double Checked DNS resolution wasn't an issue  (Using host Files on the VM's). Flushed DNS Cache just to be sure . This Failed   # Inventory Service installation     Write-Host "Installing Inventory Service" -ForegroundColor Green     $exe = "$VCmedia\Inventory Service\VMware-inventory-service.exe"     $args = '/L1033 /v"/qr QUERY_SERVICE_NUKE_DATABASE=1 SSO_ADMIN_USER=$SSO_ADMIN_USER SSO_ADMIN_PASSWORD=\"' + $SSOpass + '\"'     $args = $args + ' INSTALLDIR=\"D:\Program Files\VMware\Infrastructure\" LS_URL=\"https://' + $SSOFQDN + ':7444/lookupservice/sdk\" HTTPS_PORT=10443 FEDERATION_PORT=10111 XDB_PORT=10109'     $args = $args + ' TOMCAT_MAX_MEMORY_OPTION=M /L*v \"C:\temp\inventoryservice_install.log\""' ThisWorked   # Inventory Service installation     Write-Host "Installing Inventory Service" -ForegroundColor Green     $exe = "$VCmedia\Inventory Service\VMware-inventory-service.exe"     $args = '/L1033 /v"/qr QUERY_SERVICE_NUKE_DATABASE=1 SSO_ADMIN_USER=$SSO_ADMIN_USER SSO_ADMIN_PASSWORD=\"' + $SSOpass + '\"'     $args = $args + ' INSTALLDIR=\"D:\Program Files\VMware\Infrastructure\" LS_URL=\"https://' + $SSOIP + ':7444/lookupservice/sdk\" HTTPS_PORT=10443 FEDERATION_PORT=10111 XDB_PORT=10109'     $args = $args + ' TOMCAT_MAX_MEMORY_OPTION=M /L*v \"C:\temp\inventoryservice_install.log\""' I'm pretty sure there must be an .xml file or registry setting that would show what was the actual value. Ill see if i can dig it out.
Hi Girish, I have that set in my original script. But no Luck.
Anyone know if it possible to specify the FQDN as the Look-Up Service when installing SSO via Command line - there is the option via the gui be it seem to default to IP address during Command lin... See more...
Anyone know if it possible to specify the FQDN as the Look-Up Service when installing SSO via Command line - there is the option via the gui be it seem to default to IP address during Command line.     Write-Host "Single Sign On Setup" -ForegroundColor Green     $exe = "$VCmedia\Single Sign On\VMware-SSO-Server.exe"     $args = '/L1033 /v"/qr MASTER_PASSWORD=' + $SSOpass + ' RSA_DBA_PASSWORD=' + $RSA_DBA_pass + ' RSA_USER_PASSWORD=' + $RSA_USER_pass     $args = $args + ' INSTALLDIR=\"D:\Program Files\VMware\Infrastructure\" CONFIG_TYPE=Setup SETUP_TYPE=Primary SSO_DB_SERVER_TYPE=Custom JDBC_DBTYPE=Mssql'     $args = $args + ' JDBC_DBNAME=RSA JDBC_HOST_PORT=1433 JDBC_HOSTNAME_OR_IP=' + $SQLFQDN     $args = $args + ' SKIP_DB_USER_CREATION=1 DBA_JDBC_USERNAME=RSA_DBA DBA_JDBC_PASSWORD=' + $SSOpass     $args = $args + ' JDBC_USERNAME=RSA_USER JDBC_PASSWORD=' + $SSOpass + ' COMPUTER_FQDN=\"' + $SSOFDQN     $args = $args + '\" IS_SSPI_NETWORK_SERVICE_ACCOUNT=1 /L*v \"C:\temp\ssoinstall.log\""' Here is the command that i am using . Variables are defined further up the script. LS_URL=\ Can be defined when installing Inventory Service , Web-client etc but not for the SSO .
Hi I just wanted to highlight an issue i recently stumbled accross with vCenter SQL and ODBC connectors. What should be a very straight forward install had be pulling my hair out. My se... See more...
Hi I just wanted to highlight an issue i recently stumbled accross with vCenter SQL and ODBC connectors. What should be a very straight forward install had be pulling my hair out. My setup is a basic one 1 Server with ESXI installed 3 VMs vCenter (VMVC) SQL (VMSQL) and VUM (VMVUM) all three VM's are clone of a template that have been syspreped etc etc I installed SQL as per normal using SQL serv 2008R2 RTM , Using windows Authenication , created two databases for vCenter and VUM. Logged into my vCenter. Created my odbc connection nad they tested fine. I then ran the  and launch the vCenter installation media (5.0 build 804277) and started on vCenter selected my odbc connection. cliecked next and then i hit this error === The DB User entered does not have the required permissions needed to install and configure vCenter Server with the selected DB. Please correct the following error(s): %s === Cause The database version must be supported for vCenter Server. For SQL, even if the database is a supported version, if it is set to run in compatibility mode with an unsupported version, this error occurs. For example, if SQL 2008 is set to run in SQL 2000 compatibility mode, this error occurs. http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.install.doc_50%2FGUID-5AA32F87-270C-4171-8896-41A607F8F997.html Hmm but i have done this literally hundred of times right .. So i began to troubleshoot i check host file were good between all vm to ensure dns name resolution all was good. i double checked the permissons on the database - Administator was DBO on vCenter i had a look though the vminst file to see if i could spot anything stickout all it mentioned was VMware VirtualCenter-build-804277: 02/21/13 21:33:12 file size: 2193 VMware VirtualCenter-build-804277: 02/21/13 21:33:12 SQLBindCol: 0 VMware VirtualCenter-build-804277: 02/21/13 21:33:12 SQLBindCol: 0 VMware VirtualCenter-build-804277: 02/21/13 21:33:12 Failed to execute query: -1 VMware VirtualCenter-build-804277: 02/21/13 21:33:12 ODBC Error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'go'. VMware VirtualCenter-build-804277: 02/21/13 21:33:12 Getting Property DB_DSN_SERVER_REMOTE = 1 VMware VirtualCenter-build-804277: 02/21/13 21:33:12 errorMessage is <The DB user entered does not have the required permissions needed to install and configure vCenter Server with the selected DB. Please correct the following error(s) : %s I doubled check the vMware Software Compataibilty guideand all seemed good. I created Some SA accounts and swicth the database into mixed Autheication mode set permisson tetsed odbc conncetors and retried - Fail Okay maybe something got screwedup in the database during install i reinstalled as set  - Fail I was beginning to supect the version of SQL as it WAS RTM version - i downloaded and installed SP2 and retested  - Fail I checked VMware recommendation to changing the database compatiabilty mode  - Fail I have a Esxi 5.1 iso hanging around i tried that and presto is wehn further than i thought finally a break through , but my client required 5.0 so this wasnt a option. I then reverted back to an old builder iso that i had for 5.0 (456005) and that worked no problem - once install was complete i was able to upgrade with the new version and all went okay. Anyone else stumbled across this or had simialr issue - cannott figure out why one worked and the other didnt .
I Used the Pretty Simple Invoke-VMScript -ScriptText "C:\VCinstall.bat"  -VM testvc -ScriptType Bat -GuestUser $GU -GuestPassword $GP And it worked perfectly.
Hello, Wondering if any of you have used PSEXEC to run a .bat file to auto install vcenter/vum? I have a script that writes a .bat file to a set location on the VM and the runs the .bat file... See more...
Hello, Wondering if any of you have used PSEXEC to run a .bat file to auto install vcenter/vum? I have a script that writes a .bat file to a set location on the VM and the runs the .bat file Via PSXEC. I have successfully installed all the minor components (viclient syslog webclient) using this method but he install fails on both VCenter (VM1) and VUM (VM2) when trying to create a new database which is located on a 3rd VM running SQL 2008R2. The ODCB Connection is configured and is testing fine. They are connected using Microsoft authentication as opposed to SA authentication. If I run .bat file locally from the VM the install runs though perfectly. Attached is sample of the script that i am running at the moment. Anyone have any idea or suggest an alternative method that might work? Cheers Cliff
Hey Guys, Can anyone recommend a HBA for a HP Proliant DL360 G7. I want to connect HP Ultrium 5 SAS tape unit to a VM (Direct Path I/O) to run Symantec Backup Exec to back up my VM Environment... See more...
Hey Guys, Can anyone recommend a HBA for a HP Proliant DL360 G7. I want to connect HP Ultrium 5 SAS tape unit to a VM (Direct Path I/O) to run Symantec Backup Exec to back up my VM Environment. Having a look at the HP website and the VMware HCL i foolishly choose the P212 Controller..  This resulted in PSOD My Host are running ESXi 4.1 U1 all the latest firmware on the hardware has been applied Any of you guys ran with a similar successful configuration previously? Cheers Cliff