Highlighted
Honored Contributor.
Honored Contributor.
415 views

SSH Command with more option

Hi,

As everytime, to execute SSH commands on a remote equipements we use  /Base /Library/Operations/Remote Command Execution/SSH/v1.0/SSH Shell operation, but this time it is different;

Our colleagues in other deparment want to automate the execution of a command wich is pretty different:

This command does not show the whole output, instead, it shows some lines and than the option More is available, so if we want to show more output we have to tap Enter Enter ...... .

The problem is, how to do that with OO?

How to send Enter character? And How many times ? Is it a good idea to send 10000000 times ?

Regards;

0 Likes
23 Replies
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

@Adel_HPOO_1020 

What device are you connecting to that has this limitation? i.e. Cisco router? 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

I do not know exactly what type of equipement it is, but i think that yes it is something like that.

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

This is device-specific and a fun feature of Cisco

In the script: 

Type "terminal length 0" in privileged mode to set your terminal to display without any breaks

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

After introducing terminal length 0 I get:


CFPU-0@equipement

Command not found
terminal length 0
^

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

What device (make / model) do you have 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

No information about that.

All what we have are the IP, account and commands to ewecute.

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

if its a Cisco device run 'show diag' and it should tell you

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Not recognized parameters, i think it is not a Cisco equipement.

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

can you share a couple of commands  - maybe we can reverse the device type from it. Unless theres another group that can just tell you what it is. 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Unortunately no since commands are given from the responsible team .

But i found that this equipement is a Nokia one, and also found this page:

https://documentation.nokia.com/html/0_add-h-f/93-0070-10-01/7750_SR_OS_System_Basics_Guide/Root-CLI.html#3128009

But when introducing the Terminal command it is not recognized, i think i have to be in environement mode, but how to do this ? 

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

try "no more"

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.