Solved

System info script

Posted on 2009-06-29
12
227 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 61

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
 

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 61

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 61

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 61

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

862 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now