Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 210297

Re: Problem with get-stat command and scripting

$
0
0

The layout of the daily csv file will be "Clustername-ResourcePoolname-Date.csv"

so something like "cluster1-rp1-20130811.csv"

 

I tried the script above but resulted in error.

Below is the error I got (sorry some parts are in Japanese...)

 

Import-Csv : ファイル "C:\powercli\stats\" を開けません。

発生場所 C:\test_scripts\gather9.ps1:7 文字:30

+     $monthArray += Import-Csv <<<<  -Path "$folder\$name"

    + CategoryInfo          : OpenError: (:) [Import-Csv]、DirectoryNotFoundException

    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.ImportCsvCommand

 

The error is saying that it could not open file "C:\powercli\stats" when doing the Import-Csv.

 

 

 




Viewing all articles
Browse latest Browse all 210297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>