Solved

Determine Systeminfo in Linux

Posted on 2014-10-28
17
459 Views
Last Modified: 2014-10-31
In windows:
 Systeminfo /s <ipaddress of the remote computer>

will display information about Windows system.
have read on how to do it in Linux, I found that : nmap -O command will do the same.

I am trying it on Centos, but does not work:
nmap
0
Comment
Question by:jskfan
  • 9
  • 7
17 Comments
 
LVL 7

Expert Comment

by:slubek
Comment Utility
You don't have nmap installed
Do:
# yum install nmap

Open in new window

0
 
LVL 6

Assisted Solution

by:Shiju Jacob
Shiju Jacob earned 250 total points
Comment Utility
But nmap will only show the port related info

you can use couple of commands
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/version
cat /etc/*release*
uname -a
lspci
lsusb
 lsblk
dmidecode | less
0
 
LVL 7

Accepted Solution

by:
slubek earned 250 total points
Comment Utility
@Shiju Jacob: jskfan asked about remote OS fingerprinting. Your commands give an information about local system. nmap -O is the proper tool in Linux.
It only has to be installed as it is not part of default CentOS installation.
0
 

Author Comment

by:jskfan
Comment Utility
Apparently the OS I installed does not know the command.
I have download and installed :CentOS-7.0-1406-x86_64-Everything.iso
I cannot install nmap.
yum
0
 
LVL 7

Expert Comment

by:slubek
Comment Utility
"Could not resolve host: ..." means that you have issues with your internet connection.
What is the output of:
/sbin/ifconfig
cat /etc/resolv.conf
ping www.google.com

Open in new window

0
 

Author Comment

by:jskfan
Comment Utility
resolv.conf is empty
0
 
LVL 7

Expert Comment

by:slubek
Comment Utility
That's why your system cannot resolve host names.
Put:
nameserver 8.8.8.8

Open in new window

into resolv.conf

That will add Google nameserver.
0
 

Author Comment

by:jskfan
Comment Utility
I have added this to resolv.conf, but still cannot get to internet
nameserver 8.8.8.8
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 7

Expert Comment

by:slubek
Comment Utility
Do you have an active internet connection?
What is the result of
ping -n 8.8.8.8

Open in new window

Does it return responses like:
$ ping -n 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=58.1 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=64.8 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=2328 ms
...

Open in new window

?
0
 

Author Comment

by:jskfan
Comment Utility
it shows "Network is Unreachable"
0
 
LVL 7

Expert Comment

by:slubek
Comment Utility
So you have to configure network first. After all, you can't determine remote computer OS without being connected. :^)
Here you can find instructions.
0
 

Author Comment

by:jskfan
Comment Utility
Oh yes.. I have internet connection on my PC, Linux is on Vnware workstation
0
 

Author Comment

by:jskfan
Comment Utility
I tried on VM Settings:
host only, NAT, Bridge
still does not work
0
 
LVL 7

Expert Comment

by:slubek
Comment Utility
Sorry, I know nothing about VMware configuration, you'll have to ask another expert how to set it up.

Anyway, when you have connection, install nmap and nmap -O will work.
0
 

Author Comment

by:jskfan
Comment Utility
I wonder  if  a moderator can jump in and adds  this Question to VMware area.
0
 

Author Comment

by:jskfan
Comment Utility
I downloaded  CentOS-7.0-1406-x86_64-GnomeLive.iso
 It worked just perfect..
 Thanks

cat /etc/*release* , retrieved the OS version of local system.
I do not have remote Linux box now to test the : nmap -O
it should work though

Thank you again
0
 

Author Closing Comment

by:jskfan
Comment Utility
Thank you Guys!
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

743 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

17 Experts available now in Live!

Get 1:1 Help Now