Script to list S3 traffic redirection

Content Platform for Cloud Scale Administration Guide

Version
2.6.x
File Size
1945 KB
Audience
anonymous
Part Number
MK-HCPCS008-10

A script is included to list redirection of S3 traffic.

The script is written in Python and located in the folder install_path/product/bin (for example, /opt/hcpcs/bin).

The script lists the instances running S3 Gateway system instances and writes the output to the file s3NodeIPs.txt.

Syntax

list_s3_node_ips.py username password

Options and parameters

username
User name of an HCP for cloud scale user with administrative privileges.
password
Password for the administrative user.

Example

$ list_s3_node_ips.py username password

This example can produce the following output:

INSTALL_DIR: /opt/hcpcs
ADMIN_CLI: /opt/hcpcs/cli/admin/admincli
IPs of S3 Gateway nodes:
172.10.24.195
172.10.24.196
172.10.24.197
172.10.24.198
172.10.24.199
Output file is located at /opt/hcpcs/s3NodeIPs.txt