[Feature] resolve IP addresses in pt-slave-find
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|
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|
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
- Daniel Nichter: Approve
-
Diff: 134 lines (+52/-6)2 files modifiedbin/pt-slave-find (+39/-5)
t/pt-slave-find/pt-slave-find.t (+13/-1)
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 |
Changed in percona-toolkit: | |
status: | Fix Committed → Fix Released |
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.