Solved

System info script

Posted on 2009-06-29
12
237 Views
Last Modified: 2013-12-26
Im writing a script to gather all types of info from all *nix type systems, (Linux, BSD, etc...) but i need help on just a couple things:
System Manufacturer, Type, Model, etc...
dmidecode wasnt working for me so i am looking for another way to do this.

0
Comment
Question by:linuxpig
  • 4
  • 4
  • 3
  • +1
12 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 150 total points
ID: 24738225
IBM AIX: prtconf
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 100 total points
ID: 24739059
SUN Solaris: prtconf
0
 
LVL 14

Expert Comment

by:small_student
ID: 24739333
For linux

lshw
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:linuxpig
ID: 24739403
I have linux covered, what about HP-UX? and does anyone know the equivelants for these OS's for Disk, CPU, Mem, Time zone, Domain, etc...
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24739680
HPUX
memory - /etc/dmesg | grep -i phys
disk - /usr/sbin/diskinfo
hardware - /usr/sbin/xstm
NIS domain - /usr/bin/domainname (all systems, afaik))
timezone - echo $TZ (all systems, afaik)
swap - /usr/sbin/swapinfo (Solaris /usr/sbin/swapinfo -l)
 
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 150 total points
ID: 24739784
timezone name  - date +%Z  (all systems)
0
 

Author Comment

by:linuxpig
ID: 24830656
Hey woll, the HP commands you gave arent working for some reason, Are there alternatives for things like system name, Domain name, Model, Processor, all mem info, etc...
0
 
LVL 62

Expert Comment

by:gheist
ID: 24831978
What do you mean by "not working" ?
Please post relevant errors etc...
0
 

Author Comment

by:linuxpig
ID: 24832250
/etc/dmesg | grep -i phys doesnt return anything. Running dmesg by itself shows nothing called physical so this is why. So maybe another command will give this info?
/usr/sbin/diskinfo required either -b or -v and needs a filename as well.  bdf works better.
/usr/sbin/xstm returns:  Error: Can't open display:
Error: Couldn't find per display information
Im looking for commands that can work on any HP machine that gives as much system info as possible without being root to run them. Linux is easy but HP-UX is proving to be difficult for some reason
0
 
LVL 62

Expert Comment

by:gheist
ID: 24835760
HP ... without being root to run

This is exactly main problem with HP-UX.
0
 

Author Closing Comment

by:linuxpig
ID: 31598035
I didnt get a workable solution for the HP-UX part of my question.
0
 
LVL 62

Expert Comment

by:gheist
ID: 24897400
For HP-UX many things are restricted to root.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question