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

Re: Advanced Customized VM Report.xls with name of the file as VMhostname

$
0
0

Excellent LucD. After updating the first row column name of the CSv as vmName I have got the result. But there are 2 things still missing.

  1. The entire output coming of the single server coming in the first row itself. But I need it in the every column should have the details as I mention in the above request. Please find the attached for the current output.
  2. We are getting result for all the parameter except Gateway, Subnetmask, DNS. I am not using new_viproperties. Please sugget how to get his done?

Error from the PowerCLI screen:

 

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> C:\Users

\sureshdadmin\vmreport.ps1

Get-VMGuestNetworkInterface : 1/30/2013 6:34:03 AM    Get-VMGuestNetworkInterfa

ce        Could not find file 'C:\Users\sureshdadmin\AppData\Local\Temp\xpevqtq

7.dll'.

At C:\Users\sureshdadmin\vmreport.ps1:4 char:45

+       $nicInfo = Get-VMGuestNetworkInterface <<<<  -VM $vm

    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],

    VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio

   n.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterface

 

WARNING: The 'Host' property of VirtualMachine type is deprecated. Use the

'VMHost' property instead.

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:17 char:32

+   $row.Gateway = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty

DefaultGateway))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:18 char:35

+   $row.Subnetmask = [string]::Join <<<< (',',($nicInfo | Select -ExpandProper

ty Subnetmask))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:19 char:28

+   $row.DNS = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty Dns)

)

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Get-VMGuestNetworkInterface : 1/30/2013 6:34:16 AM    Get-VMGuestNetworkInterfa

ce        Could not find file 'C:\Users\sureshdadmin\AppData\Local\Temp\ihnmh03

s.dll'.

At C:\Users\sureshdadmin\vmreport.ps1:4 char:45

+       $nicInfo = Get-VMGuestNetworkInterface <<<<  -VM $vm

    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],

    VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio

   n.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterface

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:17 char:32

+   $row.Gateway = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty

DefaultGateway))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:18 char:35

+   $row.Subnetmask = [string]::Join <<<< (',',($nicInfo | Select -ExpandProper

ty Subnetmask))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:19 char:28

+   $row.DNS = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty Dns)

)

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Get-VMGuestNetworkInterface : 1/30/2013 6:34:28 AM    Get-VMGuestNetworkInterfa

ce        Could not find file 'C:\Users\sureshdadmin\AppData\Local\Temp\evyeyuy

4.dll'.

At C:\Users\sureshdadmin\vmreport.ps1:4 char:45

+       $nicInfo = Get-VMGuestNetworkInterface <<<<  -VM $vm

    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],

    VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio

   n.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterface

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:17 char:32

+   $row.Gateway = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty

DefaultGateway))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:18 char:35

+   $row.Subnetmask = [string]::Join <<<< (',',($nicInfo | Select -ExpandProper

ty Subnetmask))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:19 char:28

+   $row.DNS = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty Dns)

)

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Get-VMGuestNetworkInterface : 1/30/2013 6:34:38 AM    Get-VMGuestNetworkInterfa

ce        Could not find file 'C:\Users\sureshdadmin\AppData\Local\Temp\2l6i3ub

2.dll'.

At C:\Users\sureshdadmin\vmreport.ps1:4 char:45

+       $nicInfo = Get-VMGuestNetworkInterface <<<<  -VM $vm

    + CategoryInfo          : NotSpecified: (:) [Get-VMGuestNetworkInterface],

    VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio

   n.ViCore.Cmdlets.Commands.GetVmGuestNetworkInterface

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:17 char:32

+   $row.Gateway = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty

DefaultGateway))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:18 char:35

+   $row.Subnetmask = [string]::Join <<<< (',',($nicInfo | Select -ExpandProper

ty Subnetmask))

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

Exception calling "Join" with "2" argument(s): "Value cannot be null.

Parameter name: value"

At C:\Users\sureshdadmin\vmreport.ps1:19 char:28

+   $row.DNS = [string]::Join <<<< (',',($nicInfo | Select -ExpandProperty Dns)

)

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : DotNetMethodException

 

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

 

 

 

 

Regards

Suresh Dhanaraj | Data Center Migration Project - VMware | 858-453-7845 X 4451(W) |mailto:suresh.dhanaraj@petco.com


Viewing all articles
Browse latest Browse all 232869

Trending Articles



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