<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Connect-UCS error</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5694068" />
  <subtitle>Connect-UCS error</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=5694068</id>
  <updated>2013-05-24T01:38:00Z</updated>
  <dc:date>2013-05-24T01:38:00Z</dc:date>
  <entry>
    <title>RE: Connect-UCS error</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7261048" />
    <author>
      <name>romi tchou</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7261048</id>
    <updated>2012-10-02T11:04:49Z</updated>
    <published>2012-10-02T11:03:53Z</published>
    <summary type="html">hello I want to connect a switch to the lab. I tried what you suggest but I can not.  I get the error:
Ucs-Connect: Connect-Ucs: Failed Connection to 10.87.7.17.
&lt;&lt; Char: 23
+ $ Handle1 = Connect-Ucs &lt;&lt;&lt;&lt; "10.87.7.17"-Credential $ cred
     + CategoryInfo: NotSpecified: ( :) [Connect-Ucs] Exception
     + FullyQualifiedErrorId: Cisco.Ucs.Cmdlets.ConnectUcs &gt;&gt;
 
please tell me how to get to a switch via powershell and even change its VLAN as
 
thank you for any response.</summary>
    <dc:creator>romi tchou</dc:creator>
    <dc:date>2012-10-02T11:03:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Connect-UCS error</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5681932" />
    <author>
      <name>Bhaskar Jayakrishnan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5681932</id>
    <updated>2012-05-09T22:59:49Z</updated>
    <published>2012-05-09T22:59:49Z</published>
    <summary type="html">Murali,

The usage is correct.
[font=Courier New]
PS C:\&gt; $user = "admin"
PS C:\&gt; $password = "xxxxxx" | ConvertTo-SecureString -AsPlainText -Force
PS C:\&gt; $cred = New-Object system.Management.Automation.PSCredential($user, $password)
PS C:\&gt; $handle1 = Connect-Ucs ucs-pod01 -NotDefault -Credential $cred
PS C:\&gt; $handle1


Proxy                 :
Cookie                : 1336603486/a363c4f7-e9ce-4d27-85d8-88d3e7e3dfb7
Domains               :
LastUpdateTime        : 5/9/2012 2:56:18 PM
Name                  : ucs-pod01
NoSsl                 : False
NumPendingConfigs     : 0
NumWatchers           : 0
Port                  : 443
Priv                  : {admin, read-only}
RefreshPeriod         : 600
SessionId             : web_43234_B
TransactionInProgress : False
Ucs                   : ucs-pod01
Uri                   : https://ucs-pod01
UserName              : admin
VirtualIpv4Address    : 10.65.124.81
Version               : 2.0(0.121)
WatchThreadStatus     : None



PS C:\&gt;
[/font]

Can you check with the Uri ? Also check with the -Xml option to see what the error is. Let us know if you continue to have issues.

Thanks,
- bhaskar</summary>
    <dc:creator>Bhaskar Jayakrishnan</dc:creator>
    <dc:date>2012-05-09T22:59:49Z</dc:date>
  </entry>
  <entry>
    <title>Connect-UCS error</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5694067" />
    <author>
      <name>Murali K</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5694067</id>
    <updated>2012-05-09T22:22:48Z</updated>
    <published>2012-05-09T22:22:48Z</published>
    <summary type="html">Hi-
 
Greetings!
 
I am tryinig to automate the login with ucs. I have downloaded &amp; instaleld the UCS simulator &amp; goucs 2.0. I am able to login via the Browser using the IP &amp; login ID.
However, when I tried to fire the following Powershell script, it gives the following error:
--------------------------------------------------------------------------------------------------------------------------
Import-Module 'C:\Program Files (x86)\Cisco\Cisco UCS PowerTool\Modules\CiscoUcsPS\CiscoUcsPS.psd1'
$user = "config"
$password = "xxxxx" | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object system.Management.Automation.PSCredential($user, $password)
$handle1 = Connect-Ucs 192.168.10.130 -NotDefault -Credential $cred
--------------------------------------------------------------------------------------------------------------------------
Error:
Connect-Ucs : Connect-Ucs: Connection to 192.168.10.130 Failed.
At line:1 char:23
+ $handle1 = Connect-Ucs &lt;&lt;&lt;&lt;  192.168.10.130 -NotDefault -Credential $cred
    + CategoryInfo          : NotSpecified: (:) [Connect-Ucs], Exception
    + FullyQualifiedErrorId : Cisco.Ucs.Cmdlets.ConnectUcs
Any pointers or suggenstions would be very much helpful.
 
Thank You
Murali
 </summary>
    <dc:creator>Murali K</dc:creator>
    <dc:date>2012-05-09T22:22:48Z</dc:date>
  </entry>
</feed>

