WireDawg007
Technical User
I am trying to remove MANY erroneous ANIs from Table ANISCUSP in several DMS-500 switches. Each switch would have different arguments as to which ANIs are valid. For example, one switch may need to have all ANIs deleted that do not have an NPA of 205 or 256. I do not know how to have ProComm/ASPECT respond to the switches response to a LIST command, nor do I know how to "wildcard" the argument in ASPECT.
Below is an example of switch entry and response.
>TABLE ANISCUSP;FORMAT PACK;VER OFF
TABLE: ANISCUSP
<line length>: 76 columns can be output per line.
<pack mode>: Pack mode is ON.
<indent column>: Indented lines will begin in column 1.
<first column>: The first column of output is column 1.
VERIFY OFF
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2002311111 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>DEL
TUPLE TO BE DELETED:
2002311111 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
TUPLE DELETED
WRITTEN TO JOURNAL FILE AS JF NUMBER 7250
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2013332810 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>DEL
TUPLE TO BE DELETED:
2013332810 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
TUPLE DELETED
WRITTEN TO JOURNAL FILE AS JF NUMBER 7255
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2014336527 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>
What I would like to accomplish is if the 10-digit ANI does not begin with 205 or 256 then issue the command DEL followed by LIST. If the ANI does begin with 205 or 256 then issue the command DOW and continue analyzing the ANI until the switch responds with BOTTOM.
Any help is greatly appreciated.
Below is an example of switch entry and response.
>TABLE ANISCUSP;FORMAT PACK;VER OFF
TABLE: ANISCUSP
<line length>: 76 columns can be output per line.
<pack mode>: Pack mode is ON.
<indent column>: Indented lines will begin in column 1.
<first column>: The first column of output is column 1.
VERIFY OFF
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2002311111 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>DEL
TUPLE TO BE DELETED:
2002311111 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
TUPLE DELETED
WRITTEN TO JOURNAL FILE AS JF NUMBER 7250
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2013332810 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>DEL
TUPLE TO BE DELETED:
2013332810 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
TUPLE DELETED
WRITTEN TO JOURNAL FILE AS JF NUMBER 7255
>LIST
TOP
KEY ANITYPE REFAREA
-------------------
2014336527 SUB AL 0 N 3_1KHZ 54 2 N 0 0 $ 46 ALWAYS (OPCHOICE 1) $
>
What I would like to accomplish is if the 10-digit ANI does not begin with 205 or 256 then issue the command DEL followed by LIST. If the ANI does begin with 205 or 256 then issue the command DOW and continue analyzing the ANI until the switch responds with BOTTOM.
Any help is greatly appreciated.