ceph-get-clients

command module
v0.0.0-...-788d281 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

README

ceph-get-clients

WARNING: We will not guarantee that the output of this tool is correct. Use it on your own risk.

Ceph-get-clients returns the current connected clients

Usage:

ceph-get-clients -user cephssh [-port 22 -feature 0x200000] mon1 mon2 mon3

Ceph-get-clients will connect to the given Ceph monitor servers using SSH and retrieve all currently connected clients using ceph daemon mon.<hostname> sessions. It will parse the output and merge it for all the given monitors, duplicated clients will be removed. For each client a reverse DNS lookup will be done. The output will be printed to Stdout using CSV format. It is possible to check if a client supports a give feature by passing the feature hex value as a parameter using the -feature flag.

Example:

ceph-get-client -user cephadm -feature 0x200000 mon1 mon2 mon3
IP,feature,release,fqdn,0x200000
10.7.3.67,0x3ffddff8eea4fffb,luminous,clienta.fqdn.tld.,true
10.7.3.65,0x3ffddff8eea4fffb,luminous,webserver.fqdn.tld.,true
10.7.3.64,0x7010fb86aa42ada,jewel,,true
10.7.3.70,0x1ffddff8eea4fffb,luminous,usera.fqdn.tld.,true

Documentation

Overview

Ceph-get-clients returns the current connected clients

Usage:

ceph-get-clients -user cephssh [-port 22 -feature 0x200000] mon1 mon2 mon3

Ceph-get-clients will connect to the given Ceph monitor servers using SSH and retrieve all currently connected clients using `ceph daemon mon.<hostname> sessions`. It will parse the output and merge it for all the given monitors, duplicated clients will be removed. For each client a reverse DNS lookup will be done. The output will be printed to Stdout using CSV format. It is possible to check if a client supports a give feature by passing the feature hex value as a parameter using the -feature flag.

Prerequisite:

  • SSH connection is using the local ssh agent
  • SSH_AUTH_SOCK should be set and point to the running ssh agent socket
  • SSH user should have sudo rights without password

Example:

ceph-get-client -user cephadm -feature 0x200000 mon1 mon2 mon3
IP,feature,release,fqdn,0x200000
10.7.3.67,0x3ffddff8eea4fffb,luminous,clienta.fqdn.tld.,true
10.7.3.65,0x3ffddff8eea4fffb,luminous,webserver.fqdn.tld.,true
10.7.3.64,0x7010fb86aa42ada,jewel,,true
10.7.3.70,0x1ffddff8eea4fffb,luminous,usera.fqdn.tld.,true

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL