- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Open New Session from Workstation.
Operating System - HP-UX
1759165
Members
3016
Online
108879
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
Discussions
Discussions
Forums
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
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
тАО01-05-2006 02:01 AM
тАО01-05-2006 02:01 AM
Open New Session from Workstation.
Dear All,
Suppose I have 10 servers , and I need to open a ssh window automatically to all these 10 servers from my workstation , how can I do it .
Is there any script or program available for that .
My requirement is to execute the script and it should pop up 10 different windows asking for user name and passwords to those servers .
So that I will provide username and password and keep these sessions opened , so that in case my root file system gets locked I can at least have a open session from my workstation .
How is this possible ,any help .
Thanks in advance ,
bl.
Suppose I have 10 servers , and I need to open a ssh window automatically to all these 10 servers from my workstation , how can I do it .
Is there any script or program available for that .
My requirement is to execute the script and it should pop up 10 different windows asking for user name and passwords to those servers .
So that I will provide username and password and keep these sessions opened , so that in case my root file system gets locked I can at least have a open session from my workstation .
How is this possible ,any help .
Thanks in advance ,
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 02:19 AM
тАО01-05-2006 02:19 AM
Re: Open New Session from Workstation.
Assuming it's the same username for all servers, you should be able to do something like this to accomplish what you want.
#!/usr/bin/sh
# serverlist is a file with a list
# of servers, one per line
SERVERS=$(cat serverlist)
# Can give username as a command line
# argument to this script
USER=$1
# Open the windows to make the ssh
# connections
for SERVER in ${SERVERS}
do
hpterm -e "ssh ${USER}@${SERVER}" &
done
#!/usr/bin/sh
# serverlist is a file with a list
# of servers, one per line
SERVERS=$(cat serverlist)
# Can give username as a command line
# argument to this script
USER=$1
# Open the windows to make the ssh
# connections
for SERVER in ${SERVERS}
do
hpterm -e "ssh ${USER}@${SERVER}" &
done
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 02:20 AM
тАО01-05-2006 02:20 AM
Re: Open New Session from Workstation.
You could have a 10 line executable that is calling the ssh to those servers.
Example;
dtterm -e &
(repeat this line for each server)
To make more elaborate with colors and scroll bars and fonts, etc.
dtterm -bg azure -fg black -sb -sl 1000 -font 8x16 -name -title -e ssh &
Using the dtterm executable - you may want/need to use the xterm (depending on flavor)
Just put these into a file and make executable.
Example;
dtterm -e
(repeat this line for each server)
To make more elaborate with colors and scroll bars and fonts, etc.
dtterm -bg azure -fg black -sb -sl 1000 -font 8x16 -name
Using the dtterm executable - you may want/need to use the xterm (depending on flavor)
Just put these into a file and make executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2006 03:17 AM
тАО01-05-2006 03:17 AM
Re: Open New Session from Workstation.
Thanks .
Good things Just Got better (Plz,not stolen from advertisement -:) )
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP