You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping for a way to interact with the linux shell of the "flexvnf" device type. My hope was to use the "linux" device driver but that isn't working when I need sudo privileges. The issue I'm seeing with the linux driver is since it's not ending in # it's not finding the prompt.
Another method that I considered, and probably my preferred, is to use the flexvnf device type but have a class that would put you into the linux shell with the proper prompt identification for normal vs privileged access. Below is how it looks on this particular device (again, nothing customized).
I do have a flexvnf that is older and the bash prompt has changed since then from the vendor. This is why the linux driver isn't working on the above device. Here is the old device.
admin@flexvnf:~$ sudo -s
[sudo] password for admin:
root@flexvnf:~#
For now I think the proper approach is to just use send_command_timing and avoid config_mode()/enable() to gain sudo on the linux shell.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm hoping for a way to interact with the linux shell of the "flexvnf" device type. My hope was to use the "linux" device driver but that isn't working when I need sudo privileges. The issue I'm seeing with the linux driver is since it's not ending in # it's not finding the prompt.
(these prompts are not customized)
Another method that I considered, and probably my preferred, is to use the flexvnf device type but have a class that would put you into the linux shell with the proper prompt identification for normal vs privileged access. Below is how it looks on this particular device (again, nothing customized).
I do have a flexvnf that is older and the bash prompt has changed since then from the vendor. This is why the linux driver isn't working on the above device. Here is the old device.
For now I think the proper approach is to just use send_command_timing and avoid config_mode()/enable() to gain sudo on the linux shell.
Beta Was this translation helpful? Give feedback.
All reactions