The following is an example for changing a prompt.
As an example, consider a network where the prompt has been changed to LABNET on some of the Cisco Routers. Shown below is the default Device Class Prompts file for Cisco IOS Routers.
<Prompts Version="1.0"> <CiscoIOSRouter> <EnablePromptState> <ID>1001</ID> <Expr><![CDATA[[-A-Za-z0-9_!@$%^&+|~]+# *$]]></Expr> </EnablePromptState> <DisablePromptState> <ID>1002</ID> <Expr><![CDATA[> *$]]></Expr> </DisablePromptState> <ConfigPromptState> <ID>1003</ID> <Expr><![CDATA[[\(].*[\)] *# *$]]></Expr> </ConfigPromptState> <LoginPromptState> <ID>1004</ID> <Expr><![CDATA[ogin:|sername ?:|[Ii][Dd]:]]></Expr> </LoginPromptState> <PasswordPromptState> <ID>1005</ID> <ciscoInvalidInputState> <ID>10003</ID> <Expr><![CDATA[Invalid input|^%|[Dd]uplicate|Bad mask]]></Expr> </ciscoInvalidInputState> <ciscoBannerPromptState> <ID>10007</ID> <Expr><![CDATA[Enter TEXT message.]]></Expr> </ciscoBannerPromptState> <ciscoMenuPromptState> <ID>10010</ID> <Expr><![CDATA[User Interface Menu]]></Expr> </ciscoMenuPromptState> </CiscoIOSRouter> </Prompts>
To add LABNET as a valid prompt the <Expr> element of both the EnablePromptState and DisablePromptState elements in the file package/pkgxml/CiscoIOSRouter/CiscoIOSRouterPrompts.xml, (relative to the Network Configuration Manager installation directory) must be modified toinclude LABNET
The elements should be changed to the following:
<Expr><![CDATA[[-A-Za-z0-9_!@$%^&+|~]+# *$|LABNET]]></Expr>
and
<Expr><![CDATA[> *$|LABNET]]></Expr>