HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to check Telnet Login in Hudred servers !...
Operating System - HP-UX
1834651
Members
2534
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-06-2003 11:07 PM
08-06-2003 11:07 PM
Need to check Telnet Login in Hudred servers !!
Hi,
I need to check if my unix userid is working
in hundreds of Unix server. The userid and password are same, but only host will be different.
Manually doing telnet login to all server is
very time consuming. So I try to hard code a single script to login. Then I try to rcp .profile to the local unix host with name as hostname_profile. Then exit, try to do same
way for next server and so on.
Can you please write a small unix script for this for one server (sample). Similar way I will do for all my servers.
Thanks
R.Ezhil
I need to check if my unix userid is working
in hundreds of Unix server. The userid and password are same, but only host will be different.
Manually doing telnet login to all server is
very time consuming. So I try to hard code a single script to login. Then I try to rcp .profile to the local unix host with name as hostname_profile. Then exit, try to do same
way for next server and so on.
Can you please write a small unix script for this for one server (sample). Similar way I will do for all my servers.
Thanks
R.Ezhil
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 11:18 PM
08-06-2003 11:18 PM
Re: Need to check Telnet Login in Hudred servers !!
Make a list of hostnames.
Save password in a file called pword
while read -r hostname
do
telnet $hostname < pword
rc=$?
if [ $rc -eq 0 ]
then
echo "success"
else
echo "$hostname failed error $rc"
fi
done < list.of.hostnames
This script is not totally working and may need some tweaks. Consider it conceptutal.
SEP
Save password in a file called pword
while read -r hostname
do
telnet $hostname < pword
rc=$?
if [ $rc -eq 0 ]
then
echo "success"
else
echo "$hostname failed error $rc"
fi
done < list.of.hostnames
This script is not totally working and may need some tweaks. Consider it conceptutal.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 11:19 PM
08-06-2003 11:19 PM
Re: Need to check Telnet Login in Hudred servers !!
Take a look here, you can write a script using expect or perl to do automatic logins using telnet;
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x70eae822e739d711abdc0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x70eae822e739d711abdc0090277a778c,00.html
Im from Palmerston North, New Zealand, but somehow ended up in London...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP