View Single Post
  #3 (permalink)  
Old 2007-01-08
northlandboy northlandboy is offline
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 857
Rep Power: 3
northlandboy has an average reputation (10+)
Default Re: How do I create a large number of objects via the command line?

Quote:
Originally Posted by usman_a View Post
How can i use dbedit to create multiple hosts from a given IP range? am only interested in certain hosts not all of them....eg if i have 10.10.1.0 i want host 10.10.1.12 then 10.10.2.12 > 10.10.3.12 > 10.10.4.12 an so on......with only the third octet changing?

i want to do with this for three different ip ranges in one go ie 10.10.1.0, 172.16.1.0 and 192.168.1.0 and only create objects for certain hosts within each range.

Script it. Your requirements sound fairly easy to script.
Reply With Quote