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 01-13-2020, 01:06 PM
glitch1146 glitch1146 is offline
Registered User
 
Join Date: Jan 2020
Posts: 1
getting hostname and ip addr from session

I have a ton of hosts in my session and i would like to create a host file from the info in my session.


i know i can export the session but it comes out in xml format with lots of info per session.

is there a know script that i can use to get this done.


thanks in adv.


yours truely,

glItcHy
Reply With Quote
  #2  
Old 01-13-2020, 01:24 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 952
Quote:
Originally Posted by glitch1146 View Post
I have a ton of hosts in my session and i would like to create a host file from the info in my session.

is there a know script that i can use to get this done.
It looks like you may be wanting to take pieces of information from saved sessions located within SecureCRT's session manager and export elements of this info into a file that you can use as a "hosts" file.

If I'm misunderstanding your original goal, please let me know.

Which platform are you running SecureCRT on... Windows? Mac? Linux?

What is the "hostname" that you'd want to map each session's IP address to -- would it be the session name itself?

The script example, "Iterate Over Saved Sessions" found on our scripting examples "sticky" would be the place to start, but as of yet the example is in VBScript code, not python, so it won't work for you if you're on a non-Windows platform with your SecureCRT installation.

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support

Last edited by jdev; 01-13-2020 at 01:34 PM.
Reply With Quote
Reply

Tags
hostname , ip address , parsing


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 09:35 PM.