Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh.HPE3PARSSHClient shownode incomplete output #90

Open
lsefcik opened this issue Aug 25, 2022 · 0 comments
Open

ssh.HPE3PARSSHClient shownode incomplete output #90

lsefcik opened this issue Aug 25, 2022 · 0 comments

Comments

@lsefcik
Copy link

lsefcik commented Aug 25, 2022

We are using ssh.HPE3PARSSHClient for monitoring scripts.
For 2-node systems using command shownode we are experiencing incomplete output. Node 0 and also the header is missing. This is not happening all the time, about 6 times per day.

Complete output:

,​,​,​,​,​,​,​Control,​Data,​Cache
Node,​----Name----,​-State-,​Master,​InCluster,​-Service_LED,​---LED---,​Mem(MB),​Mem(MB),​Available(%)
0,​CZ29190K73-0,​OK,​Yes,​Yes,​Off,​GreenBlnk,​16384,​16384,​100
1,​CZ29190K73-1,​OK,​No,​Yes,​Off,​GreenBlnk,​16384,​16384,​100

Incomplete output:

1,​CZ29190K73-1,​OK,​No,​Yes,​Off,​GreenBlnk,​16384,​16384,​100

We have proven there is no problem on the system. In the same time we executed the command in a different way, the output was always complete. The problem does not occur for 4-node systems.

Function getting the data:

def get_data_ssh(array, cmd_list, severity_rc):

    cl = ssh.HPE3PARSSHClient(array, username, password, conn_timeout=timeout_ssh)

    try:
        cl.open()

    except paramiko.ssh_exception.SSHException:
        print('CRITICAL: Login to {} via ssh failed '.format(array))
        print(os.linesep + 'Process runtime: ' + str(time.time() - start_time) + ' seconds')
        exit(severity_rc)

    data = cl.run(cmd_list)
    cl.close()
    return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant