Solved

System info script

Posted on 2009-06-29
12
215 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
firstChar challenge 13 86
Scripted configuration of TightVNC with Start on boot 7 35
Not needed 13 58
Sendmail STARTTLS error 37 43
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.:
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.

747 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

11 Experts available now in Live!

Get 1:1 Help Now