How to identify a network device before trying to connect to it?
Hello all,
Here is the explanation of my problem:
I have a cronjob that connects to a NAS to do backups from my laptop to this NAS device.
The script that I wrote does check if there is a host (the NAS) responding on 192.168.1.10 and tries to connect to it with the following command:
And well, it works perfectly when I am at home, but:
Problem:
When I am connected on a network at some clients, I realized that it is also trying to connect to some computer on 192.168.1.10 if there is a host responding at this address on the network...
Question:
How would you check the hostname of the host on 192.168.1.10 before trying to connect to it?
What is the best way to check that you are in touch with the host you know and trust before trying to connect to it?
Many thanks for your help and keep up the good work!
Since you only want the home machine, check the mac address? After all, you cannot be sure it is something you can log in to but it has to be something you can ARP. Of course, you need a tool that can do an ARP on the local network.
Alternatively, since you can log into your own host, just "ssh -n nas_host uname -n" with PPK authentication.
Indeed I thought about ssh on to the NAS with a private key installed but there is no ssh server on this old NAS...
For the Address Resolution Protocol (arp -ev 192.168.10) works great to give me the MAC address of my device.
Therefore it seems I have the right tools to arp!!
Good!! But could you please be a bit more specific on the kind of tool I have to ARP on my network in order to check the MAC address associated with the ip?
On other network how to check if I have such a tool?
I guess I just try the command arp..? But How to get this arp tool if I do not have it?
Please any links to more resource about this is more than appreciated.
It occurs to me that if you just ping the local collision domain Ethernet host, the mac will be in your host's ARP cache, if you can find where it is or list it.
Hi all
unixware 7.1.3 I'm afraid ! I connected a usb tape drive and it was automatically recognised in the device list (sdiconfig -l) and created devices in /dev/rmt (ctape1 etc.). I could successfully read and write to the device.
Then unplugged the usb cable and plugged it back in again... (0 Replies)
Hi All,
Could anyone please help to resolve the below problem.
I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error.
I spent 2 days for the above and go through with several suggestion found by googling. But no luck.
... (0 Replies)
Hello All, at our client VIOS Server there is shared ethernet adapter ent6,
when I run lsattr -El ent6 the output shows real adapter ent1 lsattr -El ent6
accounting disabled Enable per-client accounting of network statistics True
ctl_chan ent5 Control Channel... (2 Replies)
Hi there,
I have a computer that is not a server. I mean it should have no network activity as it is meant to display videos and not to provide any ftp, web or whatever service.
The probleme is that the computer actualy reports a constant network activity.
How can I identify the processes that... (1 Reply)
Hi.. I have problem about connecting two network. First let me tell about my project. I use Quagga to build up IPv6 Island Network. At first, i build one (1) PC Router or one (1) network, i call it as Network A. All PC's or Laptop's (node's) that connect to Network A can communicated to each other... (4 Replies)
Platform: Sun Solaris ver 9.
Get alert notification from Oracle and the device stated: Disk utilization for ssd29 reached 98%. How can we map this ssd device with something like c1t2d0s0?
Pls help. Thank you. (10 Replies)
HI,
I am writing a network device driver for RTL8139c card on 2.6.18 kernel ... I am facing few queries listed below
1. Can i able to at all write a driver for RTL8139C or Realtek had designed new chip for 2.6 series kernel?
2. If no then which driver file 2.6.18 uses .. Is it 8139too.c or... (1 Reply)