Shell Scripts for automating server inventory for unix servers


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell Scripts for automating server inventory for unix servers
# 1  
Old 10-12-2008
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..Smilie
# 2  
Old 10-12-2008
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  
Old 10-12-2008
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  
Old 10-12-2008
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  
Old 11-26-2008
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  
Old 11-26-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Server inventory software

Hi, do you know any good server inventory open source products? I want information like, server hostnames, ram, cpu, os, filesystems, volume groups, disks, adapters, installed software versions, firmware levels and so on os: aix, solaris, linux, hpux data should be kept in a database, web... (7 Replies)
Discussion started by: funksen
7 Replies

2. Web Development

Help me in automating the recycling of UNIX server

Hello everyone...I am very new to UNIX hence needs your help in below. i have written a script to change some configuration in property files and its working fine.but to reflect that change at the application i want to recycle WAS and ihs.i.e. run below start and stop commands at /usr/local/bin ... (2 Replies)
Discussion started by: Sanaa
2 Replies

3. UNIX for Dummies Questions & Answers

To copy a file from one unix server to another unix server through scripts

I am getting the fallowing error when i am trying to execute the scp commomd in shell script warning: You have no controlling tty. Cannot read confirmation. warning: Authentication failed. Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.). scp2: warning: ssh2... (1 Reply)
Discussion started by: manit
1 Replies

4. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

5. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies

6. Shell Programming and Scripting

Automating Database scripts in UNIX

Hi everybody, can someone please suggest me how to implement the running of SQL table scripts(.sql) at a specific time automatically in UNIX ?Thanks (2 Replies)
Discussion started by: konquistador
2 Replies

7. UNIX for Dummies Questions & Answers

Automating Database scripts in UNIX

Hi everybody, can someone please suggest me how to implement the running of SQL table scripts(.sql) at a specific time automatically in UNIX ?Thanks (0 Replies)
Discussion started by: konquistador
0 Replies

8. HP-UX

Automating Database scripts in UNIX

Hi everybody, can someone please suggest me how to implement the running of SQL table scripts(.sql) at a specific time automatically in UNIX ?Thanks (0 Replies)
Discussion started by: konquistador
0 Replies

9. Shell Programming and Scripting

Automating interactive scripts

Hi all, I am trying to write a program that will automate interactive scripts that use 'pkgadd'. Easily enough I can use 'pkgask' and a response file for most of what I want to do, but unfortunately there are parts of some pkg installations that are configured to only take input from /dev/tty!!... (2 Replies)
Discussion started by: bookoo
2 Replies
Login or Register to Ask a Question