- Welcome, Guest. Please Login or Register
Telcom Pro's - Switch Technicians unite!  
   
  HomeHelpSearchLoginRegister Facebook Twitter    
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
DMS Scripting in Procomm
Read 4956 times

Bryan   Offline
Member
**
Posts: 32
I Love Telcom!!


   
     
 
DMS Scripting in Procomm
Sep 22nd, 2008 at 1:53pm
 
I was wondering if anyone uses Procomm for scripting in the DMS? 

I have created a script in the past for adding and deleting cross-connects in a Tellabs DACS (is there a DACS section?, just wondered if that would be in the same location as the muxes or would a dacs section be better to have?).

The question I have is in creating a script that will do something similar to my dacs script (it opens a window asking what your first x-connect would be).  I want to create something that I can use to remove trunks from trkmem and c7trkmem.  I see this script having 3 pop up windows to input information.

1) "Enter CLLI (all caps)"
2) "Enter DTC information (# #)
3) "Enter beginning member number."

the last pop up, is the problem.  Is there a way in Procomm to create a variable that will increment by 1 (+1)?

I'll attach my script for adding a x-connect so it is possible to see what I'm referring to, if anyone uses it.  Don't forget to compile before running.
Thanks!
Bryan
 
 
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register (0 KB | 2 )
 
IP Logged    
 
     

Paul   Offline
Site Administrator
Switch Technician

*****
Posts: 378
Southern Maine


   
     
 
Re: DMS Scripting in Procomm
Reply #1 - Sep 23rd, 2008 at 9:03am
 
Hey Joe,

Did you keep those scripts Stu made for ProComm?  I bet one of those would work, I'll have to look around and see if I can find them.
 
 
  Paul 256433011082857 3636741 ImmortalMonkey1965 immortalmonkey1
IP Logged    
 
     

DMSman   Offline
Established Member
Switch Technician

***
Posts: 95
Ontario, Canada


   
     
 
Re: DMS Scripting in Procomm
Reply #2 - Sep 23rd, 2008 at 9:32am
 
I've done a lot of scripts in procomm, we actually run a large automated provisioning system that uses Aspect to interface all the equipment, its over 3100 lines of code last I checked.

I'll put together a script for this and share it.

Has anyone ever played with the Visual Basic thats part of MS Word. Its under Tools/Macro/Visual Basic Editor.  Its good for creating simple scripts, this one works with Commnet but could be adapted for others.

Sub C7TRKMEM()

       
       'set DTC, start, range here!!!!!
       CLLI = "XXX2WEAS " '<-----set these before starting
       TRKNUMstart = 373  '<-----"                        "
       CICNUMstart = 373  '<-----"                        "
       TRKamount = 24    '<-----"                        "
       ACTION_ = "ADD " '<----DEL or ADD
       
   Do
   
       
       
   Selection.TypeText Text:="SEND " & ACTION_ & CLLI & TRKNUMstart & " " & CICNUMstart & "^M"
   Selection.TypeParagraph
   Selection.TypeText Text:="WAIT >"
   Selection.TypeParagraph
   Selection.TypeText Text:="SEND y^m"
   Selection.TypeParagraph
   Selection.TypeText Text:="WAIT >"
   Selection.TypeParagraph
   
    TRKamount = TRKamount - 1
       
    If TRKamount = 0 Then Exit Sub
   

   'increment values
   
   TRKNUMstart = TRKNUMstart + 1
   CICNUMstart = CICNUMstart + 1
     
   Loop
   
End Sub


This is the result (to run, in a new MS Word window, hit ALT-F8, select the macro then click run). I would save this as a text file, then run it as a Commnet script.

SEND ADD XXX2WEAS 373 373^M
WAIT >
SEND y^m
WAIT >
SEND ADD XXX2WEAS 374 374^M
WAIT >
SEND y^m
WAIT >
SEND ADD XXX2WEAS 375 375^M
WAIT >
SEND y^m
WAIT >
.........
 
 
 
IP Logged    
 
     

DMSman   Offline
Established Member
Switch Technician

***
Posts: 95
Ontario, Canada


   
     
 
Re: DMS Scripting in Procomm
Reply #3 - Sep 23rd, 2008 at 9:35am
 
Heres the one for TRKMEM if anyone wants it:

Sub TRKMEM()

      
       'set DTC, start, and end range here!!!!!
       CLLI = "XXX2WEAS " '<-----set these before starting
       DTC = "DTC 1 7 "    '<-----"                        "
       CHstart = 4         '<-----"                        "
       CHend = 24          '<-----"                        "
       TRKNUMstart = 373   '<-----"                        "
       ACTION_ = "ADD "  '<---ADD or DEL
      
      
    Do
   
      
      
    Selection.TypeText Text:="SEND " & ACTION_ & CLLI & TRKNUMstart & " 0 " & DTC & CHstart & "^M"
    Selection.TypeParagraph
    Selection.TypeText Text:="WAIT >"
    Selection.TypeParagraph
    Selection.TypeText Text:="SEND y^m"
    Selection.TypeParagraph
    Selection.TypeText Text:="WAIT >"
    Selection.TypeParagraph
   
   
      
     If CHstart = CHend Then Exit Sub
   
   
   

    'increment values
   
    CHstart = CHstart + 1
    TRKNUMstart = TRKNUMstart + 1
   
   
    Loop
   
End Sub
 
 
 
IP Logged    
 
     

DMSman   Offline
Established Member
Switch Technician

***
Posts: 95
Ontario, Canada


   
     
 
Re: DMS Scripting in Procomm
Reply #4 - Sep 24th, 2008 at 4:20pm
 
Heres the first version, seems like it works okay, sorry if there's some bugs, your welcome to customize or whatever, source is included.

If you have questions let me know.

