• Support
  • Articles
  • Resources
  • Products
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

Dealing with " -- More -- " or Equivalent Strings.

Moderator: boris

14 postsPage 1 of 1

MC Slayer
Newbie

Posts:
4
Joined: Tue Jun 28, 2011 1:18 pm
by MC Slayer » Sat Jul 16, 2011 6:50 am
Hello all,

I'm trying to write a script for logging "show run" on a number of different routers. Is there a command to send a space when it displays " -- More -- " or any equivalent string? Or should I know what all the routers are going to display? Also, if this is not possible, can I just type a command on the router to make it display the full configuration without stopping?

Thank you very much.
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Sun Jul 17, 2011 12:08 pm
MC Slayer
Newbie

Posts:
4
Joined: Tue Jun 28, 2011 1:18 pm
by MC Slayer » Mon Jul 18, 2011 10:44 am
What I was looking for is that maybe there is some kind of command that waits for this pause and is embedded in the Macro Language. I was pretty sure there isn't I was just making sure. and the way you're doing it is the same way I am at the moment.

However for future reference you can send the command :

terminal length 0 ; for cisco routers
set length 0 ; for cisco switches.

to skip this pause and make it display the whole configuration.

Thanks anyways Trevor, you were really helpful :)
ccaceresuy6
Newbie

Posts:
5
Joined: Fri Jul 22, 2011 7:36 pm
by ccaceresuy6 » Fri Jul 22, 2011 11:16 pm
I would like to interact with you about this topic
aleksashka1987
Newbie

Posts:
7
Joined: Sun May 08, 2011 10:50 am
by aleksashka1987 » Fri Nov 04, 2011 12:41 pm
I have another question about dealing with " --More-- " string.
I have a default logging in TeraTerm and all my sessions are logged. And those " --More-- " are quite annoying, especially if I know, that PuTTY removes those " --More-- " automatically.

Is it possible to do the same on TeraTerm? It would be very nice :-), because often "terminal length 0" is not very convenient.
aleksashka1987
Newbie

Posts:
7
Joined: Sun May 08, 2011 10:50 am
by aleksashka1987 » Fri Nov 04, 2011 1:19 pm
crumpuppet
Newbie

Posts:
2
Joined: Wed Nov 30, 2011 12:22 pm
by crumpuppet » Wed Nov 30, 2011 1:16 pm
I encountered this recently, and found it to be easier to set terminal length to 0 before executing "show run". However, I am having trouble getting the output saved to a file.

I tried using recvln, but it only captures the last few lines shown on the screen. So then I tried using logopen and logclose which looked promising, but it only captures about 10KB of data and then cuts off. It does successfully write stuff to the output file, but it seems the buffer is too small. Whether this is LogMeTT or TeraTerm's buffer, I don't know.

The "show run" command runs successfully though, I can see it running through the settings, but it gets stuck about 3/4 through. It sits for a few seconds, eventually finishes and my macro completes cleanly. But when I look at the output file, it is truncated where the "show run" command got stuck.

Anyone have any idea why this is?
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1597
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed Nov 30, 2011 1:55 pm
Thanks.
Best regards,
Boris
crumpuppet
Newbie

Posts:
2
Joined: Wed Nov 30, 2011 12:22 pm
by crumpuppet » Wed Nov 30, 2011 2:06 pm
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1597
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed Nov 30, 2011 3:53 pm
Sorry, I cannot comment on that. I rarely use log files. Hopefully somebody from Tera Term developers or other users will reply.
Thanks.
Best regards,
Boris
aleksashka1987
Newbie

Posts:
7
Joined: Sun May 08, 2011 10:50 am
by aleksashka1987 » Fri Dec 02, 2011 3:48 am
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1597
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Fri Dec 02, 2011 8:21 am
Thanks.
Best regards,
Boris
aleksashka1987
Newbie

Posts:
7
Joined: Sun May 08, 2011 10:50 am
by aleksashka1987 » Fri Dec 02, 2011 8:57 am
Mokan
Newbie

Posts:
7
Joined: Mon Jun 19, 2017 2:14 am
by Mokan » Mon Jun 19, 2017 3:15 am
Display posts from previous:
Sort by:

14 postsPage 1 of 1

Users browsing this forum: No registered users
cron