I have hosts file in my master linux machine and this host file include more then 1000 IP address that defined many components as Linux and solaris machine and switches and routers and EMC port and so on
184.108.40.206 LinuxM26 220.127.116.11 SolarisM476 18.104.22.168 SolarisM476 22.214.171.124 RouterF938374 126.96.36.199 CiscoSitch47846 188.8.131.52 MasterLinux376 184.108.40.206 SwitchCisco385736 172.17.80.24 UnixWare7.1.1-854776 172.17.80.24 LBA-frhr 172.17.80.25 EMC-storage329478245 . . . .
my target is to perform auto scp process from all the linux & solaris machine that defined in the hosts file to my master linux machine
the problem is that some hosts in the host file are not linux or solaris as switches and routes
so I was thinking how to perfrom s hort test that will tell us if the target hosts is linux/solaris or other as switch/router/etc
I ask all this because I can’t perform scp/ssh to target switch/router because this will give alarm from the switch ( because the scp/ssh )
so I will happy to get some process that will identify the target host is switch or router without to use scp/ssh