print_gw_connections.py
The
print_gw_connections.py
script reports current connections maintained
by Diameter Gateway or
MDC Gateway.
The script reports the following information for each connection:
- Address and port of the local endpoint.
- Address and port of the remote endpoint.
- Date and time the connection was created.
- Duration the connection has existed.
- Packets sent and received.
- Bytes sent and received.
Any errors are printed to stderr
.
Syntax
print_gw_connections.py [-h] [-a ADDRESS] -g {diameter,mdc} [-d] [-s]
Options
The print_gw_connections.py
script has
the following options:
- -h, --help
- Help about the script options.
- -a, --address address:port
- The management server hosting the gateway, where address is the host name or IP address and port is the port. If none is specified, the address and port are determined from configuration files.
- -g, --gateway gateway_type
- The type of gateway, where gateway_type is
diameter
ormdc
. - -d, --debug
- Prints extra script debug level information.
- -s, --ssl
- Use an HTTPS connection to the management server.Note: You must enable secure socket layer (SSL) connections on the target server before using this option.