Commit b1f27244 authored by Eric Cano's avatar Eric Cano
Browse files

Added an indicator of last drive status update time to detect crashed tape servers.

Typicaly updated every few seconds.
parent b993ab55
......@@ -1797,7 +1797,7 @@ void XrdCtaFile::xCom_drive() {
auto driveStates = m_scheduler->getDriveStates(m_cliIdentity);
if (driveStates.size()) {
std::vector<std::vector<std::string>> responseTable;
std::vector<std::string> headers = {"drive", "host", "library", "mountType", "status", "desiredUp", "vid", "tapepool","session id","since","files","bytes","latest speed"};
std::vector<std::string> headers = {"drive", "host", "library", "mountType", "status", "desiredUp", "vid", "tapepool","session id","since","files","bytes","latest speed", "last updated"};
for (auto ds: driveStates) {
if (singleDrive && != ds.driveName) continue;
......@@ -1846,6 +1846,7 @@ void XrdCtaFile::xCom_drive() {
currentRow.push_back(std::to_string((unsigned long long)ds.filesTransferedInSession));
currentRow.push_back(std::to_string((unsigned long long)ds.bytesTransferedInSession));
currentRow.push_back(std::to_string((long double)ds.latestBandwidth));
currentRow.push_back(std::to_string((unsigned long long)(time(nullptr)-ds.lastUpdateTime)));
if (singleDrive && !driveFound) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment