Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Absent Member.
Absent Member.
426 views

HPNA script failing when trying to delete a line from running config in Cisco Router

Hi I would like to delete following from the running config in Cisco Router 

username abcd priv 15 password cisco

Using <no username> in config mode generates another line "The operation will remove all related config with the same name. Do you want to continue ? [confirm]  and that requires a RETURN key. 

When I try to do via Ciscoworks using following script its failing

no username

/r

 

 its failing because after <no username> ciscoworks failed to send "RETURN" key which is required to excute the full command.  Attached logs appear in the session log. Please suggest if you know the solution.

 

 

0 Likes
1 Reply
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

You can try

 

no username\n\n

 

See if it works

Marius Herculea
HP SW Technical Consultant

Cloud and Automation Professional Services

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.