From Michael.Paoli at cal.berkeley.edu Thu Aug 15 20:46:23 2019 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Thu, 15 Aug 2019 20:46:23 -0700 Subject: [buug] get IP address and ping ... Message-ID: <20190815204623.98901gmfedqb5tfo@webmail.rawbw.com> Semi-random question came up at meeting today. Question was essentially get IP address on the host, and ping it, so, I came up with fairly quick example: $ ping -n -c 3 $(ip a s | sed -ne '/br0/,/^5:/{/inet/{s/^[ ]*inet \([^ \/]*\).*$/\1/p;q}}') PING 198.144.194.235 (198.144.194.235) 56(84) bytes of data. 64 bytes from 198.144.194.235: icmp_seq=1 ttl=64 time=0.121 ms 64 bytes from 198.144.194.235: icmp_seq=2 ttl=64 time=0.093 ms 64 bytes from 198.144.194.235: icmp_seq=3 ttl=64 time=0.085 ms --- 198.144.194.235 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2048ms rtt min/avg/max/mdev = 0.085/0.099/0.121/0.019 ms $ That first uses the ip command, with the a and s arguments, get and show the addresses. I then pipe that to sed, the streaming editor ... I use that to whittle the output down to just the IP address of interest ... in this case I know it's on interface br0, so I grab that chunk of output lines - from the first match of a line with br0 in it, through ... well, I cut it off at start of the next interface - but as long as I get "enough" of the lines, that would work. Within that, I then grab the first line with inet (IPv4 address), and toss out the stuff on that line before and after the IP address, print just the IP address part, then quite sed after that. I then put all that within command substitution $() - so that - just the resultant IP address, is substituted on the line. And the rest is just some options and option arguments I also pass to ping - -n for numeric (don't try to do "reverse" DNS lookup(s) of the IP address(es)), -c 3 for count - 3 just send 3 packets and see what we get from that. That's basically it for that command. From Michael.Paoli at cal.berkeley.edu Mon Aug 19 08:07:57 2019 From: Michael.Paoli at cal.berkeley.edu (Michael Paoli) Date: Mon, 19 Aug 2019 08:07:57 -0700 Subject: [buug] BALUG: meeting: TOMORROW Tu 2019-08-20 & other BALUG News Message-ID: <20190819080757.128727oe70szwj0g@webmail.rawbw.com> BALUG: meeting: TOMORROW Tu 2019-08-20 & other BALUG News ------------------------------ items, details further below: BALUG: meeting: TOMORROW Tu 2019-08-20 giveaways (& wanted), hardware, CDs/DVDs, books/publications, ... help BALUG! :-) - volunteering, venue, ... Twitter https://twitter.com/#!/BALUG_org ------------------------------ For our 2019-08-20 (3rd Tuesday) BALUG meeting: We don't have a specific speaker/presentation lined up for this meeting, however ... We're sure to have some expert(s), and no shortage of interesting things we might talk about. Feel free to to bring topics, questions, etc. Please RSVP if you're planning to attend. To do so please e-mail us a note to rsvp at balug.org indicating meeting date. If you'll be bringing additional guest(s) please let us know total number of folks you're RSVPing for. Also please let us know any special requirements or concerns you may have (e.g. if you have any particular dietary considerations, so that we might possibly be able to accommodate you, or if you won't be dining with us but do wish to otherwise join our meeting). Please RSVP if you're planning to attend. To do so please e-mail us a note to rsvp at balug.org indicating meeting date. If you'll be bringing additional guest(s) please let us know total number of folks you're RSVPing for. Also please let us know any special requirements or concerns you may have (e.g. if you have any particular dietary considerations, so that we might possibly be able to accommodate you, or if you won't be dining with us but do wish to otherwise join our meeting). 6:30pm Tuesday, August 20th, 2019 2019-08-20 Henry's Hunan Restaurant 110 Natoma St. (between 2nd & New Montgomery) San Francisco, CA 94105-3704 1-415-546-4999 http://henryshunan.com/ Easy Transit/Parking Access: short walk from BART, MUNI, parking Trip planning: http://www.511.org/ Delicious Hunan cuisine and reasonably priced. Meeting Details... Cost/Dining: The meetings are always free, but dinner is not (unless you are our guest speaker, in which case we also treat you to dinner). For Henry's Hunan Restaurant, if folks are agreeable, we'll share and dine "family" style, and split up the costs, and typical cost per person including tax and tip (but not including beverages beyond complementary tea) would be in the $16.00 to $23.00 range, and commonly around $18.00 to $22.00. Cash preferred to ease splitting up the check. One can also specifically order the dish(es) one needs/prefers (e.g. for dietary considerations) - and we also commonly order some dish(es) that may meet various dietary considerations) (e.g. vegetarian, non-pork, ...). Please arrive by 7:00 P.M., we expect to order entrees at that time, and may order appetizer(s) and/or soup(s) anytime after 6:30 P.M. ------------------------------ giveaways (& wanted), hardware, CDs/DVDs, books/publications, ... We typically have various giveaway items at BALUG meetings. We'll likely have at least the below plus additional items. CDs/DVDs/ISOs, etc. - have a look here: https://www.wiki.balug.org/wiki/doku.php?id=balug:cds_and_images_etc Donations of blank or +-RW media, USB flash, or funding thereof, also appreciated. See the above URL for details (and the inventory (qty.) of what we specifically have "burned" and available on-hand does also frequently change). Hardware, etc. wanted/offered! Got some (computer, etc.) hardware, etc. you're looking to give away or acquire (or if not free, well below current fair market value), and locally? We have a wiki page to list that - so ... see what's offered, wanted, etc.! https://www.wiki.balug.org/wiki/doku.php?id=balug:offered_wanted_hardware_etc Books and other titles! have a peek here: https://www.wiki.balug.org/wiki/doku.php?id=balug:books_and_publications ------------------------------ help BALUG! :-) - volunteering, venue ... You can do useful and cool stuff volunteering to help BALUG. Quite a variety of opportunities to help BALUG. Come talk to us at a meeting and/or drop us a note at: balug-contact at balug.org These opportunities may include, among other possibilities: o assist or lead on speaker coordination/procurement, etc. o venue arrangement (e.g. followup on potential leads, on-site coordination/preparations) o chief/assistant cat herder o assist on publicity o Linux Systems Administration (e.g. do/assist/learn, with/under some quite experienced and skilled Linux systems administrator(s)). o webmaster, assistant webmaster, designer, graphic artist o archivist/history/retrieval/etc. o and other various/miscellaneous tasks BALUG would like to be doing (also feel free to suggest ideas!) ------------------------------ Twitter - you can also follow BALUG on Twitter: https://twitter.com/#!/BALUG_org ------------------------------ Feedback on our publicity/announcements (e.g. contacts or lists where we should get our information out that we're not presently reaching, or things we should do differently): publicity-feedback at balug.org ------------------------------