Query Total Active Session on BSS
Moderator: Brekeke Support Team
Query Total Active Session on BSS
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?
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?
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.
> 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.
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.
https://docs.brekeke.com/sip/monitoring ... h-net-snmp
It might meet your requirement but requires a SNMP middleware.
James,
Appreciate your response.
Following is my snmpd.conf file.
When I run snmpwalk, I am getting the following output. What am I doing wrong?
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 >>>>>>>>>>>>#
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)