- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script for scanning the network
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 12:19 AM
02-19-2003 12:19 AM
Script for scanning the network
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 01:15 AM
02-19-2003 01:15 AM
Re: Script for scanning the network
Does the following help at all - I am unfamiliar with nmap, so have simply put a remsh to the server to get the OS type:
=============================
#!/usr/bin/ksh
ypcat hosts | awk '{print $2}' | while read HOST ; do
# Check that the server is alive
echo "$HOST .."
/etc/ping $HOST 8 1 | grep 100% >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "++ $HOST down"
continue
fi
OS=`remsh $HOST -n uname -s`
echo $HOST >> /tmp/$OS
done
=============================
rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 01:49 AM
02-19-2003 01:49 AM
Re: Script for scanning the network
For the above script first of all I should be having .rhosts entries in all the hosts which is not the case here. Also there are different variants of OSs in our network like Windows XX, Mac OS, Netware, Unix variants .... for which the uname -s may not work ..
Thanks
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:11 AM
02-19-2003 02:11 AM
Re: Script for scanning the network
ftp -v -n
quit
EOF
This gives the following on MS servers.
220
221
It can't narrow down the windows version, but at least you know it's a windows system.
For UX servers, it will depend on the version of ftpd, and how (or if) it is set up as to what info you can get back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 06:04 AM
02-20-2003 06:04 AM
Re: Script for scanning the network
I found nmap for HP at http://www.insecure.org/nmap/index.html
I have never used this on a HP use it on Linux
You could do a
nmap -O 'xxx.xxx.xxx'
then on the host that did not return an os but have telnet or ftp or finger some other usefull port open
you could do something like
telnet 'xxx.xxx.xxx' port_number
output the result of this to a file
all of the above could go in a script, I have use this technique by typing it from shell when I find some unexpected connection in my security log on linux.
Hope this helps, Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 07:54 PM
02-20-2003 07:54 PM
Re: Script for scanning the network
I used linux's nmap to collect the data. I tried nmap for hp-ux but found it to be slower and inaccurate that the prior.
Thanks
Karthik