Powershell for esx command good choise
Hello
my command is
$ESX = get-datstore xxxxx | Get-vmhost-location xxxx | get-random
but sometine, the esx is not connected or not to a good "green" State
can you help to have an esx, connected and a good (green)
Thanks for your help
OK, no alarms triggered, now I get it.
Try like this
$esx = get-Datastore xxxxx | Get-VMHost-State connected. where {$_.} ExtensionData.Summary.OverallStatus - eq "green"}
Tags: VMware
Similar Questions
-
Unable to connect to target iSCSI for ESX 3.5
Hi all
I have an esx 3.5 build 82663 (update 1). We took over this company, so we are migrating this data center. I understand tha patch isn't 5 update but it wasn't our environment and we try to turn it on.
We have three esx servers
(1) console production svc - 192.168.7.x
(2) storage network - 192.168.9.x
EqualLogic 3)-192.168.9.x
(4) storage Switch - CISCO 3750 Switch
(5) frames enabled on vswitch, vmknic, physical, switch, network interface cards, table vlan and storage.
(6) software iscsi client allowed an outgoing connection through 3260 (tcp)
Performed troubleshooting
esxcfg-vmknic - l - seems ok and with activated jumbo frames
esxcfg-NICS - l - looks ok with activated jumbo frames
esxcfg-vswitch - l - looks ok with activated jumbo frames
esxcfg-road - l - (looks good)
192.168.7.0 255.255.255.0 local subnet
192.168.9.0 255.255.255.0 local subnet
by default 0.0.0.0 192.168.7.1
Works of vmkping between the storage network interfaces (192.168.7.x) i.e. physical switch, equallogic, and other interfaces for esx storage network.
vmkping s 9000 192.168.9.11 (equallogic san) works without packet loss.
Ping does not work between interfaces.
Ping of physical switch to the san and esx equallogic storage network interfaces work
Access to LUNS equallogic shared among interfaces are restrticted by the ip address of storage network (192.168.9.x). The LUNS they check marks against them to have several initiators communicate with them.
No enabled chap authentication anywhere.
I had another server with the same configuration connection to it without problems to the only difference is esxi can be accessed and the esx servers cannot access.
Our environment has been only esxi. This is the first time I use esx and a system of update 1 for iSCSI.
I'm on the critical path to complete the project.
It would be useful that I can get all the help you can.
See you soon,.
Knockaert
If I'm not mistaken in your service console needed to have access to the storage network 3.5 too. Try to configure a second service on the storage network console and see if you can view the LUNS. Can also be useful to filter through the vmkernel logs and see if you notice any errors.
If you have found this device or any other useful post please consider the use of buttons useful/correct to award points
-
LVM. EnableResignature for ESX 4.0
Hello
For ESX 4.0, I'm not able to see this lvm.enableresignature option.
I want to do my visible Snap Server ESX (4.0) via API.
For the old version it works fine.
Any help?
-AsHwIN
With vSphere, is is no longer the case of update of the advanced configuration option, VMware has introduced a new esxcfg-* command called esxcfg-volume as explained here by Duncan Epping post: http://www.yellow-bricks.com/2009/03/13/vmfs-recognized-as-a-snapshot-what-to-do-exploringthe-next-version-of-esx/
The new API call that should be used is *ResignatureUnresolvedVmfsVolume_Task and you can take a look at how this is implemented by looking at the source code of the esxcfg-volume vCLI which is just using the vSphere SDK for Perl
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
Hello.
We are looking into getting a SAN iSCSI for ESX.
On readers, y at - there a big difference between sata and sas and sas 10K vs 15K?
How iSCSI performance are compared to the SAN fiber?
Can you guys recommend an iSCSI solution right?
Excerpt from Dell PS4000 and it seems to be a good product.
(On players, is there a big difference between sata and sas and sas 10K vs 15K?)
Yes, 15 k SAS are faster and a bit more expensive, but worth it!
(How iSCSI performance are compared to the fiber SAN?)
ISCSI SAN is not as fast as the fiber, but compared to the local drive is a big improvement for your applications, users, etc.
(You guys can recommend a good iSCSI solution?)
Personally, I think Dell equallogic are great! PS600XV is what I put in place.
-
Hello
any ideas when powershell for vWorkspace 8 will be available?
Or are there other features of the API?
We need automate the creation of group, creating Application, user assignment etc.
Thank you
jeje
Hey everybody.
Sorry for the delay. The new PowerShell module was published: http://en.community.dell.com/techcenter/virtualization/vworkspace/b/vworkspace-blog/archive/2014/05/08/vworkspace-powershell-module-new-beta-available
Adam
-
original title: error 0xC0AA02FF
I try to use a "USB" "cruzer" to create a disc repair system, but when I click on this drive to create it I get the following error message:
"The device reported unexpected or invalid data for a command. (oxC0AA02FF)
Hello
What method did you follow to create the system repair disc?
I suggest you to create the system with different USB repair disc and check if it helps.
Means all try the methods and check them off below if it helps.
Method 1:
Try to put the computer in a clean boot state, and then check if it helps.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.
Method 2:
I also suggest you to perform check disk (chkdsk) on the computer and see if it helps.
http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors
Note: You may lose a small amount of data while performing the check disk.
I also inform you that the data on the USB key will be lost. You should take a backup.
You can also check with the reference article below:
http://Windows.Microsoft.com/en-us/Windows7/create-a-system-repair-disc
-
Can I use other Adobe ID instead of the Adobe ID, used for the command to install and activate the Photoshop CS6?
Thank you
Only ID authorized to use the software is the ID of the software license.
-
Hi all
I need order_type_id, tprt_number (ece_tp_location_code) from the tables below
Select ece_tp_location_code from hz_cust_acct_sites_all
Select order_number in oe_order_headers_all
Select transaction_type_id from oe_transaction_types_tl
I'm passing order_number and transaction_type_id in the where clause
How to get ece_tp_location_code (tprt_number) for specific command type in OM r12
Thank you
Hello
This query can help you,
Select order_type_id, ece_tp_location_code, ot.name, order_number in the oe_order_headers_all oh, AHC, oe_transaction_types_tl ot hz_cust_acct_sites_all
where oh .sold_to_org_id = hcas.cust_account_id and oh .order_type_id = transaction_type_id and order_number = 185383 and transaction_type_id = 1144;
Kind regards
SoundariyaKumar.R
-
best practices for networking for esx / vsphere 6
best practices for networking for esx / vsphere 6
Refer to VMware best practices documentation to get the depth on the networks.
https://www.VMware.com/files/PDF/Techpaper/VMware-PerfBest-practices-vSphere6-0.PDF
https://www.VMware.com/files/PDF/Techpaper/VMW_Netioc_BestPractices.PDF
See also below article for best practices documentation relating to the different versions of vSphere.
http://vmwareinsight.com/articles/2016/5/5798853/best-practices-for-VMware-vSphere-architecture
-
Hello, I want the English version of photoshop and ligtroom, but I l ' have received in English, how to have the version English, thank you very much for your answer, good day.
Please follow change in version; French: English
(Double Post)
-
No adapters network for ESX 5.5 Installation (RealTek)
Hi, in reference to;
No adapters network for ESX 5.5 Installation
I think I should do this procedure by using one of the following drivers;
I want the a 'LINUX driver for kernel 3.x and 2.6.x and 2.4.x? Who will work on linux that depends on the ESXi?
This solved my problem;
TinkerTry IT @ home | Install ESXi 5.5 with Realtek 8111/8168 NIC
-
Change the path information for ESX ESXi hosts to access
Hello all! I hope you guys can help me.
I have about 47 hosts that I need to change it Round Robin storage path information. If I make the change in vCenter and restart the host it again changing fixed. So, I thought that I should change it to the level of the host through esxicli.
I have about twice as many LUNS of the Hitachi SAN. I'd like to see if it is possible to make the change in all areas, in some way, or I need to make the change by host? Also, is there anything that I need to change sides San so that it works or not.
I saw this VMware KB: modification of path information for ESX/ESXi hosts to access and assume that it is the best plan? But did not know of all put into custody, if necessary, that everyone ran to when doing this?
You will need to make the change by the host and the KB you'll find is the right method.
-
Script - missing and hotfixes installed for ESX and ESXi
Can I have the script i.e. missing and hotfixes installed for ESX and ESXi using the CLI power only? out put should be csv format
You reset the content of the table $Results on each iteration of the baseline.
Try like this
$Results = @() foreach($esx in Get-VMHost) { foreach($baseline in (Get-Compliance -Entity $esx -Detailed | where {$_.Status -eq "NotCompliant"})){ $Results += $baseline.CompliantPatches | Select @{N="Host";E={$esx.Name}}, @{N="Status";E={"Compliant"}}, @{N="Baseline";E={$baseline.Baseline.Name}},Name,ReleaseDate,IdByVendor, @{N="KB";E={(Select-String "(?
http://[\w|\.|/]*\w{1})" -InputObject $_.Description).Matches[0].Groups['url'].Value}} $Results += $baseline.NotCompliantPatches | Select @{N="Host";E={$esx.Name}}, @{N="Status";E={"NotCompliant"}}, @{N="Baseline";E={$baseline.Baseline.Name}},Name,ReleaseDate,IdByVendor, @{N="KB";E={(Select-String "(? http://[\w|\.|/]*\w{1})" -InputObject $_.Description).Matches[0].Groups['url'].Value}} } } $Results It will give the installed and lack of patches which are defined in the non-compliant baslines related to the ESXi host.
If you want to see all the lines, also the most consistent, omit the Where clause on the base line (foreach) loop.
-
Electrodes for ESX 3.0.3
I searched on the Site now for some time and was not able to find a list of the fixes available for ESX 3.0.3 I wonder to assess a couple of old ESX servers, they're all running 3.0.3 and esxupdate query that's all I get:
[root@xxxxxx]#-l esxupdate query
Installed software bundles:
-Summary of name - Date installation-
3.0.1 - 32039 22:03:16 08/25/09 3.0.1 full version of VMware ESX Server
3.0.3 - 104629 22:15:12 08/25/09 3.0.3 full version of VMware ESX Server
For the differential RPM list, use the - l /-listrpms option.I guess that there were patches since 3.0.3 - 104629, I believe that the Client has never implemented any, also, there are no deposits configured on these servers.
Y at - it a list to see which patches if released after 3.0.3 - 104629?
A big thanks to the guys of advnace
See you soon
Sigmund
Welcome to the community,
the latest patches for ESX 3.0.3 are always available on the VMware patch download portal.
http://www.VMware.com/patchmgr/download.Portal
André
-
Use ACFS for CFS is good idea?
Hello Experts.
Plans to build a CAR on the following environment.
Oracle Database worm. : 11.2.0.3
OS: Linux RHEL 6.1 - 64 Bit
Servers: HP
ASM and ACFS for storage.
Here need advice: use ACFS for CFS is good idea or anything else better than that?
Thank you in advance:
Ajazjn76.ajaz76 wrote:
Is ACFS as Veritas, HP tru64, OCFS2 or even we need none of these CFS at the top of the ACF. Please advice. Thank you.Nothing necessary at the top of the ACF. He will manage by oracle itself as ASM.
Maybe you are looking for
-
Hello IM karaar How to reset my security id appke questions
-
problem with power switch only works a 'cold' start after pushing several times.
Original title: power switch problem The power switch on my computer doesn't work as a 'cold' start after pushing several times.Could I have accidentally re-set one "true or false? spend in the registry while trying to solve another problem?Dave
-
error in the search for driver updates.
I did a self diagnostic computer and he felt that the 6TO4 card has a 'configuration problem preventing it from properly start"," maybe he have good driver or may be affected by a hardware failure. "The Plug and Play ID for the device is 13" there wa
-
Problems in Flight Simulator 98
I have Flight Simulator 98 that I have loaded on my new Dell computer with vista. My logitech joystick will not work with her, it this year but will not do anything else. How to operate? It worked fine with my old computer which had xp on it. It is s
-
Connection is disconnecting remote desktop continues
Hi team, I am facing a problem with the remote desktop connection is disconnected several times. We are having the same problem with 3-4 machines. Those are all machine have a system of operating windows XP SP3 as updated antivirus. All but a few min