ESXI Konsole: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 +
=virtuell machines=
 +
==list==
 +
vim-cmd vmsvc/getallvms
 +
==state=
 +
vim-cmd vmsvc/power.getstate <vmid>
 +
==power on==
 +
vim-cmd vmsvc/power.on <vmid>
 +
==power off==
 +
vim-cmd vmsvc/power.off <vmid>
 +
 +
 
=Switch=
 
=Switch=
 
==Switchs listen==
 
==Switchs listen==

Version vom 28. März 2014, 19:14 Uhr

virtuell machines

list

vim-cmd vmsvc/getallvms 

=state

vim-cmd vmsvc/power.getstate <vmid>

power on

vim-cmd vmsvc/power.on <vmid> 

power off

vim-cmd vmsvc/power.off <vmid> 


Switch

Switchs listen

esxcfg-vswitch -l

Switch löschen

esxcfg-vswitch -d vSwitch1

Netzwerkkarten listen

esxcfg-vmknic -l

Tcpdump

Interface vmk1

tcpdump-uw -i vmk1

Time set

esxcli system time set -H 15 -m 27 -s 40

Arp

Arptabelle anzeigen

esxcli network ip neighbor list


muss noch rein

esxcfg-vswitch -a vSwitch0
esxcfg-vswitch -a vSwitch1
esxcfg-vswitch -L vmnic0 vSwitch0
esxcfg-vswitch -L vmnic1 vSwitch1
esxcfg-vswitch -A pGroup0 vSwitch0
esxcfg-vswitch -A pGroup1 vSwitch1
esxcfg-vmknic -a -i 172.20.0.101 -n 255.255.0.0 pGroup0
esxcfg-vmknic -a -i 172.21.0.101 -n 255.255.0.0 pGroup1

ipadressen anzeigen

esxcli network ip interface ipv4 get -i vmk1

esxcli

Usage: esxcli [options] {namespace}+ {cmd} [cmd options]

Options:
 --formatter=FORMATTER
                       Override the formatter to use for a given command. Available formatter: xml, csv, keyvalue
 --debug               Enable debug or internal use options
 --version             Display version information for the script
 -?, --help            Display usage information for the script
Available Namespaces:
 esxcli                Commands that operate on the esxcli system itself allowing users to get additional information.
 fcoe                  VMware FCOE commands.
 hardware              VMKernel hardware properties and commands for configuring hardware.
 iscsi                 VMware iSCSI commands.
 network               Operations that pertain to the maintenance of networking on an ESX host. This includes a wide variety of commands to manipulate virtual networking components  (vswitch, portgroup, etc) as well as local host IP, DNS and general
                       host networking settings.
 software              Manage the ESXi software image and packages
 storage               VMware storage commands.
 system                VMKernel system properties and commands for configuring properties of the kernel core system.
 vm                    A small number of operations that allow a user to Control Virtual Machine operations.