08-29-2008
Quote:
Originally Posted by
LinuxRacr
How about the "machinfo" command? If you you have an 11.23 machine, that command is very valuable.
I don't think this exists in 8, 9 & 10.
I'm looking at writing a script that collects the hardware inventory, services running, host OS information then the software packages and files installed.
At the moment there is nothing like this, unless I use a commercial product like Peregrine ED, which I don't have several $million to spend.
So far, I have this..
Quote:
LOG: ./administrator-vmws
LAST_UPDATED: 2008-08-27 17.32
UPTIME: 50 days, 3:30
HOST: administrator-vmws
HOSTID: 007f0101
OS: Linux
KERNEL: 2.6.22-15-generic
LSB: DISTRIB_ID=Ubuntu
ARCH: i686
HARDWARE: PowerEdge SC430
LINKSPEED: eth0: negotiated 100baseTx-FD flow-control, link ok
BIOS: Dell Inc. A02
SERIAL#: HZCR42J
MACADDRESS: 00:13:72:08:57:5C
INTERFACES: eth0 vmnet8
IP_ADDRESS: 192.168.1.239 192.168.241.1
CPU: 2 x 2992
MEM: 3895168 kB
GRAPHICS:
DISK: sda Vendor: HL-DT-ST Model: CD-RW GCE-8483B Rev: B105 199148544
DISK: sdb Vendor: ATA Model: Maxtor 6Y200P0 Rev: YAR4 72613056
DF: /dev/sda1 Size:180G Avail:61G Mountpoint:/
AFS: NOT INSTALLED/RUNNING
CC_VERSION: NOT INSTALLED
Does anybody know how to list packages installed, then the files used in those packages?
Last edited by Simbad; 08-29-2008 at 08:41 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm just getting started with unix and would like to know 1) how to tell how big the harddrive is 2) how to tell if there are multiple harddrive installed on the machine 3) a relitavely easy way to tell what programs are installed on the machine.
I'm using Sun OS 5.6
Thanks (3 Replies)
Discussion started by: ViperD
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am new to Unix and am working on AIX ( rs6000 ). I am looking for the system info of the unix box like
1. Number of CPUs
2. CPU speed
3. RAM size
Your help is much appreciated
Thanks
rao. (6 Replies)
Discussion started by: rao
6 Replies
3. HP-UX
How do I get the system information on a HP UNIX server. details like CPU speed, number of processors etc. (4 Replies)
Discussion started by: Olamide
4 Replies
4. Shell Programming and Scripting
hi
I am new to this forum. hope to get help from u all.
how can i write these by using shell programming?
1. The name of the machine and the date/time at which the report was produced.
2. Licensing information such as the operating system revision level and license restrictions in terms of... (1 Reply)
Discussion started by: nokia1100
1 Replies
5. Shell Programming and Scripting
Hey,
I am after the commands to get the following information for my Unix system:
default visual editor (i dont even know where to start with this one)
default window manager (this one either, no idea)
total quota (just the size, none of the other data. I've narrowed it down to quota -sv)... (1 Reply)
Discussion started by: bonjour
1 Replies
6. AIX
Hi,
How to get the AIX system hardware and software basic information using terminal command with guest login?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS Configuration:
... (4 Replies)
Discussion started by: forumguest
4 Replies
7. Infrastructure Monitoring
Hi,
How to get the Linux system hardware and software basic information using terminal command ?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS Configuration:
OS Build Type:... (6 Replies)
Discussion started by: forumguest
6 Replies
8. Solaris
Hi,
How to get the Solaris system hardware and software basic information using terminal command with guest login?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS Configuration:
... (15 Replies)
Discussion started by: forumguest
15 Replies
9. BSD
Hi,
How to get the FreeBsd system hardware and software basic information using terminal command with guest login?
Here below i have specified some of the information i need. Please have a look at this and guide me.
OS Name:
OS Version :
OS Manufacturer:
OS... (2 Replies)
Discussion started by: forumguest
2 Replies
10. AIX
Hi all,
I have googled around quite a bit and tried many different commands to get system information about my AIX 5.3 box but none of the commands I've used have given me quite what I'm looking for. I am interested in finding out the model of the motherboard, and amount of available RAM, the... (2 Replies)
Discussion started by: ThePistonDoctor
2 Replies
modinfo(1M) System Administration Commands modinfo(1M)
NAME
modinfo - display information about loaded kernel modules
SYNOPSIS
/usr/sbin/modinfo [-c] [-w] [-i module-id]
DESCRIPTION
The modinfo utility displays information about the loaded modules. The format of the information is as follows:
Id Loadaddr Size Info Rev Module Name
where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal
bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and
description of the module.
The module specific information is the block and character major numbers for drivers, the system call number for system calls, and unspeci-
fied for other module types.
OPTIONS
The following options are supported:
-c Display the number of instances of the module loaded and the module's current state.
-i module-id Display information about this module only.
-w Do not truncate module information at 80 characters.
EXAMPLES
Example 1: Displaying the Status of a Module
The following example displays the status of module 2:
example% modinfo -i 2
Id Loadaddr Size Info Rev Module Name
2 ff08e000 1734 - 1 swapgeneric (root and swap configuration)
Example 2: Displaying the Status of Kernel Modules
The following example displays the status of some kernel modules:
example% modinfo
Id Loadaddr Size Info Rev Module Name
2 ff08e000 1734 - 1 swapgeneric
4 ff07a000 3bc0 - 1 specfs (filesystem for specfs)
6 ff07dbc0 2918 - 1 TS (time sharing sched class)
7 ff0804d8 49c - 1 TS_DPTBL (Time sharing dispatch table)
8 ff04a000 24a30 2 1 ufs (filesystem for ufs)
9 ff080978 c640 226 1 rpcmod (RPC syscall)
9 ff080978 c640 - 1 rpcmod (rpc interface str mod)
10 ff08cfb8 2031c - 1 ip (IP Streams module)
10 ff08cfb8 2031c 2 1 ip (IP Streams device)
Example 3: Using the -c Option
Using the modinfo command with the -c option displays the number of instances of the module loaded and the module's current state.
example% modinfo -c
Id Loadcnt Module Name State
1 0 krtld UNLOADED/UNINSTALLED
2 0 genunix UNLOADED/UNINSTALLED
3 0 platmod UNLOADED/UNINSTALLED
4 0 SUNW,UltraSPARC-IIi UNLOADED/UNINSTALLED
5 0 cl_bootstrap UNLOADED/UNINSTALLED
6 1 specfs LOADED/INSTALLED
7 1 swapgeneric UNLOADED/UNINSTALLED
8 1 TS LOADED/INSTALLED
9 1 TS_DPTBL LOADED/INSTALLED
10 1 ufs LOADED/INSTALLED
11 1 fssnap_if LOADED/INSTALLED
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
modload(1M), modunload(1M), attributes(5)
SunOS 5.10 1 Oct 2002 modinfo(1M)