Thanks it started to work without any changes after trying against another vCenter…Thanks all
Original Message:
Sent: Oct 14, 2024 10:23 AM
From: Hiron_T
Subject: Get-Tag not working on latest PowerCLI on MAC
Hi,
I've been in the same situation before. I recovered by restarting the vCenter service using the steps in KB316636.
https://knowledge.broadcom.com/external/article/316636/gettagassignments-and-getspbmstoragepoli.html
Original Message:
Sent: Oct 01, 2024 02:24 AM
From: LucD
Subject: Get-Tag not working on latest PowerCLI on MAC
That seems to confirm there might be an issue with the Inventory Service on that vCenter.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Oct 01, 2024 01:34 AM
From: virtualizingtheworld
Subject: Get-Tag not working on latest PowerCLI on MAC
LucD - get-tag worked after I tested successfully against another vCenter. (Weird)
Thanks for all your help
Original Message:
Sent: 9/28/2024 4:16:00 AM
From: LucD
Subject: RE: Get-Tag not working on latest PowerCLI on MAC
You could give the VMware.Community.CISTag module a try.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 27, 2024 04:14 PM
From: virtualizingtheworld
Subject: Get-Tag not working on latest PowerCLI on MAC
so guess no other workaround or possible cause is it?
Reason I need this is because I need to assign a tag to a list of VMs (in csv file), let me know if there are workarounds?
Otherwise will try to reach out to the Admins to report back the service state.
Original Message:
Sent: Sep 27, 2024 04:07 PM
From: LucD
Subject: Get-Tag not working on latest PowerCLI on MAC
I don't think it has anything to do with the platform from which your run the PowerCLI script.
Another, rather drastic, method to check if the Lookup Service is the cause would be a restart of the VCSA.
But I know that this is not always possible
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 27, 2024 12:37 PM
From: virtualizingtheworld
Subject: Get-Tag not working on latest PowerCLI on MAC
VMware.PowerCLI 13.3.0 build 24145081
No Access to SSH or VAMI am afraid, any other way I can check? (Maybe I can query that status from powercli itself?)
Any such command limitations because I am on a MAC?
Original Message:
Sent: Sep 27, 2024 11:03 AM
From: LucD
Subject: Get-Tag not working on latest PowerCLI on MAC
Which PowerCLI version are you using?
Is the service running on the VCSA?
Can you try restarting the Lookup Service?
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Sep 27, 2024 10:59 AM
From: virtualizingtheworld
Subject: Get-Tag not working on latest PowerCLI on MAC
Hi,
When I enter Get-Tag I get the following:
Get-Tag Failed to get Lookup Service information for this vCenter server. Details: nodename nor servname provided, or not known (vcsa url:443)
Any reason why this happens as all other commands are working ex: Get-VM, Get-VMHost etc..?
Thanks