I am brand new to PuTTY. I am trying to automate retrieving ERRLOG data via
batch. FWIW, I installed “Simon Tatham Putty .76” on Windows 10 and am
using the Windows command line. Here’s where I’m at so far:
putty.exe -ssh user@SERVER -pw TheActualPassword
^ This brings up the terminal with the user successfully logged in:
Using username "user".
Last unsuccessful login: Tue Dec 26 11:26:13 EST 2023 on ssh from
111.15.171.117
Last login: Mon Mar 11 23:23:59 EDT 2024 on ssh from 111.15.171.117
$
I type in ERRLOG, press Enter, get:
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
60D73419 0305122424 I S vnicserver0 VNIC Client Login
<and several more lines>
$
I reviewed the documentation and discover command line options, such as -m,
which tells PuTTY to “read a remote command or script from a file”. I
created a test file named ErrlogCommands.txt, and there is one line:
This mailing list archive is Copyright 1997-2024 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
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.