11-02-2010 06:49 PM
Hi, All,
I posted a similar post in another forum so I apologize if you're reading this twice. Basically I have a lame SLAX question that I'm sure is pretty easy to answer. I'm trying to create a custom login script that sets my terminal emulation type and screen length "set cli screen-length 0" and "run set cli terminal vt100" variables. Basically I've got the following script;
11-03-2010 09:57 AM
I replied in the other forum, but I'll do so here too. It isn't possible for a script (login or normal op script) to modify your current session settings.
11-03-2010 10:36 AM
ccali,
Thank you for your reply. Do you (or anybody) know if it's possible to set these types of options upon login or link them to a user class in any way (script or no script)? I would think that this would be something that many users would like to do.
Dan
11-03-2010 12:41 PM
It doesn't look like there is a way to do this currently within Junos, unfortunately.
11-03-2010 02:19 PM
Ok, thanks for your help.
Dan Sullivan
06-06-2011 01:31 AM
It is not possible to set screen-length to 0 but it is possible to set max size. Something like this:
> stty rows 100000 > export TERM=test > ssh 192.0.2.1 ... cougar@example> show cli ... CLI screen-length set to 34464 CLI screen-width set to 80 CLI terminal is 'test'