Max limit for REST sessions reached with SAN Brocade Rest API

Hi.

I configured two our Brocade SANs to be monitored by Rest API and have the same issue on both.

After 15 -20 minutes of SAN scanning, the Max limit for REST sessions reached error is shown in the log and no more data are collected.

Here is part of its log:

2025-11-04 11:40:00: [SAN_A] Cannot login to Rest API! Exiting... 

2025-11-04 11:40:00: [SAN_B] Cannot login to Rest API! Exiting... 

2025-11-04 11:40:00: [SAN_B] JSON body  : {} 

2025-11-04 11:40:00: } 

2025-11-04 11:40:00: } 

2025-11-04 11:40:00:  ] 

2025-11-04 11:40:00:  } 

2025-11-04 11:40:00:   } 

2025-11-04 11:40:00:   "error-module": "rest" 

2025-11-04 11:40:00:   "error-code": 14, 

2025-11-04 11:40:00:   "error-info": { 

2025-11-04 11:40:00:   "error-message": "Max limit for REST sessions reached", 

2025-11-04 11:40:00:   "error-app-tag": "Error", 

2025-11-04 11:40:00:   "error-tag": "operation-failed", 

2025-11-04 11:40:00:   "error-type": "application", 

2025-11-04 11:40:00:  { 

2025-11-04 11:40:00:  "error": [ 

2025-11-04 11:40:00: "errors": { 

2025-11-04 11:40:00: [SAN_B] Request error: { 

2025-11-04 11:40:00: [SAN_B] Request error: 403 Forbidden 

2025-11-04 11:40:00: [SAN_B] POST url     : https://192.168.xxx.yyy/rest/login 

2025-11-04 11:40:00: [SAN_A] JSON body  : {} 

2025-11-04 11:40:00: } 

2025-11-04 11:40:00: } 

2025-11-04 11:40:00:  ] 

2025-11-04 11:40:00:  } 

2025-11-04 11:40:00:   } 

2025-11-04 11:40:00:   "error-module": "rest" 

2025-11-04 11:40:00:   "error-code": 14, 

2025-11-04 11:40:00:   "error-info": { 

2025-11-04 11:40:00:   "error-message": "Max limit for REST sessions reached", 

2025-11-04 11:40:00:   "error-app-tag": "Error", 

2025-11-04 11:40:00:   "error-tag": "operation-failed", 

2025-11-04 11:40:00:   "error-type": "application", 

2025-11-04 11:40:00:  { 


The XorMon creates multiple Rest API connections and after it creates three of them, error rised.

admin> mgmtapp --showsessions

The following is the history of logins to the switch from external applications

(Login Timestamp, IP Address, User Account, Application, SessionId, Current VF, Auth Token, Protocol, UUID):

. . .

The following are the sessions from the external applications that are currently active:


2025/11/04-12:16:05.393245, 192.168.xxx.yyy, Monitor, libwww-perl/6.68, d7764c143b6be7bc694fa38e36d2f905676348694c13dacb757f859b77a27c31, -1, No, HTTPS, None

2025/11/04-12:26:05.464356, 192.168.xxx.yyy, Monitor, libwww-perl/6.68, 8fadb016d776d3e88494bd9761edb0e293a228a003829c1ac408e12102efddf0, -1, No, HTTPS, None

2025/11/04-12:31:05.563756, 192.168.xxx.yyy, Monitor, libwww-perl/6.68, 08d0c000433b1e1e31cce8b5430d3a98d73823e7a443d2c9e90659da9b88c2bb, -1, No, HTTPS, None


Both SANs have the same, standard Rest config with enabled KeepAlive as described at https://xormon.com/install-network.php#SAN-RESTAPI:

admin> mgmtapp --show

 REST Configuration:

    Interface State: Enabled

    Effective Protocol: HTTPS only

    HTTP State: Enabled

    Session Count: 3

 HTTPS Configuration:

    KeepAlive : Enabled

    KeepAliveTimeout : 15sec


Is there something I am missing? Where can be the problem?


Regards,

Zoran

Comments

  • Hi,


    we are aware of this issue and are working to fix it. We will let you know.

  • Hi.


    Super, many thanks!

  • Hi,


    use the following file as a fix:

    https://download.xormon.com/patch/2.0.25-2-gf43bff/SanBrocadeRestApi.pm.gz


    Gunzip it and copy to this path in your Xormon application directory (755, xormon owner):

    /home/xormon/xormon-ng/server-nest/microservices/sanbrcdrestapi/

    -rwxrwxr-x 1 xormon xormon 94960 Nov 19 12:02 SanBrocadeRestApi.pm

    If your web browser gunzips it automatically then just rename it: mv SanBrocadeRestApi.pm.gz SanBrocadeRestApi.pm

    Make sure the filesize is the same as in the example above


    After deploying that file:


    1. restart sanbrcdrestapi microservice

    su - xormon
    cd /home/xormon/xormon-ng/
    ./xormon.sh start sanbrcdrestapi
    


    2. terminate old REST API sessions on the switch if necessary

    https://xormon.com/install-network.php#SAN-RESTAPI

    --> Terminate running REST sessions:

Sign In or Register to comment.