Find the answer to your Linux question:
Results 1 to 3 of 3
Ok guys im not a script writer at all. That being said I need a script that will do the following. Please help. I have a service accout setup with ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    20

    Shell Script to gather information


    Ok guys im not a script writer at all. That being said I need a script that will do the following. Please help.
    I have a service accout setup with ssh keys so this is what i need. This script will login in to over 300 servers.
    -> mkdir /var/tmp/finger
    -> cd /var/tmp/finger
    -> chown "svc acct" all files in this dir.
    -> chown+x finger.script
    -> ./finger.script
    -> I need the output from this script forwarded to another server.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,410
    For 300 server I highly recommend something more mature and stable than a script in a loop via ssh.

    Have a look at puppet or chef.
    Yes, this needs a bit of infrastructure and initial effort.
    But imho if we are talking about 300 machines, the time for manual fiddling is simply over.
    You must always face the curtain with a bow.

  3. #3
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    910
    Quote Originally Posted by terrywhitejr2000 View Post
    Ok guys im not a script writer at all. That being said I need a script that will do the following. Please help.
    I have a service accout setup with ssh keys so this is what i need. This script will login in to over 300 servers.
    -> mkdir /var/tmp/finger
    -> cd /var/tmp/finger
    -> chown "svc acct" all files in this dir.
    -> chown+x finger.script
    -> ./finger.script
    -> I need the output from this script forwarded to another server.
    Unfortunately, you don't get to 'not be a script writer at all.'
    You should try to write the script yourself, and if you have any questions, ask them here!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •