Show / Hide Table of Contents

    Connectivity Commands

    Built into Petabridge.Cmd.Host are a number of useful utility commands for doing things like determining the IP address of the connecting peer, checking the uptime of the server, and so forth.

    Available Commands

    Command Name Description
    net uptime Checks the system uptime of the Petabridge.Cmd.Host process.
    net myip Returns the IP address of the client currently connected to the host.
    net clients Returns the list of currently connected clients.
    net drop-all-clients Drops all currently connected clients. Use with caution.

    net uptime

    Fetches the uptime of the Akka.NET host, as measured by when the PetabridgeCmd was first launched on the host (usually right at system startup).

    Examples

    Check the uptime of the host.

    pbm [host@port] net uptime
    

    net myip

    Fetches the IP address of the pbm client currently connected to the host.

    Examples

    Check the IP address of the currently connected client.

    pbm [host@port] net myip
    

    net clients

    Fetches the IP addresses and ActorPaths of all pbm clients currently connected to the host.

    Examples

    Get the list of all clients connected to the current host.

    pbm [host@port] net clients
    

    net drop-all-clients

    Drops all currently connected clients. Use with caution.

    Warning

    This can be a potentially destructive command - be cautious about using it.

    Examples

    Drop all clients connected to the current host.

    pbm [host@port] net drop-all-clients
    
    Back to top Generated by DocFX