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 Vmanager lP the VManager IP address
  • Queries the manager and prints out the current users listed in the 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 users configuration and reloads into Active area, and prints the user list again

...

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


Code Blocknoformat
VMgr_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