Any shell script programmers out there???
Thread Starter
Scooby Senior
iTrader: (1)
Joined: Nov 2000
Posts: 9,708
Likes: 73
From: Wildberg, Germany/Reading, UK
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
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
Thread
Thread Starter
Forum
Replies
Last Post
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




