BLOG     |     FORUM
Configuration

Config (top level object)

Access Unbrowse SNMP system configuration and custom store.

Usage Note : You typically use the UnbrowseSNMP.Config object to store user names, passwords, mail server details outside of your script.

 

The top level object to access the agent manager  is called "UnbrowseSNMP.Config"

Creating the top level object 

VBScript

Set Mgr = CreateObject("UnbrowseSNMP.Config")

Ruby

cfg = WIN32OLE.New("UnbrowseSNMP.Config")

Events

None

Properties and Methods

NameParametersAccessDescription
GetProperty

Property Name

returns  Property value

 Get value of a property. A list of properties are shown below the table

 

Well known properties

You can store your scripts data in these properties. You can modify these values using the GUI (Tools > Customize > Repository) then click on the Edit Custom Storage button.


  • security.email_server
  • security.email_server_port
  • security.email_username
  • security.email_password
  • security.db_connectstring
  • security.db_password
  • security.user1
  • security.user2

 

Example

You can store an email server name and password via the Unbrowse User Interface (see above), then in your script, you can access them as properties.

 

Set Cfg = WScript.CreateObject("UnbrowseSNMP.Config")
WScript.Stdout.WriteLine "Email password =  " & Cfg.GetProperty("security.email_password")
WScript.Stdout.WriteLine "DB conn  =  " & Cfg.GetProperty("security.db_connectstring")
WScript.Stdout..WriteLine "DB passw =  " & Cfg.GetProperty("security.db_password")