Skip to content

Instantly share code, notes, and snippets.

morteza morteza-mori

Block or report user

Report or block morteza-mori

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


The following document describes how we can communicate with IBSng API through JSONRPC.

Note that IBSng is capable of handling requests in XML format as well, which in this case the IBSng XMLRPC server is responsible of processing/answering the requests but it is not the purpose of this document

All the samples of this document are implemented with curl command to make it independent of any programming languages.

Each operation in IBSng can be done by calling its appropriate method. The methods are categorized in different sections called handler. All the handlers/methods are described in here. So if we want to refer to a specific method it has the following form: <handler_name>.<method_name>.

For example, if you decide to send the Recharge Users request, you must find its handler and of course its method. In this case, the method is rechargeUsers and its handler is user. So in your reques

View devops
Configuration Management, Orchestration and DevOps
Infrastructure As Code
Introduction to Ansible
Ansible vs. Other CM tools
Introduction to YAML
Ansible and YAML to build your environment
Core Components of Ansible
View Tour
View ide!/editor/local/Monokai
morteza-mori / mikrotik
Created Oct 2, 2018
Mikrotik nslookup
View mikrotik
put [resolve server]
morteza-mori / mongodb
Last active Aug 25, 2018
mongo running /data/db problem
View mongodb
mongod --dbpath /data/<path> --port <port no>
morteza-mori / python autocompletion
Last active Aug 21, 2018
python autocompletion
View python autocompletion
import rlcompleter, readline
morteza-mori / virtualenv
Last active Aug 19, 2018
virtualenv - install
View virtualenv
apt install python3-pip
pip3 install virtualenv
which virtualenv
cd /home/morteza/Desktop/
mkdir python
cd python/
virtualenv test
You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR
View test active directory server
import ldap, sys
LDAP_SERVER = 'ldaps://'
LDAP_BASE = 'ou=Special Users,dc=gandou,dc=test,dc=test,dc=ir'
BIND_USER = 'uid=ibsngproxy,ou=Users,dc=test,dc=test,dc=ir'
BIND_PASSWORD = 'halohalohalo'
ldap.set_option(ldap.OPT_DEBUG_LEVEL, 4095)
l = ldap.initialize(LDAP_SERVER)
You can’t perform that action at this time.