Code Monkey home page Code Monkey logo

logoutemusers's Introduction

LogoutEMUsers

A NodeJS application for logging out every EM User from CUCM

Description

logoutEMUsers communicates with the Extension Mobility service on CUCM via the Extension Mobility API and tells it to log out every Extension Mobility user on the system. It can be run via CLI or as a scheduled service.

Requirements

logoutEMUsers is written in NodeJS and requires the NodeJS environment installed on the host to run. It also requires an Application User on the CUCM cluster, with the ‘Standard EM Authentication Proxy Rights’ permission group. A server in the CUCM cluster must run the Extension Mobility service and we also need to be able to connect to the service on port 8443.

Installation

The application requires the nodejs framework to be installed. This can be downloaded from https://nodejs.org/en/download/ The LTS version is reccomended. Verify the installation by issuing the command ‘node -v’ from a command prompt. The prompt window needs to be opened after the installation is completed.

Once installed, copy the contents of the logoutEMUSers directory to a directory on the host that will run the application.

Copy the file .env-sample to a new file and rename the copy to .env In a text editor, update the values in the file so the username and password matches the one created on the CUCM, along with the hostname or IP address of the CUCM server running the Extension Mobility service.

In the command line prompt, navigate to the directory where the application is installed. Install the required nodejs libraries by issuing the command ‘npm install’.

Use

In a command line prompt, issue the command ‘node logoutemusers.js’. Verify that the http return code is ‘200’ and that the return XML document reads

<response>  
    <success/>  
</response>

All Extension Mobility users should now be logged off, within a few minutes.

If a failure xml document is returned, check the error code and description agains the documentation at the link above and fix any issues.

<response>  
    <failure>  
        <error code="3">Could not authenticate 'emUser'</error>  
    </failure>  
</response>

logoutemusers's People

Contributors

dependabot[bot] avatar iholck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.