Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    rehat linux scripting For rpm,patches,ports open & closed host


    I need to script to run on redhat 5.8 like
    server information , rpm , ports opened and closed & HBA,IPaddress,LVM's , Mount points ..etc

    If any one having the script please share it to me

    Thanks
    RD

  2. #2
    if you are looking for one magic script that does all these things (some of which are very vague), you won't find it.

    instead what you ought to do is list specifically what information you are trying to get. most of things you want can be retrieved via GNU commands, which are probably already installed, and can be called from your shell, and stuffed into a shell script that you write.

    example:

    Code:
    #!/bin/bash
    
    # get system/kernel info:
    uname -a
    
    # get mounted partitions
    mount
    
    # get ip info for all network devices
    ip a
    
    # get list of open ports on local system
    nmap -n localhost
    that is just a start. again, provide more details for the things you specifically want.

Posting Permissions

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