Solved

Determine Systeminfo in Linux

Posted on 2014-10-28
17
475 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
ID: 40408782
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
ID: 40408860
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
ID: 40409260
@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
ID: 40411086
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
ID: 40411569
"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
ID: 40412109
resolv.conf is empty
0
 
LVL 7

Expert Comment

by:slubek
ID: 40412116
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
ID: 40412130
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
ID: 40412139
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
ID: 40412164
it shows "Network is Unreachable"
0
 
LVL 7

Expert Comment

by:slubek
ID: 40412193
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
ID: 40412199
Oh yes.. I have internet connection on my PC, Linux is on Vnware workstation
0
 

Author Comment

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

Expert Comment

by:slubek
ID: 40412221
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
ID: 40412229
I wonder  if  a moderator can jump in and adds  this Question to VMware area.
0
 

Author Comment

by:jskfan
ID: 40415621
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
ID: 40415623
Thank you Guys!
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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.
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.

911 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

21 Experts available now in Live!

Get 1:1 Help Now