System info script

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.

linuxpigAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
IBM AIX: prtconf
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
SUN Solaris: prtconf
0
Monis MontherSystem ArchitectCommented:
For linux

lshw
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

linuxpigAuthor Commented:
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
woolmilkporcCommented:
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
woolmilkporcCommented:
timezone name  - date +%Z  (all systems)
0
linuxpigAuthor Commented:
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
gheistCommented:
What do you mean by "not working" ?
Please post relevant errors etc...
0
linuxpigAuthor Commented:
/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
gheistCommented:
HP ... without being root to run

This is exactly main problem with HP-UX.
0
linuxpigAuthor Commented:
I didnt get a workable solution for the HP-UX part of my question.
0
gheistCommented:
For HP-UX many things are restricted to root.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.