Recurring Edge Services Maintenance Tasks

Edge for Private Cloud v4.18.01

In order to ensure optimal day-to-day operation of the Apigee system, certain tasks should be performed when the system is originally installed and/or on a periodic basis.

Maintenance Tool Set

The following tools are used to communicate with, or maintain various components of, the Apigee system. The variable $APROOT refers to the directory in which the Apigee system is installed.

Tool

Used For

System Location

nodetool

Apache Cassandra maintenance

/opt/apigee/apigee-cassandra/bin

cassandra-cli

Apache Cassandra command line

/opt/apigee/apigee-cassandra/bin

zkCli.sh

Apache ZooKeeper command line utility

/opt/apigee/apigee-zookeeper/bin

nc

Arbitrary TCP/IP and UDP commands; invocation of ZooKeeper "four-letter commands"

/usr/bin/nc or another location dependent on your operating system

In situations where the "nc" or "telnet" commands might be considered a security risk, the following Python script can be used:

import time
import socket
import sys

if len(sys.argv) <> 4:
    print "Usage: %s address port 4-letter-cmd" % sys.argv[0]
else:
    c = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    c.connect((sys.argv[1], int(sys.argv[2])))
    c.send(sys.argv[3])
    time.sleep(0.1)
    print c.recv(512)