- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Scripting via SSH
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2009 12:40 AM
тАО03-25-2009 12:40 AM
We'd like to manage our network gear (D-link' DFL) from the VMS host. The only acceptable way we see is the interactive SSH session (issue a bunch of commands and analyze the results). But how can it be accoplished from the VMS? Plain SSH command (HP TCPIP 5.4) takes only one command to run, so unusefull. C-Kermit would be the ideal candidate for the job, but it doesn't support SSH in VMS version. What else?
"-S" switch of the SSH command looks promising but the documentation is too brief about it.
"Does not request a session channel. This type of session does not disconnect automatically.". But how can it be used?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 03:44 AM
тАО03-26-2009 03:44 AM
Re: Scripting via SSH
- make an SSH-connection to the device
- issue a bunch of commands in the same connection
- get the results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 05:30 AM
тАО03-26-2009 05:30 AM
Re: Scripting via SSH
Brute-force alternative: cURL?
The ssh manual points to the potential need for:
$ SSH -o "batchmode yes"
There are also open source versions of OpenSSH around that could be used for reference or for an alternative implementation.
And if you have an HP support contract, consider using it.
And if the OpenVMS box doesn't work sufficiently here for your needs, consider an alternate host operating system and box to serve as the network administration and management gateway. The minicom bits on an embedded box might be interesting and useful here and as a console server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2009 08:28 AM
тАО03-26-2009 08:28 AM
Solutionimport paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('rhost', username='usr', password='pwd')
stdin, stdout, stderr = ssh.exec_command("uptime")
print stdout.readlines()
ssh.close()
give
[' 17:23:24 up 32 min, 1 user, load average: 0.14, 0.33, 0.35\n']
You can find more examples on
http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/
Jean-Francois
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 05:59 AM
тАО03-27-2009 05:59 AM
Re: Scripting via SSH
DFL-1600
> Brute-force alternative: cURL?
cURL to DFL' web management interface? It's the way I'm trying to bypass as it looks too complicated (java-script reverse engineering) and potentially unstable due to firmware updates.
> The ssh manual points to the potential need for:
> SSH -o "batchmode yes"
yes, I tried it. It works correctly from the DCL command file but executes exactly one command in one connection. I need to issue bunch of commands in one connection, otherwise DFL rollback the change[s].
> There are also open source versions of OpenSSH around that could be used for reference or for an alternative implementation.
> And if the OpenVMS box doesn't work sufficiently here for your needs, consider an alternate host operating system
Yes, I consider these ways as a last chance. I'm still trying to keep things tight as far as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 06:05 AM
тАО03-27-2009 06:05 AM
Re: Scripting via SSH
Jean-Fran├Г┬зois, thank you for reminder. I thought about Perl Net:SSH2 module (unfotunately it requires libssh2 library which should be found or ported myself) but definitly forgot about Python. It's worth a try. Does it require some other external libraries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2009 12:02 PM
тАО03-27-2009 12:02 PM
Re: Scripting via SSH
Installation of Python required 2 LD images.
Installation documentation:
http://www.vmspython.org/DownloadAndInstallationPython
Jean-Francois