HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Terminal Server Problems - need script help
Operating System - HP-UX
1834882
Members
2050
Online
110071
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
06-25-2002 08:14 AM
06-25-2002 08:14 AM
Terminal Server Problems - need script help
We have terminal servers where the process gets hung up and needs to be killed and restarted. These devices would have a process that runs against a terminal server port - so we could grep on that and then use the port name again to restart it. Anyone have good scripting knowledge ?
for an example a problem with a station that is named pps_t01 and it is linked to /dev/ttyp0 and a grep of the process returns this :
root 81058 1 0 Feb 23 - 1:06 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
root 384590 81058 0 Jun 04 - 0:27 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
then a kill of the processes and to restart would be :
etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
So I would need to connect the link to the port - kill the process and run the command to start it...
for an example a problem with a station that is named pps_t01 and it is linked to /dev/ttyp0 and a grep of the process returns this :
root 81058 1 0 Feb 23 - 1:06 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
root 384590 81058 0 Jun 04 - 0:27 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
then a kill of the processes and to restart would be :
etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
So I would need to connect the link to the port - kill the process and run the command to start it...
I'm really new
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 08:20 AM
06-25-2002 08:20 AM
Re: Terminal Server Problems - need script help
Hi Jim:
If is read this correctly, once you have done your 'grep', pipe to 'cut' like this"
# ... |cut -d" " -f9-
Hence:
# echo "root 81058 1 0 Feb 23 - 1:06 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0" | cut -d" " -f9-
...returns:
etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
Regards!
...JRF...
If is read this correctly, once you have done your 'grep', pipe to 'cut' like this"
# ... |cut -d" " -f9-
Hence:
# echo "root 81058 1 0 Feb 23 - 1:06 /etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0" | cut -d" " -f9-
...returns:
etc/ioland -C -F -T -h -K60 -p a0xxx01 10001 ptyp0 ttyp0
Regards!
...JRF...
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