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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEC Scripts

Status
Not open for further replies.

CMUK

Technical User
Apr 21, 2016
339
GB
Hi Guys

Does anyone have info on creating scripts?
I am trying to make a basic one for all our installs to save our guys some time.
For changing main CPU address for example to 0.0.0.0 I am doing the below
SET 10-12-0 (0,0,0) 0.0.0.0

Is that correct? it does not seem to alter the programming but I get no error

Calum M
ACSS
 
You are using an incorrect syntax. It should be:
SET<tab>10-12<tab>(0,0,0)<tab>"0.0.0.0"

It is a tab delineated text file. Spaces won't work.

To see the correct format, (if you have the CP10 PcPro) look in :
C:\Program Files (x86)\NEC\SV9100 CP10 PCPro\Unicorn\ENG\15_00\scripts\QA\Other scripts\Default.pcs

I couldn't find that file in the CP20 directory.

Good luck!
 
Just an FYI. I ran that Default.pcs in my SV9100 PcPro and it generated errors for MB's 13-06, 15-28 and some others, which the SV9100 doesn't have. Apparently this Default.pcs file came from a SL2100 or is just a basic standard.
 
Thanks for your help,

I managed to figure it all out and got a little addicted....

Got a few made up for sip trunks and another for virtual loopbacks, should make installs a breeze!

Calum M
ACSS
 
The Tab delineated format may work but I find it much easier to work in Excel and save the files as CSV files then simply change the file extension. In Excel it is far easier to duplicate information and if you know any VBA, you can automate the process. Another good script to write is an F route script for when you have VoIP trunks so that it knows digit lengths of numbers. I've been using scripts for ages on the IPS (forerunner to the 8300) through to the SL/SV ranges and I have even done some for larger systems but had to cheat to use them as there wasn't really a scripting option for those back then.

If you are interested in examples, they can be found here....


Although you will probably have to ask for SL/SV examples to be PMed to you as they could be considered intellectual property by my then employers. There is a script generator in there that I wrote for the IPS that got so big it isn't funny (I found out there is a limit to how big a VBA program can be in Excel) It even produces printable record sheets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top