06-26-2020 07:12 AM
I want to run a command (VPN report) 2 times per day at specific hours. I have to use cronjob in a PC to connect to ASA through SSH (or Putty). However, I cannot connect to ASA without password and I don't know how I can manage it in order to connect to it securely with password (there is also a password to go to EXEC mode). Can you please help me?
Solved! Go to Solution.
06-26-2020 07:57 AM
You can setup an EEM script on the ASA to run the report and then email the results (or copy them to an ftp/tftp/smb target).
06-26-2020 07:57 AM
You can setup an EEM script on the ASA to run the report and then email the results (or copy them to an ftp/tftp/smb target).
06-26-2020 09:29 AM - edited 06-26-2020 10:00 AM
I appreciate your great response. I found it very interesting. However, there is a minor issue with the CLI command. I use "show vpn-sessiondb anyconnect filter p-ipversion v4 | redirect tftp://192.168.1.53" using rotate 100 as my desired command but no file is created in ftp location. I want to have different files with their corresponding timestamps. What should I check?
06-27-2020 04:38 AM
tftp typically cannot write a file that doesn't exist on the target system. Can you use ftp instead? Then have a script on the target system that moves the files from the target directory and renames them with a unique timestamp.
06-27-2020 09:16 AM
awesome! I could manage it successfully. Thanks Marvin!
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