Batch mode command-line options, Using replay mode, Prepare for replay mode – VMware vSphere vCenter Server 4.0 User Manual

Page 97: Use esxtop in replay mode, Using replay mode 97

Advertising
background image

Batch Mode Command-Line Options

You can use batch mode with command-line options.
The command-line options in

Table A-17

are available in batch mode.

Table A-17. Command-Line Options in Batch Mode

Option

Description

a

Show all statistics. This option overrides configuration file setups and shows all statistics. The

configuration file can be the default ~/.esxtop4rc configuration file or a user-defined

configuration file.

b

Runs resxtop (or esxtop) in batch mode.

c

<filename>

Load a user-defined configuration file. If the -c option is not used, the default configuration

filename is ~/.esxtop4rc. Create your own configuration file, specifying a different filename, using

the W single-key interactive command.

d

Specifies the delay between statistics snapshots. The default is five seconds. The minimum is two

seconds. If a delay of less than two seconds is specified, the delay is set to two seconds.

n

Number of iterations. resxtop (or esxtop) collects and saves statistics this number of times, and

then exits.

server

The name of the remote server host to connect to (required, resxtop only).

portnumber

The port number to connect to on the remote server. The default port is 443, and unless this is

changed on the server, this option is not needed. (resxtop only)

username

The user name to be authenticated when connecting to the remote host. You are prompted by the

remote server for a password, as well (resxtop only).

Using Replay Mode

In replay mode,

esxtop

replays resource utilization statistics collected using

vm-support

.

After you prepare for replay mode, you can use esxtop in this mode. See the

vm-support

man page.

In replay mode,

esxtop

accepts the same set of interactive commands as in interactive mode and runs until no

more snapshots are collected by

vm-support

to be read or until the requested number of iterations are

completed.

Prepare for Replay Mode

To run in replay mode, you must prepare for replay mode.

Procedure

1

Run

vm-support

in snapshot mode on the ESX service console.

Use the following command.

vm-support -S -d duration -I interval

2

Unzip and untar the resulting tar file so that

esxtop

can use it in replay mode.

You can now use

esxtop

in replay mode.

Use esxtop in Replay Mode

You can use

esxtop

in replay mode.

You do not have to run replay mode on the ESX service console. Replay mode can be run to produce output

in the same style as batch mode (see the command-line option

b

, below).

Appendix A Performance Monitoring Utilities: resxtop and esxtop

VMware, Inc.

97

Advertising
This manual is related to the following products: