Unix/Linux OS/Powercli command

Advertisement


Question
what is the powercli command to assign a network to a virtual machine?

what is the powercli command to remove a network?

Answer
It depends on your Virtualization Platform.
I will use some material from Internet that already address your issue:
http://forums.trainsignal.com/showthread.php?t=1598

Also, these commands:
Set-NetworkAdapter [-NetworkAdapter] <NetworkAdapter[]> [-MacAddress <String>] [-NetworkName <String>] [-StartConnected [<Boolean>]] [-Connected [<Boolean>]] [-WakeOnLan [<Boolean>]] [-Type <VirtualNetworkAdapterType>] [-PortKey <String>] [-DistributedSwitch <DistributedSwitch>] [-WhatIf] [-Confirm] [<CommonParameters>]

Get-NetworkAdapter to retrieve the existing adapters from a VM.
*** Get-NetworkAdapter -VM MyVM | Set-NetworkAdapter -Connected ...
*** Get-NetworkAdapter -VM $TargetGuestName | Set-NetworkAdapter -NetworkName 'test18net'

Hope it helps  

Unix/Linux OS

All Answers


Answers by Expert:


Ask Experts

Volunteer


Denis Mello

Expertise

I have been working with Linux distributions over the last 3 years. I have experience with Linux Security, shell-scripts and network troubleshooting.

Experience

Configuring IMAP, Sendmail, Samba and network connections. Also developed shell-scripts to automated basic functions.
Expert in network security (honeypots, vulnerabilities, tools)

Education/Credentials
Graduated in Mechatronic Engineering, concluded part of a Master Degree in Materials Engineering. Master Business administrator (IT Management).
Microsoft Certified (MCP), Linux LPI, IBM Cerfied in Rational and SAP Netweaver Consultant.

©2016 About.com. All rights reserved.