Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

This application was added in REL-1.1.0.

Introduction

This basic example script connects to a Manager using the Python library and does the following;

...

:

  • Prompts the user for the VManager IP address
  • Queries the manager and prints out the current users listed in the Config areacreates users configuration parameters
  • Creates a user named user1 (if it does not already exist)
  • Loads the user list into Active area and prints out the list of Active users
  • Deletes the new user just created from Config area, reloads users configuration and reloads into Active area, and prints the user list again

It connects to:

  •  The SmartMesh IP The SmartMesh IP VManager

Running

You can run the "VMgr User Create_UserCreate-Delete.py" application:

  • by By double-clicking on its source files at /vmanager_apps/VMgr User Create_UserCreate-Delete.py (may require additional steps on non-windows OSes)


Code Blocknoformat
VMgr User Create_UserCreate-Delete Example (c) Dust Networks
SmartMesh SDK 1.1.0.1

Enter the IP address of the manager (e.g. 10.70.48.69 ): 10.70.48.35

 The current users in Config are ...
    dust

 Creating a new user called user1


 The current Active users are ...
    dust
    user1

 Deleting the user we just created

 The current Active users are now ...
    dust

 Script ended normally