Skip to content

Multip ping for ranges #114

Open
Open

Description

@dreua

Originally posted by @dark-spark in #113 (comment)

If I could add a request from a user point of view, multi ping is fantastic, but a common use case for me is pinging a series of ip addresses, if we could implement a way to ping an address and the following x amount of addresses I'd love that. For example 192.168.1.100 -n 5 would ping.100-.014

Activity

  1. dreua commented on Nov 23, 2024

    @dreua
    MemberAuthor

    Please don't hijack other PRs for new requests on a different feature, we'll end up with big chaos if everyone does this 😉

    For your use case I wonder if that could be done without any code on our side at all. Bash has this built in feature that expands ranges like foo{0..3} to foo0 foo1 foo2 foo3 iirc that should already work with the PR we have, could you try that?

  2. dark-spark commented on Nov 24, 2024

    @dark-spark

    Sorry about that. I will have a play with that and see how I go.

  3. mrbesen commented on Dec 15, 2024

    @mrbesen
    Contributor

    This sounds like an feature to look at after this thing is merged: #109
    BTW @dreua i am waiting for an review there 😉

    iirc that should already work with the PR we have, could you try that?

    I don't think so. My MR requires you to write -h in front of every extra host. I guess we would need to adjust it in a way to accept any extra arguments as ping host. To work with bash brace expansion. But i guess it would be easy to write a little bash function to expand it correctly. Writing a ip net in CIDR notation like 192.168.1.0/28 would also be an interessting form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions