Whaddyamean net-tools is deprecated???

18 views
Skip to first unread message

Howard White

unread,
Oct 9, 2020, 12:19:58 PM10/9/20
to nlug...@googlegroups.com
I am not the most versed student of the arp command so I hit the man
page to get more info only to see, in passing, that the entire net-tools
package is now "obsolete" and no longer maintained. Okay, I admit that
I have gotten prior hints about that with the ifconfig command as well.

No more arp, hello ip n.

So I've searched up this cheat sheet:

<https://iamhow.com/Technical_Notes/Replacement_commands_for_net-tools_cheatsheet.html>

Swell.

Remember all of our grousing about systemd? grouse, grouse, grouse,
grouse...

Howard

Tilghman Lesher

unread,
Oct 9, 2020, 12:30:38 PM10/9/20
to NLUG
It's kind of funny, because back when we started running the
Installfests, before the turn of the century, these tools were already
deprecated at that point, and the ip command was already available.
When we configured the T1 tunnel at VCCH, I had to use the 'ip'
command to set up the routes, because you couldn't set the source
address with the 'route' command.

20 years is a good long time for a tool to continue to be maintained
beyond its official deprecation.
> --
> --
> You received this message because you are subscribed to the Google Groups "NLUG" group.
> To post to this group, send email to nlug...@googlegroups.com
> To unsubscribe from this group, send email to nlug-talk+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nlug-talk+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nlug-talk/358b1f2a-6477-fa25-a6d0-1b11f69111a3%40vcch.com.



--
Tilghman

dbacus67

unread,
Oct 9, 2020, 4:21:09 PM10/9/20
to nlug...@googlegroups.com
Howard,

Shell functions in .bashrc for the win!

arp() {
   if [ "$1" = "-v" ]
   then
         ip -s neigh
   else
         ip neigh
    fi 
}

Not a perfect example, since I'm typing this on my phone, but enough to give a start if you have a mind to do so.

However, I'm old, cranky, and don't need to change 30 some years of knowing arp, ifconfig, etc. for the "convenience" of the new kids coming into IT...  LOL!  I'm sure that I will be working on these at some point.

I hope that everyone has a great weekend!

Dan

Howard White

unread,
Oct 9, 2020, 4:27:09 PM10/9/20
to nlug...@googlegroups.com
I figured out ip n show and it's output is actually cleaner than arp -a.

Howard


Howard White

unread,
Oct 9, 2020, 6:14:22 PM10/9/20
to nlug...@googlegroups.com
To come full circle on this topic, the point of the arp vs. ip n show
disscusion was my attempt to expand what comes out of lpstat -v to
include MAC. I deal with a customer that chooses not to configure
printers with either reserved IP or static IP and if there is a major
disruption, we have to go chasing down printers.

Did I mention that this customer is in Lake Charles, LA? Can you say
two hurricanes in one year? I thought you could...

So here is the synopsis of what I came up with for my and your future
reference.

- lpstat -v > somefile.txt
massage somefile.txt to remove non-relevant printers, i.e. those at
other locations not affected by said hurricane

-create a handy printmung.sed script
s_device for _echo "_
s_ socket://_" `ip n show _
s_:9100_`_
(note the "_" is the edit delimiter so as to avoid conflict with the
"//" in line two.)

- cat somefile.txt | sed -f printmung.sed > myscript.sh

- edit myscript.sh to include the #!/bin/bash and check things over
- chmod 755 myscript.sh
-./myscript.sh > nextfile.txt

YMMV

Howard
> <mailto:nlug...@googlegroups.com>
> To unsubscribe from this group, send email to
> nlug-talk+...@googlegroups.com
> <mailto:nlug-talk%2Bunsu...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to nlug-talk+...@googlegroups.com
> <mailto:nlug-talk%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/358b1f2a-6477-fa25-a6d0-1b11f69111a3%40vcch.com.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "NLUG" group.
> To post to this group, send email to nlug...@googlegroups.com
> <mailto:nlug...@googlegroups.com>
> To unsubscribe from this group, send email to
> nlug-talk+...@googlegroups.com
> <mailto:nlug-talk%2Bunsu...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to nlug-talk+...@googlegroups.com
> <mailto:nlug-talk+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/5f80bb86.1c69fb81.77a10.6ce6%40mx.google.com
> <https://groups.google.com/d/msgid/nlug-talk/5f80bb86.1c69fb81.77a10.6ce6%40mx.google.com?utm_medium=email&utm_source=footer>.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "NLUG" group.
> To post to this group, send email to nlug...@googlegroups.com
> To unsubscribe from this group, send email to
> nlug-talk+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to nlug-talk+...@googlegroups.com
> <mailto:nlug-talk+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/CAPqCJbLxnxSNNq9jP%3DVy2jajTCaTFsZ%2BJ_U86ej8LgGkowN93A%40mail.gmail.com
> <https://groups.google.com/d/msgid/nlug-talk/CAPqCJbLxnxSNNq9jP%3DVy2jajTCaTFsZ%2BJ_U86ej8LgGkowN93A%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Csaba Toth

unread,
Oct 9, 2020, 7:40:13 PM10/9/20
to nlug...@googlegroups.com
"chooses not to configure printers with either reserved IP or static IP and if there is a major disruption, we have to go chasing down printers." - sounds like the customer enjoys shooting himself on the foot on purpose.
I hope your contract is hourly based and such chases yield you some money.

To unsubscribe from this group and stop receiving emails from it, send an email to nlug-talk+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nlug-talk/0d3d843b-70b4-b030-c77f-7f8260bc8974%40vcch.com.
Reply all
Reply to author
Forward
0 new messages