what is the general convention of a cisco CLI error messages.

Unanswered Question
Jul 5th, 2010
User Badges:

Hi,


I could not figure out if there is a general convention (format) of  cisco cli command error messages, apart from the "Invalid input", "Ambiguous command" and other syntax error messages.


Is there a way to find out if there exists a general notation for it? If a config command on a router is successful it gets back to the router prompt without any message. In case of an error (not syntax, but the logic of the command), what does the router throw as a response? Does it have a format like "%ERROR" or "%INFO".


How do I capture the various responses of the cli commands?  how do i determine the success/failure of a command. Basically, this is required to develop a script to handle the router's responses.


Can someone please enlighten me?


Thanks.

Jessica

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Ganesh Hariharan Mon, 07/05/2010 - 00:34
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

Hi,


I could not figure out if there is a general convention (format) of cisco cli command error messages, apart from the "Invalid input", "Ambiguous command" and other syntax error messages.


Is there a way to find out if there exists a general notation for it? If a config command on a router is successful it gets back to the router prompt without any message. In case of an error (not syntax, but the logic of the command), what does the router throw as a response? Does it have a format like "%ERROR" or "%INFO".


How do I capture the various responses of the cli commands?  how do i determine the success/failure of a command. Basically, this is required to develop a script to handle the router's responses.


Can someone please enlighten me?


Thanks.

Jessica


Jessica,


Check out the below link on cisco ios tutorial


http://www.cisco.com/warp/cpropub/45/tutorial.htm


Hope to Help !!


Ganesh.H

jessicaborelly Mon, 07/05/2010 - 03:20
User Badges:

Hi Ganesh,


Thanks a lot for your reply. Yes i have checked that tutorial already. It talks about only the command syntax error messages. I want to know if for any reason(not the syntax error) the command fails to run, then will the device throw any kind of response on the CLI?


Meaning, will there be any generic format of such messages so that in my script i can grep for a particular pattern and say if it failed or succeeded, right after the execution of the command?

Actions

This Discussion