vmware vcap-dca exam command-line cheat sheet v1.0

Upload: predrag-terzic

Post on 04-Jun-2018

260 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    1/19

    man ls

    ls -l

    cd /vmfs/volumes

    pwd

    find /vmfs/volumes/ -iname"*delta.vmdk"

    find /vmfs/volumes/ -iname"*.vmsn"

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    2/19

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    3/19

    vihost

    vicfg-snmp vifs vicfg-user vicfg-cfgbackup vihostupdate vmkfstools esxcli vicfg-ipsec

    addserverremoveserverrotatepasswordlistservers

    vifp addserver servername

    vifp listservers

    Vifp removeserver servername

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    4/19

    vifptarget -set esxi-02

    vifptarget -clear

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    5/19

    vicfg-hostops --operationenter

    vicfg-hostops --operation exit

    vicfg-hostops --operation reboot --force

    vicfg-cfgbackup -s /tmp/ESX_181842_backup.txt

    vicfg-cfgbackup -l /tmp/ESX_181842_backup.txt

    vmkfstools c 10GB

    vmkfstools X 10g

    vmkfstools P

    vifs -D [iSCSI-1]

    vifs --move '[osdc-cx700-03]vcli_test/test_doc''[osdc-cx700-03] winxpPro-

    sp2/test_doc

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    6/19

    svmotion --interactive

    vmware-cmd -l

    vicfg-mpath -l

    vicfg-mpath --list-compact

    vicfg-mpath --list-plugins

    esxcli nmpdevice setpolicy --devicenaa.xxx --psp VMW_PSP_RR

    vicfg-vmknic -6 true

    vicfg-vmknic list

    vicfg-vmknic --add --ip172.16.1.200 --netmask255.255.255.0 -p "iSCSI-1" -mtu 9000

    vicfg-vswitch U

    vicfg-vswitch L

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    7/19

    vicfg-vswitch B vSwitch0

    vicfg-vswitch -a vSwitch0

    vicfg-vswitch --mtu 9000vSwitch0

    vicfg-vswitch -add-pg iSCSI-1

    vSwitch0

    vicfg-vswitch -L vmnic5vSwitch0

    add-dvp-uplink | P

    del-dvp-uplink | Q dvp

    dvp | -V

    vicfg-vswitch Q - V

    vicfg-vswitch P - V

    vicfg-snmp server username password -t target

    address>@/

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    8/19

    vicfg-snmp server esxi-02 t

    vcenter/public

    vicfg-snmp server username password enable

    vicfg-snmp server username password -p

    vicfg-volume l

    vicfg-volume r file.csv

    esxtop c

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    9/19

    vm-support s d duration Iinterval

    esxtop R

    vscsistats L

    vscsistats S W id

    vscsistats P all W id

    vscsistats x

    vicfg-scsidevs vmfs (list ID naa.)

    esxcli nmp satp list

    esxcli nmp psp list

    esxcli nmp satp setdefaultpsppsp VMW_PSP_RR satpVMW_SATP_DEFAULT_AA

    esxcli nmp device setpolicy --device naa.xxx --pspVMW_PSP_RR

    esxcli server --username root password nmp device list

    esxcli nmproundrobin getconfig --devicena.xxx

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    10/19

    esxcli nmproundrobin setconfig --type=iops --iops 4200 --devicenaa.xxx

    esxcli nmp satp setdefaultpsppsp VMW_PSP_RR satpVMW_SATP_SYMM

    esxcli swiscsi nic add -n vmk1-d vmhba33

    esxcli swiscsi nic add n d

    esxcli swiscsi nic list

    vicfg-rescan vmhba33

    esxcli vms vm list

    esxcli vms vm kill --type --world-id

    vmware-umds.exe --set-config enable host 1 enable win 0 enable

    vmware-umds.exe --download

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    11/19

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    12/19

    vicfg-dns

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    13/19

    -a --add

    -r --remove

    vicfg-nas l

    vicfg-nas --add --nasserverdir42.eng.vmware.com -s

    /nfsstore-dir42

    vicfg-rescan vmhba1

    vicfg-scsidevs -list

    vicfg-scsidevs vmfs

    vicfg-scsidevs -hbas

    esxcfg-firewall -o

    514,udp,out,syslog

    esxcfg-firewall c514,udp,out,syslog

    esxcfg-firewall q incoming oesxcfg-firewall q outgoing

    esxcfg-firewall -

    allowOutgoing -blockIncoming

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    14/19

    esxcfg-firewall -

    allowIncoming allowOutgoing

    esxcfg-firewall -blockIncoming blockOutgoing

    vm-support

    vihostupdate --query

    vihostupdate.pl --server -i -b

    vicfg-user -e user -o list

    vicfg-user -e user -o add -luser27 -p 27_password

    vicfg-user -egroup -o add -d group40 -D 55

    das.vmCpuMinMHz =

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    15/19

    das.usedefaultisolationaddress = false

    das.failuredetectiontime =60000

    das.isolationaddress1 todas.isolationaddress10 =

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    16/19

    das.preferredPrimaries =172.16.1.1,172.16.1.2,172.16.1.3

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    17/19

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    18/19

    Set-ExecutionPolicyremotesigned

    connect-viservervcenter01

    disconnect-viservervcenter01

    Get-vm

    Get-vm DC01Get-command

    Get-vm DC01| get-member

    Get-VM | where-object{$_.numcpu gt 1}

    Get-help *vmotion*

    Get-help get-VM -ExamplesGet-powerCLIVersion

  • 8/13/2019 VMware VCAP-DCA Exam Command-line Cheat Sheet v1.0

    19/19