Unable to pull config for Cisco Devices and error observed is “Could not find unique character in banner”.
Log Snippet from commmgr logs:
Sep 20 15:42:00 1451202304/pull(809476)#4: RESULT: Pulling configuration file 'startup' for IDX 5395 with mechanism SSH and SNMPV2
Sep 20 15:42:00 1451202304/pull(809476)#4: DASL: Pulling via Term
Sep 20 15:42:00 1451202304/pull(809476)#4: DASL: getSession (mech=SSH, state=EnableMode (5003), sessionType=EnableSessionMigration, errorMethod=throwError)
Sep 20 15:42:00 1451202304/pull(809476)#4: DASL: Device 5395 Session Statistics
Sep 20 15:42:00 1451202304/pull(809476)#4: DASL: Pulling Startup Configuration
Sep 20 15:42:03 1451202304/pull(809476)#1: State match:[1001][01;34m[^[^\s#]+# *$][00m 254~~!~~!~~!~~!~~!~~!~~end~~~~[01;34m[HOSTNAME#][00m
Sep 20 15:42:06 1451202304/pull(809476)#4: DASL: Got enable prompt after pull
Sep 20 15:42:06 1451202304/pull(809476)#4: RESULT: PULL via Term took 6 seconds
Sep 20 15:42:06 1451202304/pull(809476)#3: ERROR: Could not find unique character for use in banner
Sep 20 15:42:06 1451202304/pull(809476)#3: ++++++++++++++++++++
Sep 20 15:42:06 1451202304/pull(809476)#3: ...cisco/stdfuncs.inc#819: ERROR: Could not find unique character for use in banner
Sep 20 15:42:06 1451202304/pull(809476)#3: Variables:
Sep 20 15:42:06 1451202304/pull(809476)#3: bannerChars="|/\$%&*-+<>?XYZ_!@{},.""
NCM - 10.1.x
Device configuration is having all special characters mentioned in bannerChars of fixBannerChars function available in stdfuncs.inc file located at $VOYENCE_HOME/package/cisco.
Add "`" in below workaround as "`" is not available in device configuration.
Any special character which is not available in device can be added to stdfuncs.inc file. Please note change is global hence it is applicable for all Cisco devices.
var bannerChars="|\/\\$%&*-+<>?XYZ_!@{},.\"";
var bannerChars="|\/\\$%&*-+<>`?XYZ_!@{},.\"";
Users will not be able to pull config for device whose configuration has special character mentioned in fixBannerChars function.