Tuesday, October 29, 2019

Some cool esxcli system commands

1. How to view your vSphere version

# esxcli system version get
   Product: VMware ESXi
   Version: 6.7.0
   Build: Releasebuild-8169922
   Update: 0
   Patch: 0

2. To view hostname and domain name

# esxcli system hostname get
   Domain Name: vclass.local
   Fully Qualified Domain Name: sa-esxi-02.vclass.local
   Host Name: sa-esxi-02

3. To view local users

# esxcli system account list
User ID  Description
-------  -------------------------------------------
root     Administrator
dcui     DCUI User
vpxuser  VMware VirtualCenter administration account

4. To view permissions for local users

# esxcli system permission list
Principal  Is Group  Role   Role Description
---------  --------  -----  ------------------
dcui          false  Admin  Full access rights
root          false  Admin  Full access rights
vpxuser       false  Admin  Full access rights

5. To view specific advanced settings

# esxcli system settings advanced list -t UserVars | more
   Path: /UserVars/ActiveDirectoryPreferredDomainControllers
   Type: string
   Int Value: 0
   Default Int Value: 0
   Min Value: 0
   Max Value: 0
   String Value:
   Default String Value:
   Valid Characters: *
   Description: Preferred Domain Controllers for Active Directory

   Path: /UserVars/ActiveDirectoryVerifyCAMCertificate
   Type: integer
   Int Value: 1
   Default Int Value: 1
   Min Value: 0
   Max Value: 1
   String Value:
   Default String Value:
   Valid Characters:
   Description: Enable or disable verification of SSL certificate for vSphere Authentication Proxy server

   Path: /UserVars/ESXiShellTimeOut
   Type: integer
   Int Value: 0
   Default Int Value: 0
   Min Value: 0
   Max Value: 86400
   String Value:
   Default String Value:
   Valid Characters:
   Description: Time before automatically disabling local and remote shell access (in seconds, 0 disables).  Takes effect after the services are restarted.
...

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.