cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
119
Views
5
Helpful
1
Replies
Highlighted

Mapping ucs-c ports connection to FI

Hello,

There is any command in the CLI or script that can map the connection of ucs-c adapter ports to FI server ports?

like in Hybrid display that display the actual ports that the server LOM connected to in the FI.

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Mapping ucs-c ports connection to FI

With UCS power tools/powershell, after connecting to to ucsm via connect-ucs x.x.x.x

you could run Get-UcsAdaptorextethif

 

AdapterId : 1
AdminState : enabled
AggrPortId : 0
ChassisId : N/A
Discovery : present
EpDn :
Id : 1
IfRole : unknown
IfType : physical
LinkState : up
LldpMac : E0:0E:DA:BF:60:BC
Locale :
Mac : E0:0E:DA:BF:60:B8
MacAddrType : operational
Name :
OperState : link-up
OperStateDesc :
PeerAggrPortId : 0
PeerChassisId : N/A
PeerDn : sys/switch-A/slot-1/switch-ether/port-4
PeerPortId : 4
PeerSlotId : 1
PhysEpDn :
PortId : 1
Purpose : general
Sacl :
Side : left
SlotId : 1
SwitchId : A
Transport :
Type :
Ucs : HX-2-FI
Dn : sys/rack-unit-4/adaptor-1/ext-eth-1
Rn : ext-eth-1
Status :
XtraProperty : {}

AdapterId : 1
AdminState : enabled
AggrPortId : 0
ChassisId : N/A
Discovery : present
EpDn :
Id : 2
IfRole : unknown
IfType : physical
LinkState : up
LldpMac : E0:0E:DA:BF:60:C0
Locale :
Mac : E0:0E:DA:BF:60:B9
MacAddrType : operational
Name :
OperState : link-up
OperStateDesc :
PeerAggrPortId : 0
PeerChassisId : N/A
PeerDn : sys/switch-B/slot-1/switch-ether/port-4
PeerPortId : 4
PeerSlotId : 1
PhysEpDn :
PortId : 2
Purpose : general
Sacl :
Side : right
SlotId : 1
SwitchId : B
Transport :
Type :
Ucs : HX-2-FI
Dn : sys/rack-unit-4/adaptor-1/ext-eth-2
Rn : ext-eth-2
Status :
XtraProperty : {}

 

With a little formatting/pruning, maybe something like:

Get-UcsAdaptorextethif | select Dn,PeerDn

Dn PeerDn
-- ------
sys/chassis-1/blade-1/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-1
sys/chassis-1/blade-1/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-1
sys/chassis-1/blade-2/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-3
sys/chassis-1/blade-2/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-3
sys/chassis-1/blade-3/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-5
sys/chassis-1/blade-3/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-5
sys/chassis-1/blade-4/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-7
sys/chassis-1/blade-4/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-7
sys/rack-unit-1/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-1
sys/rack-unit-1/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-1
sys/rack-unit-2/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-2
sys/rack-unit-2/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-2
sys/rack-unit-3/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-3
sys/rack-unit-3/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-3
sys/rack-unit-4/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-4
sys/rack-unit-4/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-4

 

Get-UcsAdaptorextethif | select Dn,SwitchId,Slotid,portid

Dn SwitchId SlotId PortId
-- -------- ------ ------
sys/chassis-1/blade-1/adaptor-1/ext-eth-1 A 1 1
sys/chassis-1/blade-1/adaptor-1/ext-eth-5 B 1 5
sys/chassis-1/blade-2/adaptor-1/ext-eth-1 A 2 1
sys/chassis-1/blade-2/adaptor-1/ext-eth-5 B 2 5
sys/chassis-1/blade-3/adaptor-1/ext-eth-1 A 3 1
sys/chassis-1/blade-3/adaptor-1/ext-eth-5 B 3 5
sys/chassis-1/blade-4/adaptor-1/ext-eth-1 A 4 1
sys/chassis-1/blade-4/adaptor-1/ext-eth-5 B 4 5
sys/rack-unit-1/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-1/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-2/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-2/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-3/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-3/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-4/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-4/adaptor-1/ext-eth-2 B 1 2

 

 

Get-UcsAdaptorextethif | select Dn,SwitchId,Slotid,portid | Export-Csv c:\temp\test.csv

 

Kirk....

 

1 REPLY 1
Cisco Employee

Re: Mapping ucs-c ports connection to FI

