?
Solved

System info script

Posted on 2009-06-29
12
Medium Priority
?
265 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 450 total points
ID: 24738225
IBM AIX: prtconf
0
 
LVL 62

Assisted Solution

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

Expert Comment

by:Monis Monther
ID: 24739333
For linux

lshw
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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 450 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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