Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script assistance to call list of DNs for action

Status
Not open for further replies.

telecomladyj

Technical User
May 21, 2014
6
US
Hi all,
New to the forum and I'm sorry if this is a re-post but I didn't turn up anything searching that really fits what I need. Checked aspectscriptingDOTcom as well but no dice.
Please see attached the script I recorded and what I'm basically wanting is to have a script call a list of DNs to perform this same action against until all in the list have been checked.
An output file for the results of the queries would be nice, but not critical (but very nice!)
[thumbsup2]
Thanks so much for your help-- I like what I'm seeing on this forum so far just from lurking.
 
I think there's a Nortel forum here you might try for an existing script. What you would need to do with your example is use the fopen command to open your text file and use fgets inside a while not feof loop to read each line from the file until the file has been completely read. Inside that while loop would be all of the commands that you would need to send for each entry in the text file, as well as any necessary commands to get the system in the right state to accept the next line from the text file. I'm pretty sure there are one or two sample files on my site that have the code and error checking to read from a text file.

For the output, you could use the capture ON command, as well as any necessary set capture statements to set the name or location of the capture file.

 
Hi knob, thanks for replying.
Part of my problem is I don't know Aspect scripting or syntax that well at all.
In the old days I worked with an Aspect guru who would put together scripts for me and showed me some ways to alter existing scripts to do different things I needed.
Not at the company anymore and don't have those resources. As Aspect uses similar language to C (i think?), I have gotten a book and am starting to learn C programming.
For now I'm stuck needing this script and really wishing I understood Aspect commands, syntax, etc to do what I need.
I did check the Nortel forum and didn't really find anything I can use for what I need to do in DMS-10 like ovly odq and dn list against a list of DNs, triggering DNs, add/remove features, etc but I can look again.
Certainly would rather learn how to do this myself than beg others to spend their time. I do thank you very much for yours, and for the info.
I'll keep looking. :)
 
Oh yeah, checking the samples on your site again in case I missed it. Hard to research and write new stuff at work when my normal day is six different jobs. Translations work is just one of the many tasks so very possibly I missed finding what I need there. Thanks again- I do appreciate it!!
 
btw, I was able to find what looks like a decent price for "Procomm Plus: Aspect Script Language" published in 1991, author Intuitive Communications.
Is this a good reference to understand what I need to know about the language so I can dissect scripts at least to know what command does what? Sorry to keep adding but thanks again for your help.
No lack of ability/desire to learn here- just a lack of data for now. :)
 
Anything published in 1991 is going to be too early for the version of Procomm you have (4.8 most likely). My guess is this is the ASPECT manual from a DOS version of Procomm or maybe the first Windows version. Latter versions of Procomm didn't have a printed manual, but the help file that comes with Procomm should have the information that you need to understand how the commands work, numerous sample scripts, etc.

 
Try using this code from 'knob'. It should work from reading the numbers to be dialed from a .TXT file.

proc main
string sNum

if fopen 0 "data.txt" READ TEXT
while not feof 0
fgets 0 sNum
if not nullstr sNum
dial DATA sNum
while $DIALING
yield
endwhile
if $CARRIER
;perform operations here once connected...
endif
endif
endwhile
endif
fclose 0
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top