Solved

System info script

Posted on 2009-06-29
12
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Monis Monther
ID: 24739333
For linux

lshw
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

724 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