[Feature] resolve IP addresses in pt-slave-find

Bug #1418446 reported by Sergey Chernomorets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Wishlist
Frank Cizmich

Bug Description

Option --resolve-addrs useful to see names of slave nodes instead their IP-addresses.

Default view:

$ pt-slave-find dbs02-05 | egrep '10.0|dbs|status|Version'
dbs02-05
Version 5.5.36-MariaDB-log
Slave status 0 seconds behind, running, no errors
+- 10.0.0.13
   Version 10.0.13-MariaDB-log
   Slave status 0 seconds behind, running, error 1146
+- 10.0.0.86
   Version 5.5.36-MariaDB-log
   Slave status 0 seconds behind, running, no errors

With resolve-addr:

pt-slave-find --resolve-addr yes dbs02-05 | egrep '10.0|dbs|status|Version'
dbs02-05.local (dbs02-05)
Version 5.5.36-MariaDB-log
Slave status 0 seconds behind, running, no errors
+- test02.local (10.0.0.13)
   Version 10.0.13-MariaDB-log
   Slave status 0 seconds behind, running, error 1146
+- dbs02-04.local (10.0.0.86)
   Version 5.5.36-MariaDB-log
   Slave status 0 seconds behind, running, no errors

Related branches

Revision history for this message
Sergey Chernomorets (s-chernomorets) wrote :
Changed in percona-toolkit:
status: New → In Progress
importance: Undecided → Wishlist
assignee: nobody → Frank Cizmich (frank-cizmich)
milestone: none → 2.2.14
Changed in percona-toolkit:
status: In Progress → Fix Committed
tags: added: pt-slave-find
Revision history for this message
Frank Cizmich (frank-cizmich) wrote :

Added using Sergey suggestion,
Only differences:
Used a flag named --resolve-address
No parameter necessary.
Outputs IP first, hostname in parenthesis second.

Off by default.

Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-860

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.