Blogs

Introduction

Racktables version 0.20.1 has new feature support for Cisco UCS environments. Racktables is a structured and robust open-source solution for datacenter asset management, that helps document hardware assets, network addresses, space in racks and network configuration.
...Read More

 

I just added a new section to the UCS PowerTool section on the UCS CDN site that will provide a central repository of PoSh scripts, examples, and videos that detail use cases and examples for UCS PowerTool.

Here is the link:
http://developer.cisco.com/web/unifiedcomputing/powertool-examples
...Read More

 

I would like to announce the general availability of goUCS version 2.0 on Cisco Developer Network. A lot of time and effort has been put into the newest goUCS release, with some of the main features being detailed below.

 

Lest anyone thinks I have forgotten about my blogging on the UCS API, I have not, but I have written a blog recently for the Data Center blog and it is applicable to the UCS so I thought I would share the link here along with the blog into.

Early in my career I moved quite a bit, new job, growing family, whatever the reason it seemed like every two or three years we were packing up and going to a new place and meeting our new neighbors.
...Read More

 

Updated and completely revised version 2.0 MP for Cisco UCS is now available for download. Please check the release notes for the complete list of bug fixes ...Read More

 

Showing 1 - 5 of 16 results.
Items per Page 5
of 4

Forums

« Back to Microsoft Discussions

RE: Connect-UCS error

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi-
 
Greetings!
 
I am tryinig to automate the login with ucs. I have downloaded & instaleld the UCS simulator & goucs 2.0. I am able to login via the Browser using the IP & 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 <<<<  192.168.10.130 -NotDefault -Credential $cred
    + CategoryInfo          : NotSpecified: (emoticon [Connect-Ucs], Exception
    + FullyQualifiedErrorId : Cisco.Ucs.Cmdlets.ConnectUcs
Any pointers or suggenstions would be very much helpful.
 
Thank You
Murali
 

Murali,

The usage is correct.

PS C:\> $user = "admin"
PS C:\> $password = "xxxxxx" | ConvertTo-SecureString -AsPlainText -Force
PS C:\> $cred = New-Object system.Management.Automation.PSCredential($user, $password)
PS C:\> $handle1 = Connect-Ucs ucs-pod01 -NotDefault -Credential $cred
PS C:\> $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:\>


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

RE: Connect-UCS error
Answer
10/2/12 11:04 AM as a reply to Bhaskar Jayakrishnan.
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.
<< Char: 23
+ $ Handle1 = Connect-Ucs <<<< "10.87.7.17"-Credential $ cred
     + CategoryInfo: NotSpecified: ( emoticon [Connect-Ucs] Exception
     + FullyQualifiedErrorId: Cisco.Ucs.Cmdlets.ConnectUcs >>
 
please tell me how to get to a switch via powershell and even change its VLAN as
 
thank you for any response.

Collateral


No files available