I may end up using this ssh technique instead. I'm sure your steps sound easy to someone who has done this a few times before but I may need a little hand holding.
What would I do? I'd ask the tech guys to install an ssh server on windows and log in to there with proper keys to call dnscmd directly over this session.
ssh Administrator@Servername "dnscmd record add blah"
1 - Sometimes if I can give an example of a Windows ssh server that may help. And it may help me because they we'd both be using a known good combination.
2 - How to configure and consume "proper keys".
3 - How to best initiate a session from IBM i.
As for #3 I played with
QSH CMD('ssh rob@gdl57 dir >/test.txt')
And got connection refused. Which makes sense because my laptop doesn't have a ssh server running on it. So some example uses to make sure that I
A - Pass the right connection stuff
B - Generate an acceptable return code and/or log file to check
And whatever else you recommend for production use.
As a demonstration of my trying to figure this out on my own I have this link too
The more I can tell the Windows admin "do this" the less internet searching they have to do and get exposed to all the FUD scaring them out of letting the Windows server serve up remote commands.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.