일상다반사 로그

VMware esxi Host Commands 본문

IT/VMWARE

VMware esxi Host Commands

일상다반사로그 2017. 7. 11. 20:18
반응형

1.Host Information

 

Displsy ESXi Version and Build

# esxcli system version get

 

Display ESXi Hardware Platform

# esxcli hgurrdware playform get

 

List CPU Processors

# esxcli hardware cpu list

 

List Memory

# esxcli hardware memory get

 

List VMKernel Modules

# esxcli system module list

 

List Advanced Settings

# esxcli system settings advanced list

 

2. Host Configurations

 

Manage and Configure Firewall Rules

# esxcli network firewall

 

 

Configure Remote Syslog Host

# esxcli system syslog config set --loghost=<ipaddress1>,<ipaddress2>

 

# esxcli network firewall ruleset set --enabled=true -- ruleset-id=syslog

 

# esxcli system syslog reload

 

Configure Remote Core Dump

# esxcli system coredump network set --interface-name=<vmk>--server-ipv4=<ipaddress> --server-port=<port>

 

# esxcli system coredump network set --enabled=true

 

Verify and Check Core Dump Server

# esxcli system coredump get

 

# esxcli system coredump check

 

Configure SNMP

# esxcli system snmp set -enabled=true--communities=<community>--targets=<ipaddress1>@<port>,<ipaddress2>@<port>

 

# esxcli system snmp get

 

# esxcli system snmp test

 

3. Join Host to Active Directory

 

Join host to AD Domain(vCLI only)

# vicfg-authconfig --authscheme AD --joindomain <domainnam>--adusrename <aduser>

 

Verify AD Domain(vCLI only)

# vicfg-authconfig --authscheme AD --currentdomain

 

Remove host from AD Domain(vCLI)

# vicfg-authconfig -authscheme AD --leavecurrentdomain

 

4. Host Operations

 

Enter/Exit Maintenance Mode

# esxcli system maintenanceMode set --enabled=[ true | false ]

 

Shutdown/Reboot Host

# esxcli system shutdown reboot --delay=[60]--reason=["installing new vib"]

 

5. Host Configuration Backup/Restore

 

Backup Host Configuration

# vicfg-cfgbackup --save </path/to/filename>

 

Restore host Configuration

# vicfg-cfgbakcup --load </path/to/filename>

 

6. Patching

 

Upload VIB to ESXi Datastore

# vifs --put /path/to/patch.zip "[datastore1] patch.zip"

 

Install VIB

# esxcli software vib instatll--depot=/vmfs/volumes/datastore1/patch.zip

 

Verify VIB installation

# esxcli software vib list

 

반응형

'IT > VMWARE' 카테고리의 다른 글

VMware - Network Commands  (0) 2017.07.15
VMware - Virtual Machine Commands  (0) 2017.07.15
Comments