Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Query Total Active Session on BSS
Author Message
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Thu May 14, 2020 7:57 am    Post subject: Query Total Active Session on BSS Reply with quote

1. Brekeke Product Name and Version:3.8

2. Java version:1.8

3. OS type and the version:RHEL7

4. UA (phone), gateway or other hardware/software involved:NA

5. Your problem:

I would like to know total active sessions on the BSS without logging into the web. I have an external application thru which I would like to graph the BSS session usage.

Any there any way that I can post a request to BSS's IP address and it responds with the total number of active sessions.

BSS-->system-->Tools-->Command-->info

Can the above command be run remotely?

Is there any other way to get this information?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Thu May 14, 2020 9:12 am    Post subject: Reply with quote

There are several ways to get such information without logging into the web.

> Can the above command be run remotely?

Yes.

The information can be obtained over HTTP GET request, SIP or command line.

If you are Brekeke's partner or member of Developer support program, please contact them to ask the API document.
Back to top
View user's profile
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Thu May 14, 2020 3:05 pm    Post subject: Reply with quote

We are not Brekeke's partner, we are not enrolled into any development program.

Enrollment to development program, is it a paid service?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Thu May 14, 2020 5:30 pm    Post subject: Reply with quote

Yes.

This is because the remote management API allows a user to make own management GUI.
Contact sales@brekeke.com for more details.
Back to top
View user's profile
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Mon May 18, 2020 8:40 am    Post subject: Reply with quote

James,

You have mentioned there are several ways to get the information.

Is there any way to get the information without paying additional money?
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Mon May 18, 2020 11:08 am    Post subject: Reply with quote

Please refer to the wiki topic below. There is a sample of "svctl" command and SNMP configuration to get the result of "info" command remotely.

https://docs.brekeke.com/sip/monitoring-brekeke-sip-server-with-net-snmp

It might meet your requirement but requires a SNMP middleware.
Back to top
View user's profile
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Wed May 20, 2020 10:39 pm    Post subject: Reply with quote

James,

Appreciate your response.

Following is my snmpd.conf file.

Code:

## <<<<<<<<<<< Config Start >>>>>>>>>>>>#
# Agent address
agentaddress    udp:161

## ACCESS_CONTROL
com2sec     BSS   192.168.1.10   public


## GROUPS
group       BSSGroup            v2c                     BSS

##VIEWS
view        BSSView       included       .1.3.6.1.4.1.8072.1.3.1
extend .1.3.6.1.4.1.8072.1.3.1 info /usr/lib/jvm/java-openjdk/bin/java -cp /usr/local/apache-tomcat-8.5.34/webapps/sip/WEB-INF/libondosip.jar svctl localhost info 5

##Grant Access
#     group.name  context model   level   prefix  read        write   notify
access      BSSGroup  ""  any  noauth  exact   BSSView  none    none

## <<<<<< End of config >>>>>>>>>>>>#


When I run snmpwalk, I am getting the following output. What am I doing wrong?

Code:

snmpwalk  -v 2c -c public -O e 192.168.1.10 .1.3.6.1.4.1.8072.1.3.1


NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.1.0 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.2.4.105.110.102.111 = STRING: "/usr/lib/jvm/java-openjdk/bin/java"
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.3.4.105.110.102.111 = STRING: "-cp /usr/local/apache-tomcat-8.5.34/webapps/sip/WEB-INF/libondosip.jar svctl localhost info 5"
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.4.4.105.110.102.111 = ""
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.5.4.105.110.102.111 = INTEGER: 5
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.6.4.105.110.102.111 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.7.4.105.110.102.111 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.20.4.105.110.102.111 = INTEGER: 4
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.2.1.21.4.105.110.102.111 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.3.1.1.4.105.110.102.111 = STRING: "Error: Could not find or load main class svctl"
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.3.1.2.4.105.110.102.111 = STRING: "Error: Could not find or load main class svctl"
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.3.1.3.4.105.110.102.111 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.3.1.4.4.105.110.102.111 = INTEGER: 1
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.4.1.2.4.105.110.102.111.1 = STRING: "Error: Could not find or load main class svctl"
NET-SNMP-EXTEND-MIB::netSnmpExtendMIB.4.1.2.4.105.110.102.111.1 = No more variables left in this MIB View (It is past the end of the MIB tree)
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Thu May 21, 2020 12:53 pm    Post subject: Reply with quote

The path of ondosip.jar is wrong.

/usr/local/apache-tomcat-8.5.34/webapps/sip/WEB-INF/lib/ondosip.jar
Back to top
View user's profile
skb007
Brekeke Guru


Joined: 05 Oct 2015
Posts: 152
Location: USA

PostPosted: Fri May 22, 2020 8:02 am    Post subject: Reply with quote

Thank you for your help.
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 494

PostPosted: Fri May 22, 2020 10:17 am    Post subject: Reply with quote

As you might recognize, you can kick the command directly from Linux console.

/usr/lib/jvm/java-openjdk/bin/java -cp /usr/local/apache-tomcat-8.5.34/webapps/sip/WEB-INF/lib/ondosip.jar svctl localhost info 5
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1