08-28-2008 01:27 AM
Hello,
i'm asking about something that I encounter, when using the command 'autocommand'
When I use it in the line mode router(config-line)# that works when I log in the line.
But that don't work when using it with the command (config)#username [usr] autocommand.
Any idea to fix that ?
Regards,
09-04-2008 11:23 AM
To automatically execute a command when a user connects to a particular line, use the autocommand command in line configuration mode. To disable the automatic execution, use the no form of this command.
autocommand command
where command Any appropriate EXEC command, including the host name and any switches that occur with the EXEC command.
For the furthere details follow the URL :
http://www.cisco.com/en/US/docs/ios/12_3/termserv/command/reference/ter_a1g.html#wp998780
09-07-2008 06:48 AM
Yes, I did it.
But what i'm looking for is to execute a command not in a specific line but for a specific user.
I used it with the command user
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide