mgr: GET an attribute value via script

This is the main discussion forum, if the subject that you want to talk about is not listed around here.
Post Reply
WebCF
Member
Posts: 4
Joined: 06 Apr 2018 05:05
Location: Germany

mgr: GET an attribute value via script

Post by WebCF » 06 Apr 2018 05:09

Hi :)

thanks that this forum exists, many useful things in here 8) :)

I have a question regarding mgr scripting. I learned how to record scripts to SET something, but exists a script to GET something?

In fact: I want to change the following script to GET the value instead of change it:

Code: Select all

SET Tsc_IP_subscriber   "1": "153": ""
{
 Ethernet_Address = ""
}
Is that possible?

Thanks in advance ;)

solven
Member
Posts: 21
Joined: 10 Nov 2017 07:20
Location: Haugesund, Norway

Re: mgr: GET an attribute value via script

Post by solven » 06 Apr 2018 09:33

Have you tried the Select function?

I think it would be something like this:

SELECT Ethernet_Address FROM Tsc_IP_subscriber
The idiot who somewhat could.

mgoegel
Member
Posts: 247
Joined: 12 Feb 2007 12:18
Location: Germany

Re: mgr: GET an attribute value via script

Post by mgoegel » 08 Apr 2018 07:03

solven wrote:Have you tried the Select function?

I think it would be something like this:

SELECT Ethernet_Address FROM Tsc_IP_subscriber
I did not try SQL commands here and I don't believe, that this action is possible at all, with mgr.

There is a REST API from OXE R12 and currently a running beta test with an official REST API, which will provide much more functionality.

Regards Mario


Gesendet von iPad mit Tapatalk

WebCF
Member
Posts: 4
Joined: 06 Apr 2018 05:05
Location: Germany

Re: mgr: GET an attribute value via script

Post by WebCF » 08 Apr 2018 11:48

We have R12 afaik. How to activate the API?

EDIT: We have:

Code: Select all

R12.1-m2.300-18-d-ge-c0s1
and get a new R12 update in the next week to fix some issues.

WebCF
Member
Posts: 4
Joined: 06 Apr 2018 05:05
Location: Germany

Re: mgr: GET an attribute value via script

Post by WebCF » 09 Apr 2018 01:51

solven wrote:
06 Apr 2018 09:33
Have you tried the Select function?

I think it would be something like this:

SELECT Ethernet_Address FROM Tsc_IP_subscriber
Just for the records: SELECT produces:

Code: Select all

error: line 4: parse error
error: Compilation: fatal error
I not even believe its a SQL syntax. Hoping for some REST API magic :)

solven
Member
Posts: 21
Joined: 10 Nov 2017 07:20
Location: Haugesund, Norway

Re: mgr: GET an attribute value via script

Post by solven » 09 Apr 2018 03:19

Then check out this in the system doc "PCXRecord_2.3_sd_RESTPAPIGuide_ALESVC58520_01_en".

System level filters, there is a get method.

I thought you meant "just a script to do x" not a "rest api script to do x", my bad.
The idiot who somewhat could.

mgoegel
Member
Posts: 247
Joined: 12 Feb 2007 12:18
Location: Germany

Re: mgr: GET an attribute value via script

Post by mgoegel » 09 Apr 2018 03:40

Hi WebCF,
WebCF wrote:
08 Apr 2018 11:48
We have R12 afaik. How to activate the API?

EDIT: We have:

Code: Select all

R12.1-m2.300-18-d-ge-c0s1
and get a new R12 update in the next week to fix some issues.
then you have to activate the WBM (Web Based Management) and that's it.
As there is no official documentation on it, you have to look into your browsers developer mode and look, how it's done.
It's not very hard.

Regards Mario

mgoegel
Member
Posts: 247
Joined: 12 Feb 2007 12:18
Location: Germany

Re: mgr: GET an attribute value via script

Post by mgoegel » 09 Apr 2018 03:44

solven wrote:
09 Apr 2018 03:19
Then check out this in the system doc "PCXRecord_2.3_sd_RESTPAPIGuide_ALESVC58520_01_en".

System level filters, there is a get method.

I thought you meant "just a script to do x" not a "rest api script to do x", my bad.
This has nothing to do with access to OXE configuration database.
It is an API for access the call recording application.

Mario

WebCF
Member
Posts: 4
Joined: 06 Apr 2018 05:05
Location: Germany

Re: mgr: GET an attribute value via script

Post by WebCF » 09 Apr 2018 04:03

WBM is already activated, and I reverse-engineer their OpenResty-API now.

Thanks for your help!

BTW: The WBM is located at: https://*CallServer_IP*/
Login: mtcl

WBM is mentioned here: http://www.trservices.rs/wp-content/upl ... n_ed01.pdf (Page 29).

Post Reply

Return to “MAIN”