« Back to Microsoft Discussions

Powertool - Get-UcsTimezone errors

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Seems I can get the timezone there is nothing set.
I can get many that are set (have not tested them all)
If I manually set the timezone (gui) to America/Edmonton (Mountain Time - Alberta, east British Columbia & west Saskatchewan then the get-Ucstimezone command errors.
Get-UcsTimezone : wmd-ucs-02:An error occurred while parsing EntityName. Line 1, position 360.
At line:1 char:16
+ Get-UcsTimezone <<<<
+ CategoryInfo : NotSpecified: (emoticon [Get-UcsTimezone], Exception
+ FullyQualifiedErrorId : 300,Cisco.Ucs.Cmdlets.GetUcsTimezone
 
Not sure if there is a better place to report bugs so, there it is.

This is probably a UCSM issue. The xml response that gets sent from UCSM needs to escape the "&" character.


PS C:\Users\vvb> Get-UcsTimezone -xml
==>savbu-tpi02:<configResolveClass classId="commDateTime" cookie="1336707263/b9efa1f9-efdc-4e43-98ed-19edcbcfd815" inHierarchical="false" />
<==savbu-tpi02: <configResolveClass cookie="1336707263/b9efa1f9-efdc-4e43-98ed-19edcbcfd815" response="yes" classId="commDateTime"> <outConfigs> <com
mDateTime adminState="enabled" date="1969-12-31T17:00:00.000" descr="" dn="sys/svc-ext/datetime-svc" intId="24119" name="" port="0" proto="none" ti
mezone="America/Edmonton (Mountain Time - Alberta, east British Columbia & west Saskatchewan)"/> </outConfigs> </configResolveClass>
Get-UcsTimezone : savbu-tpi02:An error occurred while parsing EntityName. Line 1, position 360.
At line:1 char:16
+ Get-UcsTimezone <<<< -xml
+ CategoryInfo : NotSpecified: (emoticon [Get-UcsTimezone], Exception
+ FullyQualifiedErrorId : 300,Cisco.Ucs.Cmdlets.GetUcsTimezone


Thanks,
Vijay Vikrant Balyan