Query Total Active Session on BSS

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Query Total Active Session on BSS

Post by skb007 »

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?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

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.
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Post by skb007 »

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

Enrollment to development program, is it a paid service?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

Yes.

This is because the remote management API allows a user to make own management GUI.
Contact sales@brekeke.com for more details.
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Post by skb007 »

James,

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

Is there any way to get the information without paying additional money?
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

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 ... h-net-snmp

It might meet your requirement but requires a SNMP middleware.
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Post by skb007 »

James,

Appreciate your response.

Following is my snmpd.conf file.

Code: Select all

## <<<<<<<<<<< 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: Select all

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)
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

The path of ondosip.jar is wrong.

/usr/local/apache-tomcat-8.5.34/webapps/sip/WEB-INF/lib/ondosip.jar
skb007
Posts: 152
Joined: Mon Oct 05, 2015 10:22 pm
Location: USA

Post by skb007 »

Thank you for your help.
james
Posts: 501
Joined: Mon Dec 10, 2007 12:56 pm

Post by james »

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
Post Reply