nerdexam
Huawei

H12-891_V1.0 · Question #173

The engineer wanted to log in to Huawei equipment remotely. When writing the SSH Python script, he used the Paramiko library to write the following code: cli.ssh.invoke_shell()…

The correct answer is B. Cancel split-screen display. temporary restricts the scope of the screen-length 0 change to the current session only, rather than saving it to the device's configuration permanently - but the core purpose of screen-length 0 itself is to cancel split-screen (paged) display, which is option B. On Huawei…

SDN and Network Automation

Question

The engineer wanted to log in to Huawei equipment remotely. When writing the SSH Python script, he used the Paramiko library to write the following code: cli.ssh.invoke_shell() cli.send('screen-length 0 temporary\n') where screen-length 0. Which of the following is the function of temporary?

Options

  • ACancel automatic line wrapping
  • BCancel split-screen display
  • CPerform split-screen display
  • DPerform automatic line wrapping

How the community answered

(28 responses)
  • A
    14% (4)
  • B
    75% (21)
  • C
    4% (1)
  • D
    7% (2)

Explanation

temporary restricts the scope of the screen-length 0 change to the current session only, rather than saving it to the device's configuration permanently - but the core purpose of screen-length 0 itself is to cancel split-screen (paged) display, which is option B. On Huawei devices, split-screen mode pauses output after each screen-full and waits for a keypress, which would cause a Python/Paramiko script to hang indefinitely waiting for input that never comes. Setting the screen length to 0 tells the device to send all output continuously without pagination, making automated scraping reliable.

Why the distractors are wrong:

  • A (Cancel line wrapping) - line wrapping is controlled by a separate command (screen-width), not screen-length.
  • C (Perform split-screen display) - this is the exact opposite; screen-length 0 removes paging, it doesn't enable it.
  • D (Perform automatic line wrapping) - again a different feature entirely, and 0 typically means "disable," not "perform."

Memory tip: Think of screen-length 0 as "zero screens of pause" - the device will never stop and wait for you to press a key, which is exactly what you need when a script is reading the output automatically. The word temporary just reminds you it won't survive a reboot or re-login.

Topics

#Paramiko#SSH scripting#screen-length#Python automation

Community Discussion

No community discussion yet for this question.

Full H12-891_V1.0 Practice