cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
306
Views
0
Helpful
0
Replies

Unable disable IPv6 on CIMC over Cisco PowerTools (Set-ImcMgmtIf)

stsk
Level 1
Level 1

I'm working with Cisco PowerTools (2.3.1.5) to take some Settings in IMC (Standalone Rackserver)

I disable ipv6 over Web-Gui and record the Settings with following Cmdlet:

 

$rackUnit = Get-ImcRackUnit -ServerId "1"
$mgmtController = $rackUnit | Get-ImcMgmtController
$mgmtController | Get-ImcMgmtIf -Hierarchy | ConvertTo-ImcCmdlet

I take Setting back and try reproduce my settings and run following Cmdlet to disable ipv6:

 

Get-ImcRackUnit -ServerId "1" | Get-ImcMgmtController | Get-ImcMgmtIf | Set-ImcMgmtIf -AdminDuplex "auto" -AdminNetSpeed "auto" -AutoNeg "enabled" -DdnsDomain "domain.ch" -DdnsEnable "yes" -DdnsRefreshInterval 0 -DhcpEnable "no" -DnsAlternate "192.168.100.1" -DnsPreferred "192.168.101.1" -DnsUsingDhcp "no" -ExtGw "10.0.0.1" -ExtIp "10.0.0.100" -ExtMask "255.255.255.0" -Hostname "server-test" -NicMode "dedicated" -NicRedundancy "none" -V6dhcpEnable "no" -V6dnsAlternate "::" -V6dnsPreferred "::" -V6dnsUsingDhcp "no" -V6extEnabled "no" -V6extGw "::" -V6extIp "::" -V6prefix 64 -VicSlot "riser1" -VlanEnable "no" -VlanId 1 -VlanPriority 0 -XtraProperty @{V6IPAddrCmc1=""; V6IPAddr=""; V6IPAddrCmc2=""; V6IPAddrBmc1=""; V4IPAddr=""; VHostname=""; V6IPAddrBmc2=""; V4IPAddrBmc1=""; V4IPAddrCmc1=""; V4IPAddrBmc2=""; V4IPAddrCmc2=""; } -Force

I become following Error:

Set-ImcMgmtIf : server-test:XML PARSING ERROR: Element 'mgmtIf', attribute 'v6IPAddrBmc1': The attribute 'v6IPAddrBmc1' is not 
allowed.Element 'mgmtIf', attribute 'v6IPAddrCmc1': The attribute 'v6IPAddrCmc1' is not allowed.Element 'mgmtIf', attribute 
'v4IPAddrBmc1': The attribute 'v4IPAddrBmc1' is not allowed.Element 'mgmtIf', attribute 'v4IPAddrCmc1': The attribute 
'v4IPAddrCmc1' is not allowed.Element 'mgmtIf', attribute 'v4IPAddrCmc2': The attribute 'v4IPAddrCmc2' is not allowed.Element 
'mgmtIf', attribute 'v6IPAddr': The attribute 'v6IPAddr' is not allowed.Element 'mgmtIf', attribute 'vHostname': The 
attribute 'vHostname' is not allowed.Element 'mgmtIf', attribute 'v4IPAddr': The attribute 'v4IPAddr' is not allowed.Element 
'mgmtIf', attribute 'v4IPAddrBmc2': The attribute 'v4IPAddrBmc2' is not allowed.Element 'mgmtIf', attribute 
'v6IPAddrCmc2': The attribute 'v6IPAddrCmc2' is not allowed.Element 'mgmtIf', attribute 'v6IPAddrBmc2': The attribute 
'v6IPAddrBmc2' is not allowed.
At line:1 char:100
+ ... ImcMgmtIf | Set-ImcMgmtIf -AdminDuplex "auto" -AdminNetSpeed "auto" - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-ImcMgmtIf], Exception
    + FullyQualifiedErrorId : 300,Cisco.Imc.Cmdlets.SetImcMgmtIf

Now, how i can disable ipv6 over Powershell?

0 Replies 0

Review Cisco Networking for a $25 gift card

Review Cisco Networking for a $25 gift card