-
Notifications
You must be signed in to change notification settings - Fork 932
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
oneos.rb issue #3358
Comments
|
here is the output of test2.rb (the simple script): ruby test2.rbPTY request: true |
I also tried the script device2yaml.rb (once upgraded Oxidized to latest release) but I don't get any output on the console and on the file. cat cmdsets/oneosshow version
|
Hi,
I'm experiencing some problems in retrieving the output of some simple commands from OneAccess devices.
Here is the manual ssh experience:
Here is the simple and adjusted oneos.rb model with the only purpose of supporting show version command.
With this model here is the log (everything is at debug level with additional debug added in ssh.rb):
My understanding is the following:
After sending "show version\r", the device only returns the echo of what is typed, i.e., "show version".
The actual output of the command (e.g., "Software version : ...") never appears, and the next prompt doesn't return.
The session remains stuck waiting for the />/ regex, eventually timing out.
In other words, the device ignores or doesn't actually execute the show version command. It either holds it in the buffer or echoes it but does not process it.
This situation is typical of some devices that require a different end-of-line sequence (e.g., \r\n) or need an additional "Enter" to accept the command.
I tried different end-of-line sequence, even repeated, but without any luck.
I wrote a simple script to get the same output and it works:
Can you please advise?
Thanks+BR,
Roberto
The text was updated successfully, but these errors were encountered: