Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Any shell script programmers out there???

Thread Tools
 
Search this Thread
 
Old May 9, 2008 | 08:43 AM
  #1  
Wurzel's Avatar
Wurzel
Thread Starter
Scooby Senior
iTrader: (1)
 
Joined: Nov 2000
Posts: 9,708
Likes: 73
From: Wildberg, Germany/Reading, UK
Cool Any shell script programmers out there???

Is it possible to get a shell script on Solaris to do an nslookup of all machines with a certain name, ping them and report back which machines are in DNS but not responding to ping?

For example I have 50 sun hostname names in DNS all starting tcsun with 2 numbers after that i.e. tcsun01 - 50

I want to attempt to write a shell script that will allow users to generate their own zone on Solaris 10, but as they will not know where to create it on the zone server or what hostname they can give it I want the script to be intelligent enough to give them a list of hostnames that are available, the hostname they choose will then become a variable later in the script so that the script can create the zone using the right details. Also one more complicated thing is where the zone is created, I have 1 disk per zone and all disks are mounted under /opt/zones/(disk number)/hostname, I want the script to go and check which disk already has a zone installed on it and only offer the user the option to create their zone on an empty disk. Give them a list of available places to create it so that they just select it.

i.e. /opt/zones/c1t0d0s2/tcsun33 is a zone but /opt/zones/c1t2d0s2 is empty so this will be given as an option as to where to install the zone.

as the script will now have all the info it needs to create the zone it will go away and do it automatically.

I am not a shell programmer so this is going to be mega complicated for me to do so any help will be greatly appreciated.

does this all make sense?

Cheers

Steve
Reply
Old May 9, 2008 | 09:08 AM
  #2  
druddle's Avatar
druddle
Scooby Regular
 
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Default

Jaysusssss. Right off to scratch my head......
Reply
Old May 9, 2008 | 09:14 AM
  #3  
Wurzel's Avatar
Wurzel
Thread Starter
Scooby Senior
iTrader: (1)
 
Joined: Nov 2000
Posts: 9,708
Likes: 73
From: Wildberg, Germany/Reading, UK
Default

Happy scratching
Reply
Old May 9, 2008 | 09:16 AM
  #4  
kernel's Avatar
kernel
Scooby Regular
 
Joined: Feb 2001
Posts: 627
Likes: 0
Default

I've done the nslookup thing using a PHP script before, don't recall it being very difficult.
Reply
Old May 13, 2008 | 09:23 AM
  #5  
Wurzel's Avatar
Wurzel
Thread Starter
Scooby Senior
iTrader: (1)
 
Joined: Nov 2000
Posts: 9,708
Likes: 73
From: Wildberg, Germany/Reading, UK
Cool

Originally Posted by druddle
Jaysusssss. Right off to scratch my head......
How's that head scratching going???
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Abx
Subaru
22
Jan 9, 2016 05:42 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM
Nick_Cat
Computer & Technology Related
2
Sep 26, 2015 08:00 AM




All times are GMT +1. The time now is 02:59 PM.