Quick feature list:

The good
-Populates and Depopulates table TRKMEM and C7TRKMEM
-Single step with auto increment or full auto
-various command buttons

limits
-Currently TRKMEM can only do one DS1 at a time.

The bad
-no error checking, missing or wrong values will send the wrong text to the switch.
-The script assumes the switch excepted everything, you need to visually confirm that it did.

Error handling takes the most time so your on your own with that one Smiley

see the text in the .was file for a little more info
 
 
« Last Edit: Sep 25th, 2008 at 9:17am by DMSman »
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register (4 KB | 1 )
 
IP Logged    
 
     

Paul   Offline
Site Administrator
Switch Technician

*****
Posts: 378
Southern Maine


   
     
 
Re: DMS Scripting in Procomm
Reply #5 - Sep 24th, 2008 at 9:06pm
 
Very cool, I am going to re-install my Procomm and check it out.
 
 
  Paul 256433011082857 3636741 ImmortalMonkey1965 immortalmonkey1
IP Logged    
 
     

Bryan   Offline
Member
**
Posts: 32
I Love Telcom!!


   
     
 
Re: DMS Scripting in Procomm
Reply #6 - Sep 25th, 2008 at 11:52am
 
Awesome!!  Thanks guys!!  I'll upload my DACS disconnect script as well, in case it can help someone in the future.  It's nice to be able to just input what you are x-connecting or disconnecting without having to type the whole TL1 command in.

The con's, don't get me started.  I totally agree with what you wrote.  I had a script that was off by one character that caused a bit of a headache before.  Thankfully it wasn't anything terrible, but it can be a pain in the neck.

When I worked in the cellular world, I always toyed around with the idea of having a script that would build a cell site completely through every table.  I didn't get to it because there was just to many unknown variables to worry about.

Still yet.  Thanks again!!!
 
 
 
IP Logged    
 
     

DMSman   Offline
Established Member
Switch Technician

***
Posts: 95
Ontario, Canada


   
     
 
Re: DMS Scripting in Procomm
Reply #7 - Sep 26th, 2008 at 1:57pm
 
Added a couple new features, they both use MAP no disp commands :

GET CLLI's> Opens Notepad and pastes in your CLLI codes, it will list all or a specific type.

LIST TRKs> again opens notepad and pastes in all the trunk assignments and status for a given CLLI. Its handy to make sure your additions or deletions actually worked.

Caution, don't open another window until its finished or it will paste to whatever window you change the focus to.
 
 
Multimedia File Viewing and Clickable Links are available for Registered Members only!!  You need to Login or Register (6 KB | 2 )
 
IP Logged    
 
     

Bryan   Offline
Member
**
Posts: 32
I Love Telcom!!


   
     
 
Re: DMS Scripting in Procomm
Reply #8 - Sep 26th, 2008 at 2:33pm
 
DMSman wrote on Sep 26th, 2008 at 1:57pm:
Added a couple new features, they both use MAP no disp commands :

GET CLLI's> Opens Notepad and pastes in your CLLI codes, it will list all or a specific type.

LIST TRKs> again opens notepad and pastes in all the trunk assignments and status for a given CLLI. Its handy to make sure your additions or deletions actually worked.

Caution, don't open another window until its finished or it will paste to whatever window you change the focus to.


Awesome.  I've already used the earlier version with succesful results.  Talk about a handy tool to have when your deleting trunks!
 
 
 
IP Logged    
 
     

RyanEOD   Offline
Member
Switch Technician

**
Posts: 19
I Love Telcom!!


   
     
 
Re: DMS Scripting in Procomm
Reply #9 - Oct 1st, 2008 at 9:14am
 
Sadly I can't seem to find my freaking procomm disks . . . and trying to find it online is a beast! Looks like they are finally out of buisness?? And here I was hoping for a Vista version . .
 
 
 
IP Logged    
 
     

DMSman   Offline
Established Member
Switch Technician

***
Posts: 95
Ontario, Canada


   
     
 
Re: DMS Scripting in Procomm
Reply #10 - Oct 1st, 2008 at 12:09pm
 
Yes there hasn't been any development for years, I don't think it was even XP certified although it seems to work most of the time. Its to bad really, the aspect language is quite powerful and its simple to work with. 

I might be able to find you a copy Wink
 
 
 
IP Logged    
 
     

Bryan   Offline
Member
**
Posts: 32
I Love Telcom!!


   
     
 
Re: DMS Scripting in Procomm
Reply #11 - Oct 2nd, 2008 at 11:05am
 
I think in Vista all you have to do is to tell it to run in "XP" compatibility mode or something like that, as I don't use Vista.  There were some problems even in XP early on but it has been since cleared and runs quite well in an XP environment.  I think if you search around online, your bound to find a copy of it somewhere.
 
 
 
IP Logged    
 
     

Chris Hodgkins   Offline
New Member
Translations Technician
Switch Technician
NOC Technician

Posts: 4


   
     
 
Re: DMS Scripting in Procomm
Reply #12 - Apr 7th, 2011 at 7:14pm
 
Not quite the same, but here are some short commands I created to bulk add to Trkmem and C7trkmem

COMMAND VF(VER OFF)
COMMAND GG(ERASE AA BB )
COMMAND EE(AA + 1 -> AA)
COMMAND HH(BB + 1 -> BB)
COMMAND ADDTRK(VF;@3 -> AA;@7 -> BB;REPEAT @1(ADD @2 AA 0 @4 @5 @6 +
BB;EE;HH))
COMMAND C7TRK(VF ;@3 -> AA;@4 -> BB;REPEAT @1( ADD @2 AA BB;EE;HH))
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print  
Bookmarks
Google Digg del.icio.us Facebook reddit Twitter Linked in MySpace StumbleUpon Yahoo