With UCS power tools/powershell, after connecting to to ucsm via connect-ucs x.x.x.x

you could run Get-UcsAdaptorextethif

 

AdapterId : 1
AdminState : enabled
AggrPortId : 0
ChassisId : N/A
Discovery : present
EpDn :
Id : 1
IfRole : unknown
IfType : physical
LinkState : up
LldpMac : E0:0E:DA:BF:60:BC
Locale :
Mac : E0:0E:DA:BF:60:B8
MacAddrType : operational
Name :
OperState : link-up
OperStateDesc :
PeerAggrPortId : 0
PeerChassisId : N/A
PeerDn : sys/switch-A/slot-1/switch-ether/port-4
PeerPortId : 4
PeerSlotId : 1
PhysEpDn :
PortId : 1
Purpose : general
Sacl :
Side : left
SlotId : 1
SwitchId : A
Transport :
Type :
Ucs : HX-2-FI
Dn : sys/rack-unit-4/adaptor-1/ext-eth-1
Rn : ext-eth-1
Status :
XtraProperty : {}

AdapterId : 1
AdminState : enabled
AggrPortId : 0
ChassisId : N/A
Discovery : present
EpDn :
Id : 2
IfRole : unknown
IfType : physical
LinkState : up
LldpMac : E0:0E:DA:BF:60:C0
Locale :
Mac : E0:0E:DA:BF:60:B9
MacAddrType : operational
Name :
OperState : link-up
OperStateDesc :
PeerAggrPortId : 0
PeerChassisId : N/A
PeerDn : sys/switch-B/slot-1/switch-ether/port-4
PeerPortId : 4
PeerSlotId : 1
PhysEpDn :
PortId : 2
Purpose : general
Sacl :
Side : right
SlotId : 1
SwitchId : B
Transport :
Type :
Ucs : HX-2-FI
Dn : sys/rack-unit-4/adaptor-1/ext-eth-2
Rn : ext-eth-2
Status :
XtraProperty : {}

 

With a little formatting/pruning, maybe something like:

Get-UcsAdaptorextethif | select Dn,PeerDn

Dn PeerDn
-- ------
sys/chassis-1/blade-1/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-1
sys/chassis-1/blade-1/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-1
sys/chassis-1/blade-2/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-3
sys/chassis-1/blade-2/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-3
sys/chassis-1/blade-3/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-5
sys/chassis-1/blade-3/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-5
sys/chassis-1/blade-4/adaptor-1/ext-eth-1 sys/chassis-1/slot-1/host/port-7
sys/chassis-1/blade-4/adaptor-1/ext-eth-5 sys/chassis-1/slot-2/host/port-7
sys/rack-unit-1/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-1
sys/rack-unit-1/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-1
sys/rack-unit-2/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-2
sys/rack-unit-2/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-2
sys/rack-unit-3/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-3
sys/rack-unit-3/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-3
sys/rack-unit-4/adaptor-1/ext-eth-1 sys/switch-A/slot-1/switch-ether/port-4
sys/rack-unit-4/adaptor-1/ext-eth-2 sys/switch-B/slot-1/switch-ether/port-4

 

Get-UcsAdaptorextethif | select Dn,SwitchId,Slotid,portid

Dn SwitchId SlotId PortId
-- -------- ------ ------
sys/chassis-1/blade-1/adaptor-1/ext-eth-1 A 1 1
sys/chassis-1/blade-1/adaptor-1/ext-eth-5 B 1 5
sys/chassis-1/blade-2/adaptor-1/ext-eth-1 A 2 1
sys/chassis-1/blade-2/adaptor-1/ext-eth-5 B 2 5
sys/chassis-1/blade-3/adaptor-1/ext-eth-1 A 3 1
sys/chassis-1/blade-3/adaptor-1/ext-eth-5 B 3 5
sys/chassis-1/blade-4/adaptor-1/ext-eth-1 A 4 1
sys/chassis-1/blade-4/adaptor-1/ext-eth-5 B 4 5
sys/rack-unit-1/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-1/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-2/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-2/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-3/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-3/adaptor-1/ext-eth-2 B 1 2
sys/rack-unit-4/adaptor-1/ext-eth-1 A 1 1
sys/rack-unit-4/adaptor-1/ext-eth-2 B 1 2

 

 

Get-UcsAdaptorextethif | select Dn,SwitchId,Slotid,portid | Export-Csv c:\temp\test.csv

 

Kirk....

 

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards