LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2010, 03:55 PM   #1
jshunjan
LQ Newbie
 
Registered: Oct 2010
Location: Surrey, BC, Canada
Posts: 1

Rep: Reputation: 0
Need a script to grab mac,hostname and ip adress remotely


Hi Everyone,

I have a file with hostname or ipadress as a input file.
Need to connect remotely and retrive ip, MAC, interface and hostname.
Is this possible?

Cheers,
Jatinder
 
Old 10-22-2010, 08:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jshunjan View Post
Hi Everyone,
I have a file with hostname or ipadress as a input file.
Need to connect remotely and retrive ip, MAC, interface and hostname.
Is this possible?
Yes, use SNMP, read the man page on snmpwalk/snmpget.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Please help !!! I need Linux Script to obtain IP,MAC,Hostname,/proc/cpuinfo,conncted shourieksr Linux - Desktop 7 10-19-2009 02:47 AM
MAC-Adress change / which script to use / SUSE 10 oliju Linux - Networking 7 12-13-2005 04:22 PM
Hostname keeps being reset to MAC adress twit21 Mandriva 0 12-08-2005 12:52 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 01:38 AM
Hostname Issue & Unable to Grab IP Add nistelrooy Linux - Networking 3 11-23-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration