I am trying to use the Perl Scripting Toolkit available from Cisco :
And the documentation: http://www.cisco.com/en/US/docs/ios_xr_sw/iosxr_r4.1/xml/programming/guide/xl41petk.html
The purpose is to use the tar file with all the XML Schemas implemented in 4.2.1 on ASR9k:
But, when I am trying to run the example scripts, I am getting :
perl show_ip_interfaces.pl -host <hostname>-pe2 -user <username> -interactive
Error: Failed to enter XML mode.
Does anyone else has encountered this before ? How can I bypass this ?
I've not used this toolkit, but I believe it uses the same XML agent that NETCONF uses. You should make sure you have the following configured:
netconf agent tty