script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mubs
    New Member
    • Mar 2007
    • 77

    script

    Shell script requirements

    When the “system status report” script is invoked the user should be presented with a menu. This will provide a list of options allowing the user to decide what the report should contain. The resultant text file report can be e-mailed or faxed to the technical support team.

    Your system status report script should enable the following information to be output to the screen and/or a text file report plus any additional information that you consider useful:

    General machine information

    * The name of the machine and the date/time at which the report was produced.
    * Licensing information such as the operating system revision level and license restrictions in terms of user numbers
    * When was the system last rebooted.

    Machine hardware/software information

    * Current hardware
    * Disk size, RAM size and utilisation
    * Installed software
    * The number of processes currently running on the machine and information about those processes.
    * The configuration and usage of the UNIX file systems.

    Network related information

    * IP address
    * Subnet mask
    * Network Interface Card physical address
    * The current status of the NIC.
    * Details held in the /etc/hosts
    * Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.

    User related information

    * Details of valid system users (e.g. their ID number and the group(s) that they belong to).
    * The number of users currently “logged on” and information about those users.
    * Details of those users who currently have an account but are not logged on.
    * Details of when valid system users last logged on.

    can anyone help
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Create a shell script with a menu system that responds to options. Then query the /proc file structure to get the desired information. Use sed and awk, along wtih regular expressions to get the information you desire. Alternatively, you may be able to get away with grep. Once you have your data, parse/pipe it to a file.

    Originally posted by Mubs
    Shell script requirements

    When the “system status report” script is invoked the user should be presented with a menu. This will provide a list of options allowing the user to decide what the report should contain. The resultant text file report can be e-mailed or faxed to the technical support team.

    Your system status report script should enable the following information to be output to the screen and/or a text file report plus any additional information that you consider useful:

    General machine information

    * The name of the machine and the date/time at which the report was produced.
    * Licensing information such as the operating system revision level and license restrictions in terms of user numbers
    * When was the system last rebooted.

    Machine hardware/software information

    * Current hardware
    * Disk size, RAM size and utilisation
    * Installed software
    * The number of processes currently running on the machine and information about those processes.
    * The configuration and usage of the UNIX file systems.

    Network related information

    * IP address
    * Subnet mask
    * Network Interface Card physical address
    * The current status of the NIC.
    * Details held in the /etc/hosts
    * Is the machine able to connect to (i.e. ping) a specified list of IP addresses stored in a configuration file.

    User related information

    * Details of valid system users (e.g. their ID number and the group(s) that they belong to).
    * The number of users currently “logged on” and information about those users.
    * Details of those users who currently have an account but are not logged on.
    * Details of when valid system users last logged on.

    can anyone help

    Comment

    • Mubs
      New Member
      • Mar 2007
      • 77

      #3
      Originally posted by Motoma
      Create a shell script with a menu system that responds to options. Then query the /proc file structure to get the desired information. Use sed and awk, along wtih regular expressions to get the information you desire. Alternatively, you may be able to get away with grep. Once you have your data, parse/pipe it to a file.

      i do not knw where to start

      i am new at linux

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        A good start would be to Google some shell scripting tutorials.

        Comment

        Working...