"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.

On Fri, Oct 9, 2020 at 3:14 PM Howard White <[email protected]> wrote:

> 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
>
>
> On 10/9/20 3:26 PM, Howard White wrote:
> > I figured out ip n show and it's output is actually cleaner than arp -a.
> >
> > Howard
> >
> >
> > On Fri, Oct 9, 2020, 15:21 dbacus67 <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     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
> >
> >     -------- Original message --------
> >     From: Howard White <[email protected] <mailto:[email protected]>>
> >     Date: 10/9/20 11:19 (GMT-06:00)
> >     To: [email protected] <mailto:[email protected]>
> >     Subject: [nlug] Whaddyamean net-tools is deprecated???
> >
> >     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
> >
> >     --
> >     --
> >     You received this message because you are subscribed to the Google
> >     Groups "NLUG" group.
> >     To post to this group, send email to [email protected]
> >     <mailto:[email protected]>
> >     To unsubscribe from this group, send email to
> >     [email protected]
> >     <mailto:nlug-talk%[email protected]>
> >     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 [email protected]
> >     <mailto:nlug-talk%[email protected]>.
> >     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 [email protected]
> >     <mailto:[email protected]>
> >     To unsubscribe from this group, send email to
> >     [email protected]
> >     <mailto:nlug-talk%[email protected]>
> >     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 [email protected]
> >     <mailto:[email protected]>.
> >     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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > 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 [email protected]
> > <mailto:[email protected]>.
> > 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
> >.
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/0d3d843b-70b4-b030-c77f-7f8260bc8974%40vcch.com
> .
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CA%2BKhHx%2BPmzgW8peEta8v7Zr5bUheSXsfTA72knMnMU0HT7kHcQ%40mail.gmail.com.

Reply via email to