LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2014, 10:25 PM   #1
medeiom
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
IP network script


Can someone help me on how do I go about writing a script that will gather all IP addresses from my network?

Thank you.
 
Old 02-15-2014, 11:19 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
You can do a ping sweep using nmap.e.g. 'nmap -sn 10.1.1.1/24'
 
Old 02-16-2014, 10:47 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by medeiom View Post
Can someone help me on how do I go about writing a script that will gather all IP addresses from my network?
Thank you.
We'll be glad to...so post what you've written/tried so far, and tell us where you're stuck. We are happy to help, but will not write your scripts for you. Check out the bash scripting tutorial in my posting signature, or find one of many others Google can point you to. They have samples and explanations to get you going.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to change the script at the network-script so not to waste time albert0147 Linux - Newbie 9 12-16-2013 02:56 AM
what is the use of network-script, resolv.conf, network nawuza Linux - Software 3 01-06-2007 08:23 AM
need help with network script randell6564 Ubuntu 11 08-01-2006 11:35 PM
network up/down script bluefire Linux - Networking 1 09-04-2004 03:29 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration