R
C
vCenter Server Appliance Configuration
vSphere 6.0
This document supports the version of each product listed and supports all subsequent versions until the document is
replaced by a new edition. To check for more recent editions of this document, see https://www.wendangku.net/doc/911366983.html,/support/pubs .
EN-nnnnnn-00
R
C
vCenter Server Appliance Configuration
2
VMware, Inc.
You can find the most up-to-date technical documentation on the VMware Web site at:https://www.wendangku.net/doc/911366983.html,/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:docfeedback@https://www.wendangku.net/doc/911366983.html,
Copyright ? 2009–2014 VMware, Inc. All rights reserved. Copyright and trademark information .
VMware, Inc.3401 Hillview Ave.Palo Alto, CA https://www.wendangku.net/doc/911366983.html,
R
C
Contents
About vCenter Server Appliance Configuration
5
1vCenter Server Appliance Overview 7
2Configuring the vCenter Server Appliance by Using the vSphere Web Client 9
Edit Access Settings to the vCenter Server Appliance 9
Edit the DNS and IP Address Settings of the vCenter Server Appliance 10
Edit the Firewall Settings of the vCenter Server Appliance 11
Join the vCenter Server Appliance to an Active Directory Domain 12Leave an Active Directory Domain 13Edit the Startup Settings of a Service 13Export a Support Bundle 14
3Configuring the vCenter Server Appliance by Using the Appliance Shell 15
Access the Appliance Shell 15
Enable Bash Shell Access From the Appliance Shell 16
Get Help About the Plug-Ins and API Commands in the Appliance 16Plug-Ins in the vCenter Server Appliance Shell 16
API Commands in the vCenter Server Appliance Shell 17Browse the Log Files by Using the showlog Plug-In 20Configuring SNMP for the vCenter Server Appliance 21
Configuring Time Synchronization Settings in the vCenter Server Appliance 27Managing Local User Accounts in the vCenter Server Appliance 29
Monitoring Health Status and Statistics in the vCenter Server Appliance 31Using the vimtop Plug-In to Monitor the Resource Usage of Services 31
4Configuring the vCenter Server Appliance by Using the Direct Console User
Interface
35
Log In to the Direct Console User Interface 35Change the Password of the Root User 36
Configure the Management Network of the vCenter Server Appliance 36Restart the Management Network of the vCenter Server Appliance 37Enable Access to the Appliance Bash shell 37
Access the Appliance Bash Shell for Troubleshooting 37
Export a vCenter Server Support Bundle for Troubleshooting 38
5Monitoring the Health Status and Resource Usage of Services in the
Appliance
39
Monitoring the Health of Services and Nodes
39
VMware, Inc. 3
R
C
6Managing Services in the vCenter Server Appliance 41
Start, Stop, and Restart Services in the vCenter Server Appliance
41
Index 43
vCenter Server Appliance Configuration
4
VMware, Inc.
R
C
About vCenter Server Appliance Configuration
vCenter Server Appliance Configuration provides information about configuring the vCenter Server Appliance.
Intended Audience
This information is intended for anyone who wants to use the vCenter Server Appliance. The information is written for experienced Windows or Linux system administrators who are familiar with virtual machine technology and data center operations.
VMware Technical Publications Glossary
VMware Technical Publications provides a glossary of terms that might be unfamiliar to you. For definitions of terms as they are used in VMware technical documentation, go to https://www.wendangku.net/doc/911366983.html,/support/pubs .
VMware, Inc.
5
vCenter Server Appliance Configuration
C
R
6 VMware, Inc.
R
C
vCenter Server Appliance Overview
1
The vCenter Server Appliance is a preconfigured Linux-based virtual machine, which is optimized for running vCenter Server and the associated services on Linux.
You can download the vCenter Server Appliance installer, install the VMware Client Integration Plug-In and deploy the vCenter Server Appliance. During the deployment of the appliance, you select whether you want to deploy vCenter Server Appliance with an external Platform Services Controller or
vCenter Server Appliance with an embedded Platform Services Controller. You can also join the
vCenter Server Appliance to the same vCenter Single Sign-On domain as another vCenter Server Appliance or vCenter Server on Windows. See vSphere Installation and Setup .
The vCenter Server Appliance is supported on ESXi 5.5 and later. The appliance package contains the following software:
n SUSE Linux Enterprise Server 11 Update 3 for VMware, 64-bit edition n vFabric Postgres
n vCenter Server 6.0 and vCenter Server 6.0 components
n
vCenter Server Appliance that contains all of the necessary services for running vCenter Server
The vCenter Server Appliance has the following default user names:
n
root user of the appliance Linux operating system with a password that you enter during the deployment of the virtual appliance .
n
administrator@vsphere.local which is the vCenter Single Sign-On user with the password that you enter during the deployment of the appliance.
Initially, only the user administrator@vsphere.local has the privileges to log in to the vCenter Server system. The administrator@vsphere.local user can add an identity source in which additional users and groups are defined to vCenter Single Sign-On or give permissions to the users and groups. For more information, see vSphere Security .
There are three main ways to access the vCenter Server Appliance and to edit the vCenter Server Appliance settings:
n
You can use the vSphere Web Client.
You can navigate to the system configuration settings of the vCenter Server Appliance and modify various settings such as access, network, and firewall settings.
n
You can use the appliance shell.
You can use TTY1 to log in to the console or can use SSH and run configuration, monitoring, and troubleshooting commands in the vCenter Server Appliance.
n
You can use the Direct Console User Interface.
VMware, Inc. 7
R
C
You can use TTY2 to log in to the vCenter Server Appliance Direct Console User Interface to change the password of the root user, configure the network settings, or enable access to the Bash shell or SSH.
vCenter Server Appliance Configuration
8
VMware, Inc.
R
C
Configuring the
vCenter Server Appliance by Using the vSphere Web Client
2
After you deploy the vCenter Server Appliance, you can log in to the vSphere Web Client and edit the appliance settings.
This chapter includes the following topics:
n “Edit Access Settings to the vCenter Server Appliance,” on page 9
n “Edit the DNS and IP Address Settings of the vCenter Server Appliance,” on page 10n “Edit the Firewall Settings of the vCenter Server Appliance,” on page 11
n “Join the vCenter Server Appliance to an Active Directory Domain,” on page 12
n “Leave an Active Directory Domain,” on page 13
n “Edit the Startup Settings of a Service,” on page 13n
“Export a Support Bundle,” on page 14
Edit Access Settings to the vCenter Server Appliance
You can use the vSphere Web Client to enable local and remote access to the appliance.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.
To enable access to the vCenter Server Appliance Bash shell, verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SystemConfiguration.BashShellAdministrators group.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .
4Under Nodes select a node and click the Manage tab.5
Under Common, select Access and click Edit .
VMware, Inc. 9
R
C
6Select how you can access the vCenter Server Appliance.
Option
Description
Enable local login Enables local login to the vCenter Server Appliance console.Enable SSH login Enables SSH access to the vCenter Server Appliance.
Enable Bash shell access
Enables Bash shell access to the vCenter Server Appliance for the number of minutes that you enter.
This option is available only when the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SystemConfiguration.BashShellAdministrators group.
7
Click OK to save the settings.
Edit the DNS and IP Address Settings of the vCenter Server Appliance
After you deploy the vCenter Server Appliance, you can edit the DNS settings and specify which DNS server to use. You can also edit the IP address settings of the vCenter Server Appliance, specify whether to use IPv4 and IPv6 or only IPv6, and how the appliance obtains the IP address .You can edit these settings by using the vSphere Web Client.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .
4Under Nodes select a node and click the Manage tab.5Under Common , select Networking , and click Edit .6
Expand DNS and edit the settings.
Option
Description
Obtain DNS server address automatically
Obtains the DNS settings automatically from the network.
Enter settings manually
Lets you specify the DNS address settings manually. If you select this option, you must provide:n Hostname
Name of the vCenter Server Appliance machine.n Preferred DNS server
IP address of the preferred DNS server.n Alternate DNS server
IP address of the alternate DNS server.n
Search domains
Restricts the domain when looking up an address. Domains that you type, are searched in the order you list them, and the search stops when a valid name is found.
7
Expand the network interface name to edit the IP address settings.
vCenter Server Appliance Configuration
10
VMware, Inc.
R
C
8Edit the IPv4 address settings.
Option
Description
No IPv4 settings
Disables the IPv4 address. The appliance uses only IPv6 address.Obtain IPv4 settings automatically Obtains the IPv4 address for the appliance automatically from the network .
Use the following IPv4 settings
Uses an IPv4 address that you set up manually. You must type the IP address, subnet prefix length, and the default gateway.
9
Edit the IPv6 settings.
Option
Description
Obtain IPv6 settings
automatically through DHCP Obtains IPv6 addresses of the appliance automatically from the network by using DHCP.
Obtain IPv6 settings
automatically through Router Advertisement Obtains IPv6 addresses of the appliance automatically from the network by using router advertisement.
Static IPv6 addresses
Uses static IPv6 addresses that you set up manually.1Click the Add icon ().2Type the IPv6 address and the subnet prefix length.3Click OK .
4
(Optional) Edit the default gateway.
You can select to obtain the IPv6 settings automatically through both DHCP and router advertisement.You can also assign static IPv6 address at the same time.10
(Optional) Delete a dynamic IPv6 address.a Click Remove addresses .
b Select the IP address to delete and click the Delete icon ().
c Click OK .
11
Click OK to save your edits.
Edit the Firewall Settings of the vCenter Server Appliance
After you deploy the vCenter Server Appliance, you can edit the firewall settings of the
vCenter Server Appliance and can create firewall rules. You can edit the firewall settings by using the vSphere Web Client.
By using the firewall rules, you can allow or block the traffic between the vCenter Server Appliance and specific servers, hosts, or virtual machines.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .
4Under Nodes select a node and click the Manage tab.5
Under Advanced , select Firewall and click Edit .
Chapter 2 Configuring the vCenter Server Appliance by Using the vSphere Web Client
VMware, Inc.
11
R
C
6Edit the firewall settings.
Option
Action Add a firewall rule
a Click the Add icon () to create a new firewall rule.
b Select a network interface of the virtual machine .
c Type an IP address of the network to apply this rule on.
The IP address can be IPv4 and IPv6 address.d Type a subnet prefix length.
e
From the Action drop-down menu, select whether to block or to allow the connection between the vCenter Server Appliance and the network that you specified.f
Click OK .
Edit a firewall rule
a Click the Edit icon () to edit a firewall rule.
b Edit the settings of the rule.c
Click OK .
Prioritize the rules a Click the down or up arrows to move a rule downwards or upwards in the list of rules.
Delete a firewall rule
a Select a rule from the list, and click the Delete icon ().b
Click OK .
7
Click OK to save your edits.
Join the vCenter Server Appliance to an Active Directory Domain
After you deploy the vCenter Server Appliance, you can log in to the vSphere Web Client and join the vCenter Server Appliance to an Active Directory domain.
You can join only a Platform Services Controller or a vCenter Server Appliance with an embedded Platform Services Controller to an Active Directory domain.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .
4Under Nodes select a node and click the Manage tab.5Under Advanced, select Active Directory and click Join .
6Type the Active Directory domain, organization unit, user name, and password.7Click OK to join the vCenter Server Appliance to the Active Directory domain.
8
Click the Actions menu, and select Reboot to restart the appliance so that the changes are applied.
vCenter Server Appliance Configuration
12
VMware, Inc.
R
C
Leave an Active Directory Domain
After you joined the vCenter Server Appliance, you can log in to the vSphere Web Client and set up the vCenter Server Appliance to leave the Active Directory domain.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .
4Under Nodes select a node and click the Manage tab.5Under Advanced, select Active Directory and click Leave .6Type the Active Directory user name and password.7Click OK to leave the Active Directory domain.
8
Click the Actions menu, and select Reboot to restart the appliance so that the changes are applied.
Edit the Startup Settings of a Service
The Message Bus Configuration, ESXi Dump Collector, and Auto Deploy services are optional services in the vCenter Server Appliance and they are not running by default. You can edit the startup settings of these services in the vCenter Server Appliance.
Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration, click Services .
4Right-click a service, such as Auto Deploy , ESXi Dump Collector , or Message Bus Configuration Service , and select Edit Startup Type .5
Select how the service should start.
Option Description
Automatic The service starts automatically when the Operating System starts.Manual The service should be started manually after the Operating System starts.Disabled
The service is disabled.
6
Click OK .
Chapter 2 Configuring the vCenter Server Appliance by Using the vSphere Web Client
VMware, Inc.
13
R
C
Export a Support Bundle
If you have deployed the vCenter Server Appliance with an embedded Platform Services Controller, you can export a support bundle containing the log files for a specific product included in the
vCenter Server Appliance or for a specific service in the Platform Services Controller. If you have deployed the vCenter Server Appliance with an external Platform Services Controller, you can export support bundles for specific services or for specific products, depending on the node that you select in the vSphere Web Client.Prerequisites
Verify that the user name you use to log in to the vCenter Server instance in the vCenter Server Appliance is a member of the SytemConfiguration.Administrators group in vCenter Single Sign-On.Procedure 1Log in to the vCenter Server instance in the vCenter Server Appliance by using the vSphere Web Client.2On the vSphere Web Client Home page, click System Configuration .3Under System Configuration click Nodes .4Select a node from the list.
5Click the Actions menu and select Export Support Bundle .
6
In the Export Support Bundle window, expand the trees to view the services running in the appliance and deselect the services for which you do not want to export log files.
All of the services are selected by default. The services are separated in two categories: a Cloud
infrastructure category, which contains the services of specific products in the appliance, and a Virtual appliance category, which contains the services specific for the appliance and the vCenter Server product.
7Click the Export Support Bundle and save the bundle on your local machine.
You saved the support bundle to your machine and can explore it.
vCenter Server Appliance Configuration
14
VMware, Inc.
R
C
Configuring the
vCenter Server Appliance by Using the Appliance Shell
3
The appliance shell contains all of the vCenter Server Appliance API commands and plug-ins that you can use for monitoring, troubleshooting, and configuring the appliance.This chapter includes the following topics:
n “Access the Appliance Shell,” on page 15
n “Enable Bash Shell Access From the Appliance Shell,” on page 16
n “Get Help About the Plug-Ins and API Commands in the Appliance,” on page 16
n “Plug-Ins in the vCenter Server Appliance Shell,” on page 16
n “API Commands in the vCenter Server Appliance Shell,” on page 17n “Browse the Log Files by Using the showlog Plug-In,” on page 20n “Configuring SNMP for the vCenter Server Appliance,” on page 21
n “Configuring Time Synchronization Settings in the vCenter Server Appliance,” on page 27n “Managing Local User Accounts in the vCenter Server Appliance,” on page 29n “Monitoring Health Status and Statistics in the vCenter Server Appliance,” on page 31n
“Using the vimtop Plug-In to Monitor the Resource Usage of Services,” on page 31
Access the Appliance Shell
To have access to the plug-ins included in the appliance shell and to see all of the APIs, first access the appliance shell.Procedure 1
Access the appliance shell using one of the following methods.
n If you have direct access to the appliance, press Alt+F1.
n
If you want to connect remotely, use SSH or another remote console connection to start a session to the appliance.
2Enter a user name and password recognized by the appliance.
You logged in to the appliance shell and can see the welcome message.
VMware, Inc. 15
R
C
Enable Bash Shell Access From the Appliance Shell
You can enable access to the Bash shell of the appliance, by using the appliance shell.Procedure 1Access the appliance shell and log in as a user who has a super administrator role.2
Run the command to enable access the Bash shell.
shell.set --enabled true
3To access the Bash shell run pi shell .
Get Help About the Plug-Ins and API Commands in the Appliance
The appliance shell contains all of the vCenter Server Appliance plug-ins and API commands that you can use for monitoring, troubleshooting, and configuring the appliance.
The API commands and plug-in names support autocompletion by using the Tab key. In addition, you can use the Tab key to autocomplete API parameters. Plug-in parameters do not support autocompletion.Procedure 1Access the appliance shell and log in.
2
To get help about the plug-ins, run the help pi list command.
You receive a list with all of the plug-ins in the appliance.3
To get help about the API commands, run the help api list command.
You receive a list with all of the API commands in the appliance.
4To get help about a particular API command, run the help api api_name command
For example, to receive help about the com.vmware.appliance.version1.timesync.set command, run help api timesync.set .
Plug-Ins in the vCenter Server Appliance Shell
The plug-ins in the vCenter Server Appliance provide you with access to various administrative tools. The plug-ins reside in the CLI itself. The plug-ins are standalone Linux or VMware utilities, which do not depend on any VMware service.
Table 3?1. Plug-Ins Available in the vCenter Server Appliance
Plug-In
Description
com.vmware.clear Plug-in that you can use to clear the terminal https://www.wendangku.net/doc/911366983.html,.vmware.dcli vAPI based CLI client.
com.vmware.ntpq A standard NTP query program
com.vmware.pgtop Plug-in that you can use to monitor the vFabric Postgres database.
com.vmware.ping Plug-in that you can use to ping a remote host. Accepts the same arguments as bin/ping.
com.vmware.ping6Plug-in that you can use to ping a remote host. Accepts the same arguments as bin/ping6.
com.vmware.portaccess
Plug-in that you can use to troubleshoot the port access of a host.
vCenter Server Appliance Configuration
16
VMware, Inc.
R
C
Table 3?1. Plug-Ins Available in the vCenter Server Appliance (Continued)
Plug-In
Description
com.vmware.rvc
Ruby vSphere Console
com.vmware.service-control Plug-in that you can use to manage VMware https://www.wendangku.net/doc/911366983.html,.vmware.shell Plug-in that allows access to appliance Bash https://www.wendangku.net/doc/911366983.html,.vmware.showlog Plug-in that you can use to browse the log https://www.wendangku.net/doc/911366983.html,.vmware.shutdown Plug-in that you can use to restart or power off the appliance.
com.vmware.software-packages Plug-in that you can use to update the software packages in the appliance.
com.vmware.top Displays process information. Accepts the same arguments as /usr/bin/top/.
com.vmware.tracepath Traces path to a network host. Accepts the same arguments as /sbin/tracepath.
com.vmware.tracepath6Traces path to a network host. Accepts the same arguments as /sbin/tracepath6.
com.vmware.vimtop
Plug-in that you can use to view a list of vSphere services and their resource usage.
API Commands in the vCenter Server Appliance Shell
The API commands in the vCenter Server Appliance allow you to perform various administrative tasks in the vCenter Server Appliance. The API commands are provided by appliance management service in the vCenter Server Appliance. You can edit time synchronization settings, monitor processes and services, set up the SNMP settings, and so on.
Table 3?2. API Commands Available in the vCenter Server Appliance
API Command
Description
com.vmware.appliance.version1.access.consolecli.get Get enabled state of console-based controlled CLI (TTY1).
com.vmware.appliance.version1.access.consolecli.set Set enabled state of console-based controlled CLI (TTY1).
com.vmware.appliance.version1.access.dcui.get Get enabled state of the Direct Console User Interface (DCUI TTY2).
com.vmware.appliance.version1.access.dcui.set Set enabled state of the Direct Console User Interface (DCUI TTY2).com.vmware.appliance.version1.access.shell.get
Get enabled state of BASH, that is,access to BASH from within the controlled CLI.
com.vmware.appliance.version1.access.shell.set
Set enabled state of BASH, that is,access to BASH from within the controlled CLI.
com.vmware.appliance.version1.access.ssh.get Get enabled state of the SSH-based controlled CLI.
com.vmware.appliance.version1.access.ssh.set
Set enabled state of the SSH-based controlled CLI.
https://www.wendangku.net/doc/911366983.html,er.add Create a new local user https://www.wendangku.net/doc/911366983.html,er.delete Delete a local user account.
https://www.wendangku.net/doc/911366983.html,er.get
Get the local user account information.
Chapter 3 Configuring the vCenter Server Appliance by Using the Appliance Shell
VMware, Inc.
17
R
C
Table 3?2. API Commands Available in the vCenter Server Appliance (Continued)
API Command
Description
https://www.wendangku.net/doc/911366983.html,er.list
List of local user accounts.
https://www.wendangku.net/doc/911366983.html,er.password.updat e
Update the password of a logged in user or of the user that you specify in the username parameter.
https://www.wendangku.net/doc/911366983.html,er.set
Update local user account properties,such as role, full name, enabled status,and password.
com.vmware.appliance.version1.monitoring.snmp.disable Stop an enabled SNMP https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.enable Start a disabled SNMP https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.get Return an SNMP agent https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.hash Generate localized keys for secure SNMPv3 https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.limits Get SNMP limits https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.reset Restore settings to factory https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.monitoring.snmp.set Set SNMP configuration.
com.vmware.appliance.version1.monitoring.snmp.test
Send a warmStart notification to all configured traps and inform destinations (see RFC 3418).
https://www.wendangku.net/doc/911366983.html,working.dns.domains.add Add domains to DNS search https://www.wendangku.net/doc/911366983.html,working.dns.domains.list Get a list of DNS search https://www.wendangku.net/doc/911366983.html,working.dns.domains.set Set DNS search domains.
https://www.wendangku.net/doc/911366983.html,working.dns.hostname.get Get the Fully Qualified Domain https://www.wendangku.net/doc/911366983.html,working.dns.hostname.set Set the Fully Qualified Domain https://www.wendangku.net/doc/911366983.html,working.dns.servers.add Add a DNS server. This method fails if the ---mode argument is "dhcp"https://www.wendangku.net/doc/911366983.html,working.dns.servers.get Get DNS server https://www.wendangku.net/doc/911366983.html,working.dns.servers.set
Set the DNS server configuration. If the host is configured to acquire DNS servers and host name by using DHCP, a DHCP refresh is https://www.wendangku.net/doc/911366983.html,working.firewall.addr.inbound.add
Add a firewall rule to allow or deny access from an incoming IP https://www.wendangku.net/doc/911366983.html,working.firewall.addr.inbound.delete
Delete a specific rule at a given position or delete all rules.
https://www.wendangku.net/doc/911366983.html,working.firewall.addr.inbound.list
Get an ordered list of inbound IP addresses that are allowed or denied by a firewall rule.
https://www.wendangku.net/doc/911366983.html,working.interfaces.get Get information about a particular network interface.
https://www.wendangku.net/doc/911366983.html,working.interfaces.list
Get a list of available network
interfaces, including those that are not yet configured.
https://www.wendangku.net/doc/911366983.html,working.ipv4.get Get IPv4 network configuration for interfaces.
https://www.wendangku.net/doc/911366983.html,working.ipv4.list
Get IPv4 network configuration for all configured interfaces.
vCenter Server Appliance Configuration
18
VMware, Inc.
R
C
Table 3?2. API Commands Available in the vCenter Server Appliance (Continued)
API Command
Description
https://www.wendangku.net/doc/911366983.html,working.ipv4.renew
Renew IPv4 network configuration on interfaces. If the interface is configured to use DHCP for IP address
assignment, the lease of the interface will be renewed.
https://www.wendangku.net/doc/911366983.html,working.ipv4.set Set IPv4 network configuration for an interface.
https://www.wendangku.net/doc/911366983.html,working.ipv6.get Get IPv6 network configuration for interfaces.
https://www.wendangku.net/doc/911366983.html,working.ipv6.list Get IPv6 network configuration for all configured interfaces.
https://www.wendangku.net/doc/911366983.html,working.ipv6.set Set IPv6 network configuration for an interface.
https://www.wendangku.net/doc/911366983.html,working.routes.add
Add static routing rules. A
destination/prefix of the type 0.0.0.0/0(for IPv4) or ::/0 (for IPv6) refers to the default gateway.
https://www.wendangku.net/doc/911366983.html,working.routes.delete Delete static routing rules.
https://www.wendangku.net/doc/911366983.html,working.routes.list
Get routing table. A destination/prefix of the type 0.0.0.0/0 (for IPv4) or ::/0(for IPv6) refers to the default gateway.
com.vmware.appliance.version1.ntp.get
Get NTP configuration settings. If you run the 'tymesync.get' command, you can retrieve the current time
synchronization method (NTP or VMware Tools-based). The 'ntp.get'command always returns the NTP server information, even when the time synchronization method is not set to NTP. If time synchronization method is not NTP-based, the NTP status is displayed as "down".
com.vmware.appliance.version1.ntp.server.add
Add NTP servers. This command adds NTP servers to the configuration. If the time synchronization is NTP-based,then NTP daemon is restarted to reload the new NTP servers.
Otherwise, this command just adds servers to the NTP https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.ntp.server.delete
Delete NTP servers. This command deletes NTP servers from the configuration. If the time
synchronization mode is NTP-based,the NTP daemon is restarted to reload the new NTP configuration.
Otherwise, this command just deletes servers from the NTP configuration.
Chapter 3 Configuring the vCenter Server Appliance by Using the Appliance Shell
VMware, Inc.
19
R
C
Table 3?2. API Commands Available in the vCenter Server Appliance (Continued)
API Command
Description
com.vmware.appliance.version1.ntp.server.set
Set NTP servers. This command deletes old NTP servers from the configuration and sets the input NTP servers in the configuration. If the time synchronization is NTP-based, the NTP daemon is restarted to reload the new NTP configuration. Otherwise,this command just replaces the servers in NTP https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.cpu.stats.get Get CPU https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.load.health.get Get load health.
com.vmware.appliance.version1.resources.load.stats.get Get load averages (over 1, 5, and 15minute intervals).com.vmware.appliance.version1.resources.mem.health.get Get memory https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.mem.stats.get Get memory https://www.wendangku.net/doc/911366983.html,.stats.get Get network statistics.
https://www.wendangku.net/doc/911366983.html,.stats.list Get network statistics for all interfaces that are up and https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.processes.stats.list Get statistics on all https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.storage.health.get Get storage health https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.storage.stats.list Get storage statistics for each logical disk.
com.vmware.appliance.version1.resources.swap.health.get Get swap https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.swap.stats.get Get swap statistics.
com.vmware.appliance.version1.resources.system.health.get Get the overall health of the https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.system.stats.get Get the system https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.resources.system.time.get Get the system https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.services.list Get list of all known https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.services.restart Restart a service.
com.vmware.appliance.version1.services.status.get Get the status of a https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.services.stop Stop a service.
com.vmware.appliance.version1.system.version.get Get the version of the https://www.wendangku.net/doc/911366983.html,.vmware.appliance.version1.timesync.get Get the time synchronization configuration.
com.vmware.appliance.version1.timesync.set
Set the time synchronization configuration.
Browse the Log Files by Using the showlog Plug-In
You can browse the log files in the vCenter Server Appliance to examine them for errors.Procedure 1Access the appliance shell and log in.
2
Type the command showlog and press the Tab key to enlist all the contents of the /var/log folder.
vCenter Server Appliance Configuration
20
VMware, Inc.