Highlighted
Honored Contributor.
Honored Contributor.
417 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
Honored Contributor.
Honored Contributor.

no more, alone as a command does not work.

Do you think i shoul use | ?
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Command | no more : not working
error message; Parameter not found
0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

the doc says you need to be in the environment context to set it 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

But it does not set how to be in that context ?

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

try "/no more" - in one video they advise that the / allows for contextless updates

If that doesnt work try either "/environment no more"
or "environment no more"
or "environment" return "no more"

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

/no more
command not found
0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

I added a couple of other command variants to try as well when you get a chance

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

No one works!

weird equipments !
0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

this is the only reference I can find to the command.

https://www.alcatelunleashed.com/viewtopic.php?t=21746

you could try to do something hacky like send a bunch of carriage returns but sorting this "no more" thing out is the right way to do it as far as the docs go. its not really a limitation of OO but a "feature" of the target device

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Ok how to send a carriage return in OO send expression?
0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

because you're in another device interface this stuff likely won't work but
send echo "\n\n\n\n" | yourCommand

will "hit enter" 4 times

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

I want to cryyyyyyy.
I have something that works but very very heavy :
send command
expectEndsWith --More--
send "\n"
expectEndsWith --More--

after send "\n" there is only one new line, impossible!

So i have to iterate 5000 times, send "\n" 5000 times to get my output, impossible!
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.