CPM - CISCO Plugin Error - CACPM243W Failed to read from third party log file. Error: invalid log line format.
Symptom
When attempting to rotate passwords on CISCO devices, instances can occur where CPM plugin successfully rotates password on the target device, however the action registers as failed within CyberArk. Error reported in the PVWA can display as "CACPM243W Failed to read from third party log file. Error: invalid log line format." However, debug logs will show successful connection and execution of change/reconcile steps until the "CheckCommit" state, which fails due to "Did not find any matching prompt for 'Building configuration…"
Example excerpt of debug logs showing the failing state…
commit
*****************************************************************
Sending: copy running-config startup-config\r
Trying to match the following prompts:
1.DestFile: 'Destination filename \[startup-config\]\?'
Received: copyrunning-configstartup-configDestination filename [startup-config]?
'DestFile' is matched
Expect: set expect_out(0,string) "Destination filename [startup-config]?"
*****************************************************************
CheckCommit
*****************************************************************
Sending: startup-config\r
Trying to match the following prompts:
1.CommitOK: '\[OK\]'
Got timeout. Received: Building configuration...
a8: Did not find any matching prompt for 'Building configuration...
'
at bz.ak(IList`1 A_0)
at bz.b(IList`1 A_0)
at bz.aj(IList`1 A_0)
at c.h(bv A_0, t A_1)
at e.h(bv A_0, t A_1)
at c.c(bv A_0)
at c.a(bv A_0, dh A_1)
at c.a(t A_0, bv A_1)
at c.c(bv A_0)
at c.d()
Finish plugin execution
Result: FAILURE
Did not find any matching prompt for 'Building configuration...
' RC: -1
Environment
Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
Cause
After the plugin sends "startup-config" the target returns "Building configuration…" during its process of parsing the structure of the configuration before displaying it. This is expected behavior for Cisco devices, however, depending on the length of time "Building configuration…" is displayed, it can result in a prompt timeout of the plugin.
Resolution
Test outside of Idira from the CPM server by using putty to connect to the target using the account (or reconcile account) and its vaulted password.
Once successfully connected, send the command "startup-config" and observe the amount of time "Building configuration…" is displayed before the next message is displayed.
If this is close to or greater than 10 seconds, the platform's process file would need to be adjusted to increase the PromptTimeout.
The specific file name for the process file in question can be found using the method outlined below...
- From the PVWA > Platform Management > select the platform in question > ... > Edit > Automatic Password Management > Additional Policy Settings...
- Within 'Additional Policy Settings' there will be a parameter called 'ProcessFilename' this will tell you the specific process file name (and file path on the CPM) that needs adjustment.
- Navigate to that process file on the CPM and edit the PromptTimeout and increase the timeout based on the amount of time it took to finish the "Building configuration..." phase. PromptTimeout can be found within the [Parameters] section of the identified 'ProcessFilename.'
- Once the PromptTimeout has been increased, save the changes and restart the Idira Password Manager service to ensure that the changes are picked up.
Upon completing this, test the change (or reconcile) again via CyberArk.