Export and storage of CSV file details HBA device
Hi all
I need help in two PowerCLI scripting that can export information specific to the CSV files.
In the first report, I want to get out of HBA information in the fields "Name", "Identifier", "LUN" and "capabilities".
as seen in the screenshot just below.
In the second report, I would like to get storage information for the fields 'Identification', 'Device', and 'ability '.
as seen in the screenshot just below.
I am a newbie to Powershell and PowerCLI and have searched the threads and found a few scripts that provide similar information
but not exactly what I need. In my attempts to learn through "reverse engineering" everything I did was to hack the scripts and fail. =(
I use the following PowerCLI version.
----------------
VMware vSphere PowerCLI 4.1 build 332441 U1
---------------
Versions of the snap
---------------
VMWare vSphere PowerCLI 4.1 build 332441 U1
Any help would be greatly appreciated.
OK, try this for the 1st report
&{foreach($esx in Get-VMHost){ foreach($hba in (Get-VMHostHba -VMHost $esx -Type FibreChannel | where {$_.Status -eq "online"})){ Get-ScsiLun -Hba $hba | Select @{N="VMHost";E={$esx.Name}}, @{N="HBA";E={$hba.Device}}, @{N="DisplayName";E={$_.ExtensionData.DisplayName}}, @{N="Identifier";E={$_.CanonicalName}}, @{N="LUN";E={(Select-String ":L(?\d+)$" -InputObject $_.RuntimeName).Matches[0].Groups['lunID'].Value}}, @{N="Capacity";E={"{0:f2}" -f ($_.CapacityMB/1KB)}} } } } | Export-Csv C:\hba-report.csv -NoTypeInformation -UseCulture
Tags: VMware
Similar Questions
-
Export and general issues of file
Hey guys,.
We do a lot of catalogs from 8pp to 24pp and seem to have a lot of questions on export-exporting and just using the files.
My system is as follows
Intel Core 2 Quad Q8200
4 GB of ddr3 RAM (only 3.5 get used)Windows XP pro SP3
and Adobe CS3 Master Collection
the catalogues are very heavy images and I was wondering if the following situations can cause problems:File Jerkness overall while navagating through documents.
-Is a common problem?
-several images with an effective resolution of more than 1200 will cause jerks
-All placed images should be as close to 300 PPI as possible?
-Make Illustrator files with mixtures of blur and transparency (I recently had a problem with that)
PDF export
-Computers just crash
-Sometimes have errors of jpeg.
-Errors of memory
All files get packaged prior to export and all the CMYK image color profiled.
We use master pages and character styles or paragraph and errors occur on multiple computers.
So basically I was wondering especially if it's how we create and place documents or is it a problem of computer hardware/software.Any help would be appreciated
Thank you.
Probably a bad image on this page.
Try to divide and conquer searching for it:
Remove half of the page objects. If it exports, it is in half you deleted, otherwise it is always on the page.
Return the objects to delete. If the bad object is in this group, remove half of this group, otherwise, remove half of the other group.
Repeat until the object is isolated, should only take a few tries, then rebuild this image and replace.
Moreover, my first suspects would be EPS. It is also possible that several objects is a problem, but it's less likely.
-
Orchestrator 5.1 REPORT-all the virtual machines in the data center and create a CSV file
Hello
What I basically want to do is create a report CSV of all virtual machines in the data center with various information (VMname, domain name FULL, IPaddress, status, data warehouses, tools etc...). The export list in the client feature is insufficient (especially for any KPI report).
Problem: (workflow is still under construction so real email send does not not and need to clean the code)
I am stuck at the part of the creation of a table that can be parsed correctly in the CSV file. 2 ways I've tried will produce a report of single object or combine all of the table into a single string (where I am now). I think the main problem I have is that I have to create a 2D within my service to push toward the final table that is written to the CSV format. Basically, I do not understand how to push my variables in a loop of a table.
Any help or assistance?
Thank you
B
BOOM!
Added some comments, removed the hardcoded in the csv temp file, deleted path the hardcoded port 25 for SMTP - mail settings should come from the configuration of the MAIL plug-in. And fixed / confirmed that the workflow now includes the attachment for e-mail and ends with success!
-
Export large data to .csv. file.
Hello
I need a large amount of data to the .csv file export. I tried to use table external to export these documents. But the external tables are not allow to insert records.
Need advice for this problem.
Thank you.>
I need a large amount of data to the .csv file export.
>
See this AskTom for a way to do it using pl/sql.
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1992907061984Or you can use developer free Oracle sql and query the data
SELECT /*csv*/ * FROM scott.emp; "EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO" 7369,"DALLAS","CLERK2",7902,17-DEC-80,110,1,20 7499,"CHICAGO","SALESMAN",7698,20-FEB-81,220,2,30 7521,"CHICAGO","SALESMAN",7698,22-FEB-81,110,3,30 7566,"DALLAS","MANAGER",7839,02-APR-81,110,4,20 7654,"CHICAGO","SALESMAN",7698,28-SEP-81,1375,5,30 7698,"CHICAGO","MANAGER",7839,01-MAY-81,3135,6,30 7782,"NEW YORK","MANAGER",7839,09-JUN-81,2695,7,10 7788,"DALLAS","ANALYST",7566,19-APR-87,110,8,20 7839,"NEW YORK","PRESIDENT",,17-NOV-81,5500,9,10 7844,"CHICAGO","SALESMAN",7698,08-SEP-81,1650,10,30 7876,"DALLAS","CLERK",7788,23-MAY-87,1210,11,20 7900,"CHICAGO","CLERK",7698,03-DEC-81,1045,12,30 7902,"DALLAS","ANALYST",7566,03-DEC-81,3300,13,20 7934,"NEW YORK","CLERK",7782,23-JAN-82,1430,14,10
-
Is it possible to export and import forwarding a file option to another?
Hi all
I have the model in the idml file that does not have fixed reference options. I need to update these settings from one document to another. Is it possible to export and import the reference parameters of a file to another file (such as the import of paragraph styles).
Thanks in advance
Kasi
Not through the user interface, but perhaps by script. Ask above in InDesign Scripting
-
How to call and receive from csv file
I have a file employee.csv which contains details empid empname,
I want to fetch corresponding empid offering empname entry comes from the file employee.csv and write empid in DB
I had created a file of reading for employee.csv but for the receive activity that a variable is created
How to give input (empname) to the file and get the empid from this file.
Please help me in this editionHello
You will need to filter the native XML content using the processing activity. In this use of the xslt file
See for more information - http://www.w3schools.com/xsl/xsl_for_each.asp
Kind regards
Neeraj Sehgal -
Blob file extraction and storage in the file system
To reduce the size of the database, I want to launch a program to run submit a page that contains a control file download, which will extract the BLOB file in Pb and store it in the operating system.
Any suggestions on how I can accomplish this?Karthik,
The thread of the forum is to have downloaded blob by using the browser and do not do has the server OS.And the second link (the only SQL) uses a library based on java called PLSQL OS COMMAND. It comes with a lot of features to fetch/modify/set file system files, run the script and return the output script and could be recommended for someone who makes those extensively. It would probably be an overdose for this purpose (and in addition need to java and grants to users and directories privileges).
-
How to extract data from an arbitrary xml file and export it to a CSV friendly?
Hallo,
I am facing big problems in the use of XML files. I have a
application that generates XML files with clusters containing arrays
and scalars as in the example pasted below. My task is to
Read it and export the data into a CSV document readable by a human.
Since I do not know the actual content of the cluster, I need some sort
Smart VI through the XML looking for berries
and other data structures for export properly in the CSV file
format (columns with headers).
Thank you
3
6
0
1
2
3
4
5
3.14159265358979
Ciao
Rather than to get the
node, you can just go directly to the node since ' one that really interests you. Basically what it means to determine the elements of table how much you have, and it depends on if you have 1 or 2 knots . The rest is just of the child nodes and the next siblings. See attachment as a starting point. The attached XML file is a table 2D (change the .xml extension). Notes on the example:
- I did not close properly references, so it's something you need to do.
- It is limited to tables 1 d or 2D.
- I suggest using a control path of the file to specify the input XML file and path of the file/folder control to specify the location of the output file.
-
I have a script that exports bookmarks to a csv file.
The script works really at a stage where the csv file is created and opened with the name mark book being listed in the csv file.All other bookmark names are not.
Some advice would be most appreciated by modifying the script to list all bookmarks in the csv file.
var bm = this.bookmarkRoot;
var ibmLength = bm.children.length;
for (var i = 0; i < ibmLength; i ++)
BookName var = bm.children [i] .name;
fieldValues var = [];
fieldValues.push (bookname);
this.createDataObject ('output.csv', fieldValues.join ());
this.exportDataObject ({cName: 'output.csv', nLaunch: '2'});
Thank you
You must use media for loop for:
var bm = this.bookmarkRoot;
var ibmLength = bm.children.length;
fieldValues var = [];
for (var i = 0; i)< ibmlength;="" i++)="">
BookName var = bm.children [i] .name;
fieldValues.push (bookname);
}
this.createDataObject ('output.csv', fieldValues.join ());
this.exportDataObject ({cName: 'output.csv', nLaunch: '2'});
-
Attempt to send email from MASS of Thunderbird. I have the address of a CSV file in a column named Email. I {{Email}} in the TO: field of the email - and go through file-Mail Merge and have the CSV file in the dialog box. When I click on OK - I get the message 'no recipients were determined... ". »
Wile, we do not support the add-on here.
As a convenience.
Most of the problems of this nature with the add-on will focus on how the email header is defined in the CSV file. Make sure it is defined as the domain name, you think it is and that it is surrounded by double quotes. Also make sure that none of your "data" contains quotes like send the CSV into a spin, introducing this amount on a Cape randomly in the middle of data.Failure to comply with this e-mail from the author of the add-on. His email address is on the page of download add-on.
-
Export tables to a (csv) several worksheets in a workbook
Hello
I have a script for users of the audit and parameters and so far I have exported arrays of different csv files.
Is it possible to export, for example, two tables for two worksheet to a csv file?
Thank you! :)Hello
A CSV in not an excel document - it can be opened as is it it an Excel but there is no way to convert a .csv into a multi spreadsheet file.You need a tool that can wtire this natively do this or something or some vba within excel to extract the data and fill several sheets?
Kind regards
Harry -
Error FLOW_EXCEL_OUTPUT_R in the downloaded csv file
Hello
I'm trying to use the features of the FLOW_EXCEL_OUTPUT_R as follows:
href = "f? "p = & APP_ID.:14: & SESSION.: FLOW_EXCEL_OUTPUT_R & P_REGION_ID._en.
When the calculation for P_REGION_ID is:
Region_id SELECT FROM apex_application_page_regions
WHERE application_id =: app_id
AND page_id =: app_page_id
AND region_name = 'CSV export.
In the CSV file downloaded, I get the following:
-the first line: + <. div id = "report_33994800669487811_catch" > +.
-the last 2 rows: + <. pre > error report: +.
ORA-06502: PL/SQL: digital or value error: character of number conversion error < | /pre >
(|| -sign is if I show the tags in the post)
The rest of the data is downloaded ok.
But still how can I get rid of these errors?
Thank you
AdelaHello
The area has active partial page refresh?
If so remove it and this can help.
See you soon
Ben
Published by: Munky on December 9, 2009 10:08
-
How to store the captured data in the csv file
Here's the sceanario
I was able to capture data from the oracle forms and store it in variables.
now, I want to store the same data in the csv file and save this csv file.
quick reply is appreciated.Ok. This is what my, admittedly simple, code performs above: var_orderid col1 and col2 in var_quantity.
See you soon,.
Jamie -
InDesign has worked well for a long time. Then recently, after I and to reset my computer to an earlier time, stopped Indesign let me export to PDF format. I get no error message. It's just that nothing happens after that I have to export it. I have some big deadlines for printin and am desperate for help. I sent the Indesign file to someone else, and they were able to export and create a PDF file.
I look forward to any suggestion. I'd be happy to pay someone if they can make it work again.
Of course, if you want to pay, they'll be happy to take your money. Call technical support and prosecute. Make sure you get a case number and the name of the person to help you and don't let them tell you they will call you back. If necessary, don't be shy about insisting on being raised to the next level.
Before you spend money, well, read this thread: http://forums.adobe.com/message/2850080#2850080
It is 4 pages, but make sure you read all this. There are several possible solutions to stop the background export and some other useful information.
-
Tags and Notes in a single CSV file export
I'm trying to export tags and notes in to a CSV simple change of batch and importation in vCenter. I have a script to export tags and I can export notes, but I want to make in a single operation and to a simple CSV file. Here's the current code, I use and please forgive me for not crediting the original creator, I built this script I don't remember! I have a Notes column in the CSV file resulting, but he is empty... Thanks in advance.
Don
Current script:
If (-not of $DefaultVIServer.IsConnected) {}
SE connect-VIServer "vcenter.server" - Credential (Get-Credential $_.) User name)
}
$tagCat = @)
$tagTab = @ {}
foreach ($tag in (Get-TagAssignment)) {}
$tagCat += $tag. Tag.Category.Name
$key = $tag. @entity.name
{if ($tagTab.ContainsKey ($Key))}
"$val = $tagTab.Item ($key)"
}
else {}
$val = @ {}
}
$val. Add ($tag. Tag.Category.Name, $tag. Tag.Name)
$tagTab [$key] = $val
}
$tagCat = $tagCat | Sort-Object-Unique
$tags = foreach ($row in ($tagTab.GetEnumerator () |)) Sort - Object - property key)) {}
$VMName = $row. Key
$VMNotes = get - VM $VMName | Select-Object - ExpandProperty Notes
$obj = new-Object-property PSObject @ {}
Name = $row. Key
}
$tagCat | %{
$obj | Add-Member-Name $_-value $row. Value [$_]-MemberType NoteProperty
}
$VMNotes | %{
$obj | Add-Member-name 'Notes' - value $row. $VMNotes - MemberType NoteProperty
}
$obj
}
$tags | Export Csv tags.csv - NoTypeInformation - UseCulture
Try like this
If (-not of $DefaultVIServer.IsConnected) {}
SE connect-VIServer "vcenter.server" - Credential (Get-Credential $_.) User name)
}
$tagCat = @)
$tagTab = @ {}
foreach ($tag in (Get-TagAssignment)) {}
$tagCat += $tag. Tag.Category.Name
$key = $tag. @entity.name
{if ($tagTab.ContainsKey ($Key))}
$val = $tagTab.Item ($key)
}
else {}
$val = @ {}
}
$val. Add ($tag. Tag.Category.Name, $tag. Tag.Name)
$tagTab [$key] = $val
}
$tagCat = $tagCat | Sort-Object-Unique
$tags = foreach ($row in ($tagTab.GetEnumerator () |)) Sort - Object - property key)) {}
$VMName = $row. Key
$VMNotes = get - VM $VMName | Select-Object - ExpandProperty Notes
$obj = new-Object-property PSObject @ {}
Name = $row. Key
}
$tagCat | %{
$obj | Add-Member-Name $_-value $row. Value [$_]-MemberType NoteProperty
}
$obj | Add-Member-name 'Notes' - $VMNotes - MemberType NoteProperty value
$obj
}
$tags | Export Csv tags.csv - NoTypeInformation - UseCulture
Maybe you are looking for
-
The fonts are hard to read on some site
Until tonight, I was using Firefox 36.0.4 as my browser default and everything was OK. After that, I was curious to check out Firefox 0.10 and installed that replaces 36.0.4. After playing with 0.10, I've even once updated in Firefox 36.0.4 and the p
-
The best I could do is to go to about: config and change all values attached to freecause, but after a virus scan it becomes itself on how can I get rid of it
-
the system administrator has set policies to prevent this installation
I looked through the forum and have tried all the options. I try to install the total war empire on my laptop. I installed other games and never had a problem. When I click on install it as upward with the system administrator has set policies to pre
-
In Windows Media Center 2005, you receive an error found no tuner card.
wmc2005 I got messege no tuner found
-
My laptop stopped recognizing wireless function. What drop-down list function should I use to get it to recognize wireless again?