Re: Re(2): Telnet and priviledge levels

From: sabrina pittarel (sabri_esame@yahoo.com)
Date: Fri Sep 01 2006 - 02:00:03 ART


Isn't that what is required by the task?
 
>How do I terminate the telnet connection on completion of output from
>that sh command?
>TIA,
 
 Seems to me that the task wants for the user to be logged out. Am I mis-reading it?
 
 If you don't want to be disconnected you can use the "nohangup" keyword in the autocommand-options
 
 
 line vty 0 4
  password cisco
  login
  autocommand show ip route
  autocommand-options nohangup
 
 
 or
 
 username sabrina password cisco
 username sabrina autocommand show ip route
 
 line vty 0 4
   login local
   autocommand-options nohangup
 
 
 Sabrina
 

----- Original Message ----
From: Angelo De Guzman <a.deguzman@wesolv.ph.fujitsu.com>
To: Faryar Zabihi (fzabihi) <fzabihi@cisco.com>; ccielab@groupstudy.com; Victor Cappuccio <cvictor@protokolgroup.com>
Sent: Thursday, August 31, 2006 5:22:00 AM
Subject: Re(2): Telnet and priviledge levels

Hi,
  I tried this as well. Even using the default privilege the user logs out as
well after a command.

username cisco password 7 14141B180F0B
username cisco autocommand show ip int brief

R4#telnet 192.168.1.1
Trying 192.168.1.1 ... Open

User Access Verification

Username: cisco
Password:
Interface IP-Address OK? Method Status Prot
ocol
FastEthernet0/0 172.16.12.1 YES manual up up

Serial0/0 unassigned YES unset administratively down down

FastEthernet0/1 172.16.10.1 YES manual up up

Serial0/1 unassigned YES unset administratively down down

Virtual-Access1 unassigned YES unset up up

Loopback0 192.168.1.1 YES manual up up

Loopback1 10.34.19.1 YES manual up up

Loopback2 10.34.19.17 YES manual up up

Loopback3 10.34.19.33 YES manual up up

[Connection to 192.168.1.1 closed by foreign host]

Victor Cappuccio (8/22/06 3:07 AM):
>
>Hi Faryar
>
>Does this works?
>
>ROUTER(config)#username cisco password cisco
>ROUTER(config)#username cisco privilege 4
>ROUTER(config)#username cisco autocommand show ip int brief
>ROUTER(config)#line vty 0 4
>ROUTER(config-line)#login local
>ROUTER(config-line)#length ?
> <0-512> Number of lines on screen (0 for no pausing)
>
>ROUTER(config-line)#length 0
>ROUTER(config-line)#^Z
>ROUTER#
>*Mar 1 04:32:15.065: %SYS-5-CONFIG_I: Configured from console by console
>ROUTER#telnet 150.1.5.5
>Trying 150.1.5.5 ... Open
>
>
>User Access Verification
>
>Username: cisco
>Password:
>Interface IP-Address OK? Method Status
>Protocol
>Ethernet0/0 150.1.12.5 YES NVRAM up up
>
>Serial0/0 150.1.13.1 YES NVRAM up up
>
>Serial0/1 unassigned YES NVRAM administratively down
>down
>Serial0/2 unassigned YES NVRAM administratively down
>down
>Loopback0 150.1.5.5 YES NVRAM up up
>
>[Connection to 150.1.5.5 closed by foreign host]
>ROUTER#
>
>Regards
>Victor.-
>
>-----Mensaje original-----
>De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de Faryar
>Zabihi (fzabihi)
>Enviado el: Lunes, 21 de Agosto de 2006 02:40 p.m.
>Para: ccielab@groupstudy.com
>Asunto: Telnet and priviledge levels
>
>I am allowing telnet from R1 to R2 and user can only do "sh X" command(x
>being whatever).
>How do I terminate the telnet connection on completion of output from
>that sh command?
>TIA,
>
> Faryar
>
>_______________________________________________________________________
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>_______________________________________________________________________
>Subscription information may be found at:
>http://www.groupstudy.com/list/CCIELab.html
>
>***********************
>No virus was detected in the attachment no filename
>
>Your mail has been scanned by InterScan MSS.
>***********-***********
>

***********************
No virus was detected in the attachment no filename

Your mail has been scanned by InterScan MSS.
***********-***********



This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:39 ART