cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
651
Views
1
Helpful
1
Replies

Auto Execute upon Login

Pete89
Level 2
Level 2

Hello,

I am looking for a certain functionality for a generic account in conjunction with an RSA device to log into our routers and switches.

What I would like is for somehow a few commands to be run when the user logs on.

Not much else. Can I do that??

Thanks,

Pedro

1 Reply 1

Pete89
Level 2
Level 2

OK I found the answer to my own question.

The command is as follows:

username billybob autocommand any_command_here

The will only allow the user in question to run that one command. As soon as the command finishes, the user is logged out.

You could also use this command to call a predefined menu of commands:

username billybob autocommand menu my_custom_menu

To disable the automatic disconnection after the command is run:

username billybob nohangup autocommand menu my_custom_menu

Hope that helps someone someday....

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: