Script to export information about LUNS - try to iron out the kinks
I have a script which aims to export the details on the LUN information for the ESX hosts in a particular place. Here's the syntax:
Report_LUN_Details_Location.ps1 where is introduced in the - position inside the script parameter. The script returns the content in c:\temp in the CSV format. Most of it works, but I have a problem with the path information access which to correctly report. Also, there are errors during execution of the script, but that does not affect the result. There also a few custom fields to communicate their data from EMC Symmetrix devices. Advice on how to improve/correct the script would be more appreciated.
Thank you
Ed
The string error you see is the UUID to local disks is shorter than that of the SAN disks.
Most of the time these local disks have the word "local" in the displayname property.
If you can filter them by replacing it
foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware"})
by
foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware" -and $_.DisplayName -notmatch "local"})
The empty DevicePath property is due to disk devices.
If I replaced this line
foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware"})
by this line
foreach ($Device in $VMHostObj.Config.StorageDevice.SCSILUN | Where-Object {$_.Vendor -ne "VMware" -and $_.LunType -eq "disk"})
This problem has disappeared.
BTW, why do you test for vendor VMware?
Is your set up running on a VMware Workstation perhaps?
The complete script is attached.
____________
Blog: LucD notes
Twitter: lucd22
Tags: VMware
Similar Questions
-
Scripts to get information about the State of health
Does anyone have examples of scripts that queries an ESXi 4 host for the info on the State of health or the tabs of the condition of the equipment? I'm looking for something simple (ideally less lines of code) so even if it returns some info about the CPU of the host who would be perfect.
Thank you.
The following script displays the status of the sensors of an ESX Server:
$VMHostName = "YourEsxServerName" $HostView = Get-VMHost -Name $VMHostName | Get-View $HealthStatusSystem = Get-View $HostView.ConfigManager.HealthStatusSystem $SystemHealthInfo = $HealthStatusSystem.Runtime.SystemHealthInfo ForEach ($Sensor in $SystemHealthInfo.NumericSensorInfo) { $Report = "" | Select-Object VMHost,Sensor,Status $Report.VMHost = $VMHostName $Report.Sensor = $Sensor.Name $Report.Status = $Sensor.HealthState.Key $Report }
-
Try to smooth out the edges on CC 3d sphere
I am creating the Earth with 3D CC sphere effect, but at some zoom on the edges of the sphere texture becomes too pixelated. Is it possible to smooth it?
PS. I can't use masks and feathers because the 3D of the Earth moves in the shot and I can't move the mask with it.
To get an atmosphere, just use additional effects. You must add the solids that have the effect of a circle which are applied to them and use the edge mode. You can then use indoor and outdoor pen to blend it into your sphere. You will need two or three such effects - one behind the sphere to provide one basis, others on top of it to mimic tha variations based on the angle of incidence.
Mylenium
-
Get information about the layer with script styles
Is there a way for a script to get information about the currently existing on a layer layer styles?
For example, can I know if a layer has a drop shadow, and that therefore, find the dimensions of this shadow, transparency, color, etc...?
If you don't have CS4 you will need Xbytor script. With CS4, you can the the layer descriptor
var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") ); var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('layerEffects')); if( desc.hasKey( stringIDToTypeID('dropShadow') ) ){ desc = desc.getObjectValue(stringIDToTypeID('dropShadow')); alert('opacity = '+ desc.getDouble( stringIDToTypeID('opacity') ) ); alert('distance = '+ desc.getDouble( stringIDToTypeID('distance') ) ); alert('spread = '+ desc.getDouble( stringIDToTypeID('chokeMatte') ) );// spread alert('blur = '+ desc.getDouble( stringIDToTypeID('blur') ) ); var desc = desc.getObjectValue(stringIDToTypeID('color')); var r = desc.getDouble( stringIDToTypeID('red') ) ; var g = desc.getDouble( stringIDToTypeID('green') ) ; var b = desc.getDouble( stringIDToTypeID('blue') ) ; alert( 'r = ' + r +'\rg = ' + g + '\rb = ' + b ); }
-
Get information about the VM name, owner, State of the Machine and tools State
Hello
I want to write a script to get information about the name of VM, owner, status of the Machine and tools State, because I'm a beginner in powershell I couldn't find any solution yet.
I know how to get the name of the virtual machine and the owner
Get-VM | Get-Annotation -CustomAttribute Owner | select AnnotatedEntity, Value
and how to find the tools and the State of the machine
Get-VM | Select-Object -Property Name,@{N="State";E={$_.Guest.State}},@{N="ToolsStatus";E={$_.Guest.ExtensionData.ToolsStatus}}
Unfortunately I don't find a way to merge the two applications.
Can someone help me please?
Kind regards.
SaPu
Try it like this
Get - VM | Select-Object - property Name,@{N="State; E={$_. Guest.State}},
@{N = "ToolsStatus"; E={$_. Guest.ExtensionData.ToolsStatus}},
@{N = "AnnotatedEntity"; E = {$attr. AnnotatedEntity}},
@{N = "Owner"; E = {(Get-Annotation-entité $_-CustomAttribute «Propriétaire»).} Value}} -
Get more information about the last error in Oracle
Hi all
There is a newspaper in a live system where it is possible to see every minute the following error:
Scan incident [48073]: failed, err = [1858]
I know that the error may occur primarily when:
1 try to insert caracter field into a numeric column
2. use to misuse the function to_date()
I need more information about this error, it may be the cause of the error in the system and why. Is it possible to see more information about past errors in Oracle? For example, if a query generates an error... is it possible to see in Oracle, the error and the query that caused the error?
Hope you can help me.
Thanks in advance.Hello
Your error has been detected by the repository of auto diagnosis, lack of gather incident details correctly. There are a couple of metalink notes apparently relevant, then I would say that you start with the connection a SR with Oracle (for reference, they refer to a bad installation of oracle or a corruption of the oracle software)
Niall
-
You want to know more information about ICS 4.04!
Hello
I'm very happy on this update of ICS released 4.04, but I need to know more information about it.
What are the differences between 4.03 and 4.04 of ICS ICS?
and 4.04 will be available for all devices which had 4.03 for Xperia Arc S?
Concerning
If it is not available for your phone and you want 4.0.4 now then
How to upgrade manually 2011 build Xperias to 4.0.4 android number 4.1.B.0.431
http://talk.sonymobile.com/thread/38251
Don't forget to mark the correct answers & useful answers
-
All detailed information about Viewer?
All detailed information about Viewer to Muse? on the adobe Web site. What happened to the manuals!
Hello
You will find video tutorials for various features in Muse on http://tv.adobe.com
You can also check http://www.adobekb.com/ for more tutorials.
- http://tv.adobe.com/watch/muse-feature-tour/muse-create-a-lightbox/
- http://tv.adobe.com/watch/learn-muse/adobe-muse-creating-a-lightbox-slideshow/
Kind regards
Abhishek Maurya
-
Whenever I am trying to find information about the album in Windows Media Player I get Script error
Original title: tagging music in WMP
Whenever I try to find information about the album in WMP, I get an error message that says:
An error has occurred in the script on this page
Line: 1
Tank: 243
Error: Automation server can't create object
Code: 0
URL: http://fai.music.metaservices.microsoft.com/FAI/scripts/default.js
Do you want to continue? Yes or no
(Sorry, didn't know how to do the screenshot)
This has happened for several weeks now
Hi,
· What operating system do you use?
· What version of Windows Media Player do you use?
Method 1:
Follow these steps and check if that helps:
(a) launch Windows MediaPlayer
(b) click on the file-> tools-> Options-> tab security->
Uncheck the box c) the following
(d) to run the command script when it is present
(e) the script commands and rich media streams runs when the player is in a Web page
Method 2:
If the problem persists, disable script debugging in Internet Explorer, and then check the issue.
a. open Internet Explorer, click Tools and then click Internet Options.
b. in the Internet Options dialog box, click the Advanced tab.
c. Click to select the script turn off debugging (Internet Explorer) and disable script debugging (other) check boxes, and then click to clear the display a notification of every script error box.
d. click OK to close the Internet Options dialog box.
Review the links below, I'm sure that this will help solve your problem better:
How to fix script errors in Internet Explorer on Windows computers?
http://support.Microsoft.com/kb/308260 -
The discs to a hard drive with an IO error can be removed and placed in a good hard drive to try to recover the information about the bad drive? Both units are of the same type and speed. both are records hard internal seagate w double disc in the drives
On Thu, 20 Sep 2012 14:41:30 + 0000, Stephen_403 wrote:
The discs to a hard drive with an IO error can be removed and placed in a good hard drive to try to recover the information about the bad drive? Both units are of the same type and speed. both are records hard internal seagate w double disc in the drives
No, at least not by us.
Open a hard drive for some reason any at all can be done in special
laboratory as parameters. Something else will destroy the disk.There are companies trying to recover data from broken disks,
and they are sometimes successful. And who knows, maybe they
sometimes use methods such as what you describe.But if you plan to use such a company, know what they
are all very expensive. It does not for most people.For the future, if you have files you want to be sure are not
lost, make sure to have in place a backup procedure on a regular basis the
external media player.Ken Blake, Microsoft MVP
-
original title: problems of Windows update/upgrade
I'm currently trying to install Windows 7 on my desktop running Vista.
Whenever I run the Setup it comes up with the following error: Windows could not retrieve information about the disks on this computer.I already put the virtual disk on auto and rebooted several times. I get the same error.Also, I tried to update my computer by using the windows update thinking that would help... Windows update decides to not work either! It comes up with the error: Windows Update cannot currently check the updates, because the service is not running. You may have to restart your computer.gain, I restarted and it still does not work.I am currently running Windows Vista 32 bit on my desk (I thank God for my laptop!).Help!
First, run Windows 7 upgrade advisor:
Windows 7 Upgrade Advisor
http://Windows.Microsoft.com/UpgradeAdvisorNote the results and make sure to follow the steps.
Try to install Windows 7 using the USB
Install Windows 7 with a USB memory key
http://www.winsupersite.com/article/Windows-7/install-Windows-7-with-a-USB-memory-key -
Try installing Windows 7 from XP and keep having this error message before choosing my instalation method, Windows not able to retrieve information about the disks on this computer.
Because the migration from Windows XP to Windows 7 requires a clean install anyway, might as well you are backing up your important files and settings using Windows Easy Transfer and do a custom clean install by booting from the Windows 7 DVD.
http://www.notebooks.com/2009/10/13/WinXP-to-Win7/
-
When you click on the padlock to the left of the URL > right arrow > and then click more information > to view details about the certificate Details page > view certificate, I see nothing and nothing shows me the certificate. I need this job to be able to view Details of the certificate and encryption information pages
Hmm, you are using the all-in - One Sidebar extension? It has a compatibility issue with the Page Info dialog box in Firefox 42. See: FF42 - view Page Info - media tab is missing.
-
I erased from my hard drive to sell the macbook pro to my father. "" When I go to install OSX I am invited to install OS X El Capitan and it will check computer and a window pops up saying 'Impossible to find information about this installation machine' "contact AppleCare. I have an APPT with the Apple store Monday, but was hoping I could fix myself first. Anyone have any ideas?
When you disassemble a machine for sale, the only Mac OS X can be installed without providing WHAT YOUR Apple ID is the original version it comes with.
You can not install ElCapitan in this situation, what is left as an exercise for the buyer.
-
XP Home to Windows 7 upgrade Peoblems
I can't update my laptop to windows 7, that he will enter the upgrade options, then it will say cannot retrieve information about this disk of computers. What should I do I deleted all leave them and still get this error. Thanks Chris
It's a little late for this, but anytime you do an upgrade, you must be sure that your computer is compatible. My guess is your drive for windows 7 is a DVD and you have a CD or a witch of CD - RW drive can not read CD
http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor
Maybe you are looking for
-
Child model LVOOP with class factory problem change out business structure
I must do something wrong, but cannot escape. I'm trying to create a child object (see the bottom row of the class hierarchy) by using a case based on an enum variable structure. When I trace the code I have the 'ssh' Connection Type and it executes
-
Hello I'm using Agilent U2701A for one of my projects. I get an error during initialization - invalid pointer. (Please find the attachment). I installed the measure Manager Agilent, IVI Driver for U2701, Agilent IO libraries Suite (16.3) etc. No idea
-
Is there a way to autoscale only the upper limit of the axis Y of the XY graph. I wish the lower limit set to zero. I'm using LabView 9.0 Thanks, Vitaliy
-
T43 Touch Pad not working do not after Windows 7 installation.
The touchpad on my T43 does not work with Windows 7. I tried several drivers without success; any suggestions?
-
I need a copy of the tape complete Word 2007 - in ENGLISH. I am an English speaking person, to the Mexico, studying word 2007, line n, of ed2go, and the lessons are English n. Thank you. (B) - * address email is removed from the privacy *.