The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to connect unix server to unix server through shell scripts phatan Shell Programming and Scripting 2 06-23-2008 03:08 AM
How to connect unix server to unix server through shell scripts phatan Shell Programming and Scripting 2 06-19-2008 06:30 AM
Automating Database scripts in UNIX konquistador Shell Programming and Scripting 2 03-01-2006 12:58 PM
Automating Database scripts in UNIX konquistador UNIX for Dummies Questions & Answers 0 03-01-2006 11:52 AM
Automating Database scripts in UNIX konquistador HP-UX 0 03-01-2006 11:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-12-2008
whizkidash whizkidash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 11
Shell Scripts for automating server inventory for unix servers

Dear Team,

I am very new to shell scripting & and presently monitoring unix boxes

I am looking for a shell script which will give me the below output
script should contain –
hostname,OS Version,CPU details, Physical Memory, Partitions Details, Network Details and Software Installed, Packages Installed.

Request you to provide me with the same at the earliest.
Many thanks in advance..
  #2 (permalink)  
Old 10-12-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 712
Hi.

The only general-purpose solution I know of is MagniComp - SysInfo(TM) Total System and Storage Asset Information but it is not free, and I doubt that it is a script.

In the Linux world, there are:
Sysinfo - A Linux Box System Information Retriever - Developer Community
and
Linux Post-Install procedures (look for script shavlik)
You might be able to adapt them to various unix boxes.

A search using appropriate terms with Google might produce more possibilities.

For a novice in scripting, I would call this project very ambitious. Best wishes ... cheers, drl
  #3 (permalink)  
Old 10-12-2008
whizkidash whizkidash is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 11
hi drl,

Many thanks for your help ..Its indeed helpful.
Just want to enquire how do i find software installed and packages installed in a script as those are also part of it.

Many thanks in advance.

regards
Whizkid
  #4 (permalink)  
Old 10-12-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 712
Hi.

Most systems use package managers to keep track of software. So, for example, RedHat invented rpm, GNU/Debian uses APT, the Solaris 10 box I use has a series of pkg tools, e.g.

Code:
pkginfo         pkginfo (1)     - display software package information

FreeBSD uses something similar:

Code:
pkg_version(1)           - summarize installed versions of packages

However, a system can be modified -- software can be added -- without the use of a package manager, and then it is more difficult to tabulate the software assets.

Depending on the version of *nix you are using, you'll need to do some research on the appropriate tools. Some special forums exist here at unix.com to help support IBM's aix, Hewlett-Packard's hp-ux, etc.

Again, best wishes, and keep us posted ... cheers, drl
  #5 (permalink)  
Old 11-26-2008
techlinux techlinux is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 86
Shell script to display System information such as, Hostname, OS version, Kernel version, Processor/CPU, Total RAM, System load, network interface, total logged in users, Hard disks, Runlevel
Shell script to General FreeBSD and Linux System information
  #6 (permalink)  
Old 11-26-2008
Autocross.US's Avatar
Autocross.US Autocross.US is offline
Registered User
  
 

Join Date: Nov 2008
Location: Chesapeake, VA
Posts: 73
Check out cfg2html:
cfg2html - Config To HTML Collector

It can take a while to run, and may be overkill in your case, but has a lot of info.
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0