« Back to Microsoft Discussions

How to get Fabric Interconnects with Powershell?

Combination View Flat View Tree View
Threads [ Previous | Next ]
How to get Fabric Interconnects with Powershell? These are displayed in Cisco UCS Manager as top level objects. Can't find cmdlet to get these

Found it. Can query for class: networkElement

Can you expound? Thanks

Use the class networkElement in a configResolveClass query with the Invoke-XmlCommand as shown below

PS C:\> Connect-UCSM 172.21.60.72

cmdlet Connect-UCSM at command pipeline position 1
Supply values for the following parameters:
Credential
UCS Connection successful


Name : 172.21.60.72
ConnectionInstance : CurrentUCSMInstance
Port : 443
User : admin
UserRole : admin
UserPrivilege : read-only
SSL : True
SessionID : web_57037_A
LastUpdatedTime : 10/6/2011 2:03:25 PM
RefreshPeriod : 600
Credential : System.Management.Automation.PSCredential
UcsUri : https://172.21.60.72/nuova
Cookie : 1317924195/47b6dbbe-00e2-4e88-909c-e03258a5935f
Version : 1.4(1j)



PS C:\> Invoke-XmlCommand -XMLStringList "<configResolveClass classId='networkElement' inHierarchical='false' />"


adminInbandIfState : disable
dn : sys/switch-A
fltAggr : 12884901888
id : A
inbandIfGw : 0.0.0.0
inbandIfIp : 0.0.0.0
inbandIfMask : 0.0.0.0
inbandIfVnet : 0
model : N10-S6100
oobIfGw : 172.21.60.65
oobIfIp : 172.21.60.70
oobIfMask : 255.255.255.224
operability : operable
revision : 0
serial : SSI12480267
totalMemory : 3549
vendor : Cisco Systems, Inc.

adminInbandIfState : disable
dn : sys/switch-B
fltAggr : 4294967297
id : B
inbandIfGw : 0.0.0.0
inbandIfIp : 0.0.0.0
inbandIfMask : 0.0.0.0
inbandIfVnet : 0
model : N10-S6100
oobIfGw : 172.21.60.65
oobIfIp : 172.21.60.71
oobIfMask : 255.255.255.224
operability : operable
revision : 0
serial : SSI12480261
totalMemory : 3549
vendor : Cisco Systems, Inc.


Hope that helps

Thanks. I was just working on uploading this. I have had great success. Got all the info needed for our partner to register my equipment wit smartnet after a big mixup in delivery. Your update was quite timely and should be a help to others. There is so much we can find out with so little scripting.