Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-27-2018, 12:48 PM
startek startek is offline
Registered User
 
Join Date: Jul 2018
Posts: 9
Add new log to the end of old log file

I disconnected and exit from SecureCRT. Session log saved in log file. When I will start new session, is it possible configure SecureCRT log settings that it adds a new log to the end of the old, NOT overwrite it?
Reply With Quote
  #2  
Old 07-27-2018, 01:00 PM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 501
Hi startek,

When configuring logging in the Session Options > Log File category you can choose from two options, Overwrite file and Append to file. It sounds like you would want to Append to file.

Does making this selection provide the desired behavior?
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 07-27-2018, 01:37 PM
startek startek is offline
Registered User
 
Join Date: Jul 2018
Posts: 9
Hi,

does this option only available when manually connecting to host via Session Manager and mark checkbox 'Append to file' (Session Manager > Properties > Session Options)? Is this also configurable when connection to host use script?
Reply With Quote
  #4  
Old 07-27-2018, 01:47 PM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 501
startek,

This option would be configured differently depending on how you are connecting to a remote device. When you say "connection to host use script" what does that look like? Are you connecting ad-hoc directly to a hostname/IP or are you connecting to a saved session using /S <session name>?
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 07-27-2018, 02:32 PM
startek startek is offline
Registered User
 
Join Date: Jul 2018
Posts: 9
Connection directly to IP:

crt.Session.Connect("/TELNET IP-address 23")
Reply With Quote
  #6  
Old 07-29-2018, 09:46 AM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 501
startek,

When using ad-hoc connection SecureCRT will use the Default Session as a template. You can modify this "template" by choosing Edit Default Session from the main Options drop down menu. If you are primarily using Telnet you will want to first make sure you select the Telnet protocol in the Connection category then modify the logging options in the Log File category.

Depending on how you would like to save your log files you may want to use log file naming substitution parameters. This would allow you to do things like save log files for each hostname separately, save logs on a daily basis etc. For more information please see this video we have put together.

Does this help you get the behavior you're looking for?
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 07-29-2018, 01:40 PM
startek startek is offline
Registered User
 
Join Date: Jul 2018
Posts: 9
Got it, thank you.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:13 PM.