× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Richard,

errlog is a PuTTY command and it has no parameters to identify a file, or
location of a file, that the errlog command should process. I presume that
every server keeps a log "hidden" (not in an accessible file?) that only
the errlog command can access, but that is just a wild guess on my part.

- Dan

On Tue, Mar 12, 2024 at 12:29 PM Richard Schoen <richard@xxxxxxxxxxxxxxxxx>
wrote:

putty.exe -ssh user@systemhost -pw password1 -m c:\putty\sshcommand1.txt
-sessionlog c:\temp\puttylog.txt

In sshcommand1.txt put something like to dump data:
cat /dirname/errlog.txt


Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------

message: 1
date: Tue, 12 Mar 2024 01:06:22 -0400
from: Dan <dan27649@xxxxxxxxx>
subject: [PCTECH] Automate PuTTY via batch and execute the ERRLOG
command

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

$

--
This is the PC Technical Discussion for IBM i (AS/400 and iSeries) Users
(PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/pctech.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.