- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how do u limit the no of telnet sessions
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
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
10-10-2001 12:45 PM
10-10-2001 12:45 PM
how do u limit the no of telnet sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:03 PM
10-10-2001 01:03 PM
Re: how do u limit the no of telnet sessions
You can set kernal parameters npty and nstrpty for number of telnet sessions
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:04 PM
10-10-2001 01:04 PM
Re: how do u limit the no of telnet sessions
nstrtel
npty
nstrpty
http://docs.hp.com/hpux/onlinedocs/os/KCparam.NstrPty.html
http://docs.hp.com/hpux/onlinedocs/os/KCparam.Npty.html
http://docs.hp.com/hpux/onlinedocs/os/KCparam.NstrTel.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:05 PM
10-10-2001 01:05 PM
Re: how do u limit the no of telnet sessions
I would limit the kernel parameters npyt,nstrpty, and nstrtel. Nstrtel is probably your best bet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:06 PM
10-10-2001 01:06 PM
Re: how do u limit the no of telnet sessions
#cp /stand/system /stand/system.prev
#/usr/lbin/sysadm/system_prep -s /stand/system
#edit system file and limit nstrtel to whatever the number you want
#mk_kernel -o /stand/vmunix (kmupdate is automatic)
#shutdown -ry 0
For 10.20, you got to change npty.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:07 PM
10-10-2001 01:07 PM
Re: how do u limit the no of telnet sessions
there are device drivers by limmiting the ntty
and nstrpty in your kernal you will be limiting the number of telnet sessions that can be open. The 2 numbers should go hand in hand.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:13 PM
10-10-2001 01:13 PM
Re: how do u limit the no of telnet sessions
I thought it was only ntty and nstrpty in your kernal to limit telnet.
But I see you talking talking about nstrtel.
I know you modify ntty and nstrpty 1 for one. But it should still work if you dont modify nstrtel right?
Or what if you only modify nstrtel and not ntty and nstrpty ?
Or what if you modify all 3 of them?
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 01:53 PM
10-10-2001 01:53 PM
Re: how do u limit the no of telnet sessions
From TKB document #BHERRKBRC00002727:
/begin_quote/
nstrtel specifies the number of telnet device files that the kernel can support for incoming telnet sessions. This number should match the number of device files that exist on the system. If the insf command or SAM is used to
create more telnet device files, the value of nstrtel must be increased accordingly or the device files cannot be used because there are no kernel data structures available for communicating with the system.
/end_quote/
See also 'ntpy' and 'nstrpty' in:
http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html
BTW, RICHARD:
-------------
You have unscored responses here:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x01fbc6af36b7d5118ff10090279cd0f9,00.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2001 07:17 AM
10-11-2001 07:17 AM
Re: how do u limit the no of telnet sessions
This issue was really bothering me. Mainly because I didn't understand. So I opened up a call with HP and here is what I got.
My name is Darrick Schuch and have taken ownership of your case
3200370288.
Hope this will answer your questions. First here is a description of each
of the parameters:
nstrpty limits the number of streams-based PTYs that are allowed system-wide. When
sending data to PTY devices (such as windows), a PTY device must exist for
every window that is open at any given time.
nstrpty should be set to a value that is equal to or greater than the number
of PTY devices on the system that will be using streams-based I/O pipes.
Using a parameter value significantly larger than the number of PTYs is not
recommended. nstrpty is used when creating data structures in the kernel to
support those streams-based PTYs, and an excessively large value wastes
kernel memory space.
npty limits the number of the following structures that can be used by the
pseudo-teletype driver:
nstrtel specifies the number of kernel data structures that are created at
system boot time that are required to support the device files used by
incoming telnet sessions on a server. This number should match the number of
device files that exist on the system. If the insf command or SAM is used to
create more telnet device files, the value of nstrtel must be increased
accordingly or the device files cannot be used because there are no kernel
data structures available for communicating with the system.
Select a value for nstrtel that is equal to or greater than the number of
telnet device files on the system. Selecting a value that exceeds the number
of device files actually existing on the system wastes the memory consumed
by extra data structures, but it may be justified if you are planning to add
more device files.
So as you can see, at least the npty and the nstrtel would need to match.
This will allow at least the same amount of telnet sessions as device files.
In other words this will give you your actual telnet sessions allowed.
Hope this helps!
Thanks!
Darrick Schuch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2001 07:27 AM
10-11-2001 07:27 AM
Re: how do u limit the no of telnet sessions
nstrtel did not exist in 10.20, it came about in 11.0.
So if you're using 10.20 do not worry about nstrtel.