CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [1arryb] Help needed for my script: Edit Log



richsark
User

Apr 21, 2009, 7:24 AM


Views: 5972
Re: [1arryb] Help needed for my script

Hi, Thanks for your reply, the sample data from subnet.txt looks like

10.2.0.0/16
10.2.92.0/24
10.3.0.0/16

I need to run a cli that points to each of the contents in subnet.txt and run it one subnet at a time, like so

getzoneprof -u Xxx -p Xxx a $subnet -o Orig

Once you run this I get lots of stuff, but I am only interested in on a few parameters which start from the first 4 lines of the output.

This is what it looks like:

getzoneprof -u XxX -p XxX -a 10.0.0.0/16 -o Orig

Zone=10.0.0.0/16
ParentAddress=10.0.0.0/8
NetworkAddress=10.0.0.0
dnsServers=richm01.cmmc.sark.com P 0,hhyt.sark.com 0,6cnscuyt1.netdevice.richsark.com S 0, dell.netdevice.rich.net S 0, sony123.sarkie.west.org S 0

I need to ssh to each and every server listed in the dnsServers= line and see if there are *.jnl files present. If so I report on it.

Does this help in solving my code?


(This post was edited by richsark on Apr 21, 2009, 7:33 AM)


Edit Log:
Post edited by richsark (User) on Apr 21, 2009, 7:33 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives