Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch script Adding Ip adresses to hosts file  (Read 13659 times)

0 Members and 1 Guest are viewing this topic.

gh0std0g74



    Apprentice

    Thanked: 37
    Re: batch script Adding Ip adresses to hosts file
    « Reply #30 on: April 07, 2009, 06:30:47 AM »
    Hi CDO

    I am about to make sure that some hundred monitored servers can send their snmp traps to some newly added monitoring servers during an upgrade. I have no intention of any malicious acts. I am a virgin into scripting so i thought that the experts on batch scripting on this site might be able to get me started.

    best regards plm
    since you have spoken , here's a link for your reference.

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: batch script Adding Ip adresses to hosts file
    « Reply #31 on: April 07, 2009, 06:47:19 AM »
    come on, what are talking about?

    I am talking about network-administration software.

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: batch script Adding Ip adresses to hosts file
    « Reply #32 on: April 07, 2009, 07:02:06 PM »
    I see this as an excuse to get post-count up.

    Carbon said that the code that we could have given could have been used for malicous purposes. It may not be the OP, but like he said, this is a public forum. ANYONE could see/use it.

    OP, if you are a sys admin, then you should at least have enough knowledge of computers to make your own easy way to do what you first posted.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    gh0std0g74



      Apprentice

      Thanked: 37
      Re: batch script Adding Ip adresses to hosts file
      « Reply #33 on: April 07, 2009, 07:40:14 PM »
      @plm, reply #30 is what you need to get you started. check it out and see if it works for you.
      Or, if you have no restriction to download gawk for windows(see my sig)
      Code: [Select]
      C:\test>gawk "1" file1.txt file2.txt
      10.20.30.40
      50.60.70.80
      1.2.3.4
      5.6.7.8