Hi, all.
There are four templates. One of them is 'NagiosTemplate'.
When I ran get-template, It returned messaged that they not found.
It was the same with no template name and there was no result.
PS C:\> Get-Template
PS C:\>
I can see templates only by using viclient.
How can I do to get templates?
Yeonki,
Best regards.
Are the other Get- cmdlets producing results ?
For example, Get-VM or Get-VMHost ?
Are these templates you see in the vSphee CLient perhaps on another vCenter that is in linked mode ?
How are the PowerCLI settings ?
Do a
Get-PowerCLIConfiguration | Select *
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi, LucD
Thanks for reponse.
Yes, Other Cmdlets work.
PS C:\> Get-VMHost
Name ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz MemoryUsageGB MemoryTotalGB Version
--------- ----------------------- ---------------- ----------- -------------------- ------------------ ------------------------- ------------- -------
192.168.20.162 Connected PoweredOn 6 32 16794 1.638 7.749 5.0.0
But, Get-Template doesn't.
And second result is as follows:
PS C:\> Get-PowerCLIConfiguration | Select *
DefaultVIServerMode : Multiple
ProxyPolicy : UseSystemProxy
DisplayDeprecationWarnings : True
InvalidCertificateAction : Unset
WebOperationTimeoutSeconds : 300
Scope : Session
DefaultVIServerMode : Multiple
ProxyPolicy :
DisplayDeprecationWarnings :
InvalidCertificateAction :
WebOperationTimeoutSeconds :
Scope : User
DefaultVIServerMode :
ProxyPolicy :
DisplayDeprecationWarnings :
InvalidCertificateAction :
WebOperationTimeoutSeconds :
Scope : AllUsers
Thanks and regrads,
Yeonki
Forgot the obvious question, are you connected to a vCenter or an ESXi server (Connect-VIServer) ?
You need to be connected to a vCenter to see and work with templates afaik
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD.
When I connect to vCenter server, getTemplate cmdlet works.
Before, I connected to ESXi Server directly.
Can I ask why this happen?
Thanks and regards,
Yeonki.
Working with templates is a feature from vCenter and is not available on ESXi servers.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I understand it.
Thank you.
Yeonki.