According to the documentation, it only clears the DNS cache, not the ARP table.

The little CLP that Larry posted it what I had in mind.

Jim Oberholtzer
Agile Technology Architects



On Feb 15, 2022, at 6:44 AM, Rob Berendt <rob@xxxxxxxxx> wrote:

Does running CHGTCPDMN also clear this? I thought I heard it does.
CHGTCPDMN aka CFGTCP, 12. Change TCP/IP domain information

https://www.ibm.com/support/pages/dns-query-returning-old-ip-address
https://wiki.midrange.com/index.php/Change_IP_Address#Flushing_DNS_Cache


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 7310 Innovation Blvd, Suite 104
Ft. Wayne, IN 46818
Ship to: 7310 Innovation Blvd, Dock 9C
Ft. Wayne, IN 46818
http://www.dekko.com

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Larry "DrFranken" Bolhuis
Sent: Monday, February 14, 2022 8:49 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>; Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
Subject: Re: Clear ARP cache

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


Pgm PARM(&LINE)
/* CRTBNDCL PGM(your-lib/CLRARP) +
SRCFILE(your-lib/QCLSRC) +
SRCMBR(CLRARP) */
/* be sure that the PRC retains the upper/lower case */
DCL VAR(&LINE) TYPE(*CHAR) LEN(10)
CALLPRC PRC('QtocRmvARPTblE') PARM(&LINE 0 '*ALL ' +
X'00000000')
end:
endpgm


On 2/14/2022 8:30 PM, Jim Oberholtzer wrote:
Years ago I came across a program to clear the ARP cache on IBM i. Try as
I might, I can't even find an article on it. The reason we have to clear
the ARP is after one of 5 partitions switch from prod to HA, the other four
partitions ignore DNS and still try to communicate with the prod IP
address, which due the switch has changed. I cleared the ARP cache using
the old iNavigator, but since iNavigator will be going away, and we would
like to automate the process, I need a program.

Anyone have this little gem?

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects

--
IBM Champion for Power Systems

www.iInTheCloud.com - Commercial IBM i and Power System Hosting
www.iDevCloud.com - Personal IBM i Hosting
www.Frankeni.com - IBM i and Power Systems Consulting.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

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.