Vsphere Command-Line Interface.pdf
(
2066 KB
)
Pobierz
vSphere Command-Line Interface Installation and Reference Guide
vSphere Command-Line Interface
Installation and Reference Guide
ESX/ESXi 4.0
vCenter Server 4.0
EN-000111-00
vSphere Command-Line Interface Installation and Reference Guide
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
docfeedback@vmware.com
© 2008, 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual
property laws. VMware products are covered by one or more patents listed at
http://www.vmware.com/go/patents
.
VMware, the VMware “boxes” logo and design, Virtual SMP, and VMotion are registered trademarks or trademarks of
VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks
of their respective companies.
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2
VMware, Inc.
Contents
About This Book 7
1
vSphere CLI Installation, Execution, and Command Overviews 9
Installing and Using vSphere CLI Commands 9
Installing vSphere CLI and Running Commands on Linux 10
Unpacking and Installing the vSphere CLI Package 11
Running vSphere CLI Commands 11
Uninstalling the vSphere CLI Package 12
Installing vSphere CLI and Running Commands on Windows 12
Uninstalling the vSphere CLI Package 13
Installing vMA and Running Commands from vMA 13
Specifying Authentication Information 13
Order of Precedence 14
Using a Session File 14
Using Environment Variables 15
Using a Configuration File 15
Using Command‐Line Options 15
Using Microsoft Windows Security Support Provider Interface (SSPI) 16
Available Options for vSphere CLI Execution 16
Using vSphere CLI Commands in Scripts 18
List of Available Commands 19
Supported Platforms for Commands 20
Commands with an esxcfg Prefix 22
2
vSphere CLI Reference 25
Storage Management Commands 25
Diagnostic Partition Management with vicfg‐dumppart 25
Basic Storage Array Management with vicfg‐mpath 27
NAS File System Management with vicfg‐nas 28
Available LUN Discovery with vicfg‐scsidevs 29
Rescan Operations with vicfg‐rescan 30
Networking Commands 31
DNS Configuration Specification with vicfg‐dns 31
Physical NIC Management with vicfg‐nics 32
NTP Server Specification with vicfg‐ntp 33
Route Entry Manipulation with vicfg‐route 34
VMkernel NICs Management with vicfg‐vmknic 35
Virtual Switch Management with vicfg‐vswitch 36
System Management Commands 39
Using resxtop for Performance Monitoring 39
Configuration Information Backup with vicfg‐cfgbackup 39
SNMP Management with vicfg‐snmp 40
Syslog Server Specification with vicfg‐syslog 41
Update Management with vihostupdate 42
Virtual Machine Management Commands 44
Virtual Machine Migration with svmotion 44
VMware, Inc.
3
vSphere Command-Line Interface Installation and Reference Guide
Miscellaneous Management Commands 46
Advanced Management with vicfg‐advcfg 46
VMkernel Module Manipulation with vicfg‐module 47
User and Group Management with vicfg‐user 48
Volume Management with vicfg‐volume 49
File System Manipulation with vifs 50
3
File System Management with vmkfstools 53
vmkfstools Command Syntax 53
Supported Command‐Specific Options 54
Supported Targets 55
File System Target 55
Disk Partition Target 55
Device Target 55
vmkfstools File System Options 55
VMFS File System Creation 55
Attribute Listing for a VMFS Volume 56
File System Partition Extension by Spanning 57
vmkfstools Virtual Disk Options 57
Supported Disk Formats 57
Creating Virtual Disks 58
Initializing Virtual Disks 58
Inflating Thin Virtual Disks 59
Deleting Virtual Disks 59
Renaming Virtual Disk 59
Cloning Virtual or Raw Disks 59
Migrating VMware Workstation and VMware GSX Server Virtual Machines 60
Extending Virtual Disks 60
Creating Virtual Compatibility Mode Raw Device Mappings 61
Creating Physical Compatibility Mode Raw Device Mappings 61
Listing RDM Attributes 61
Displaying Virtual Disk Geometry 62
4
iSCSI Storage Management with vicfg‐iscsi 63
vicfg‐iscsi Command Syntax 63
vicfg‐iscsi Options 64
vicfg‐iscsi Discovery Target Options 67
Listing Dynamic or Static Discovery Targets 67
Adding Dynamic or Static Discovery Targets 67
Removing Dynamic or Static Discovery Targets 68
vicfg‐iscsi Authentication Options 69
Listing Supported and Enabled Authentication Methods 69
Enabling Authentication 70
Enabling Mutual (Bidirectional) Authentication 70
Returning Authentication to Default Inheritance 71
vicfg‐iscsi Information Retrieval Options 71
External HBA Properties 71
Target Information 72
LUN Information 72
vicfg‐iscsi Physical Network Portal Options 72
Listing Physical Network Portal Information 72
Setting Physical Network Portal Information 72
vicfg‐iscsi Network Options 73
Listing Network Properties 73
Setting Network Properties 73
4
VMware, Inc.
Contents
vicfg‐iscsi Initiator Options 73
Listing Initiator Properties 73
Setting Initiator iSCSI Name or Alias Name 74
vicfg‐iscsi iSCSI Parameter Options 74
Listing iSCSI Parameter Options 74
Listing iSCSI Parameter Option Details 74
Setting iSCSI Parameter Options 75
Returning Parameters to Default Inheritance 75
vicfg‐iscsi Software iSCSI Options 76
Listing Software iSCSI Loading Status 76
Enabling Software iSCSI 76
Disabling Software iSCSI 76
Tasks Required for Software iSCSI Setup 76
Tasks Required for Hardware iSCSI Setup 77
5
Virtual Machine Management with vmware‐cmd 79
Connection Options for vmware‐cmd 79
General Options for vmware‐cmd 80
Server Options for vmware‐cmd 80
Virtual Machine Options for vmware‐cmd 80
Soft and Hard Power Operations 82
vmware‐cmd Examples 82
6
Storage Path and Storage Plugin Management with esxcli 83
esxcli Command Syntax 83
Help for esxcli 84
Managing NMP with esxcli nmp 84
Device Management with esxcli nmp device 85
esxcli nmp device list 85
esxcli nmp device setpolicy 85
Fixed Path Selection Policy Operations with esxcli nmp fixed 85
esxcli nmp fixed getpreferred 85
esxcli nmp fixed setpreferred 86
Path Operations with esxcli nmp path 86
esxcli nmp path list 86
PSP Operations with esxcli nmp psp 86
esxcli nmp psp getconfig 86
esxcli nmp psp list 87
esxcli nmp psp setconfig 87
Round Robin Operations with esxcli nmp roundrobin 87
esxcli nmp roundrobin getconfig 87
esxcli nmp roundrobin setconfig 88
SATP Operations with esxcli nmp satp 88
esxcli nmp satp addrule 88
esxcli nmp satp deleterule 89
esxcli nmp satp getconfig 89
esxcli nmp satp list 89
esxcli nmp satp listrules 90
esxcli nmp satp setconfig 90
esxcli nmp satp setdefaultpsp 90
VMware, Inc.
5
Plik z chomika:
jax2000
Inne pliki z tego folderu:
Vsphere Command-Line Interface.pdf
(2066 KB)
Introduction To Vsphere.pdf
(694 KB)
Vmware Vsphere 4 Administration Instant Reference.pdf
(6774 KB)
Sybex.VMware.vSphere.4.Administration.Instant.Reference.Dec.2009.pdf
(6797 KB)
VMware Cookbook (2006) 296p 9780596157258 0596157258.pdf
(3533 KB)
Inne foldery tego chomika:
Zgłoś jeśli
naruszono regulamin