I am scripting some command line operations for collecting and parsing specific network metrics from a Palo Alto 5060 firewall. I am using Plink and Windows batch scripting.
@echo off
"C:\path\to\plink.exe" -ssh user@1.2.3.4 -pw password < "C:\path\to\commands.txt >> "C:\path\to\output.txt"
The content of the commands.txt
is simple at the moment.
show interface ethernet1/1
I cannot get this to work. My output.txt
has the following results:
Last login: Tue Nov 24 15:43:13 2015 from localhost
show interface ethernet1/1Welcome user.
user@pa5060> show
[Kuser@pa5060> show interface
[Kuser@pa5060> show interface ethernet1/1
This isn't the proper output and the entry of the commands confuses me. Has anyone seen something like this? There is a login banner on this device if that is relevant.