Sample BVE API commands

QUESTION:

What are some example BVE API commands?

 

RESOLUTION:

These commands may be invoked by a member of the 'superusers' group:

#create a new user class
userclass.create "className=First Class", "comment=The way to travel"

# create a new department
department.create "departmentName=acme", "className=First Class", "contactEmail=support@kaseya.com", "contactPhone=888.888.8888", "password=traverse", "passwordVerify=traverse"

# create 2 new dge extensions
dgex.create "dgexName=del-dgex01", "upstreamDgeName=dge-1", "upstreamDgeAddress=10.10.14.159", "description=sanjose", "softLimit=4800", "hardLimit=5000"
dgex.create "dgexName=del-dgex02", "upstreamDgeName=dge-1", "upstreamDgeAddress=10.10.14.159", "description=sanjose", "softLimit=4800", "hardLimit=5000"

# create devices in new department monitored by first dge extension
device.create "devicename=rtr01", "address=10.10.15.253", "devicetype=router", "locationName=del-dgex01:sanjose", "username=acme"
device.create "devicename=rtr02", "address=10.10.15.253", "devicetype=router", "locationName=del-dgex01:sanjose", "username=acme"
device.create "devicename=rtr03", "address=10.10.15.253", "devicetype=router", "locationName=del-dgex01:sanjose", "username=acme"
device.create "devicename=rtr04", "address=10.10.15.253", "devicetype=router", "locationName=del-dgex01:sanjose", "username=acme"
device.create "devicename=rtr05", "address=10.10.15.253", "devicetype=router", "locationName=del-dgex01:sanjose", "username=acme"

# Create ping tests on new devices
test.create "criticalthreshold=100", "devicename=rtr01", "interval=180", "subtype=pl", "testname=Packet Loss", "testtype=ping", "units=%", "warningthreshold=60", "userName=acme"
test.create "criticalthreshold=1500", "devicename=rtr01", "interval=180", "subtype=rtt", "testname=Round Trip Time", "testtype=ping", "units=ms", "warningthreshold=250", "userName=acme"
test.create "criticalthreshold=100", "devicename=rtr02", "interval=180", "subtype=pl", "testname=Packet Loss", "testtype=ping", "units=%", "warningthreshold=60", "userName=acme"
test.create "criticalthreshold=1500", "devicename=rtr02", "interval=180", "subtype=rtt", "testname=Round Trip Time", "testtype=ping", "units=ms", "warningthreshold=250", "userName=acme"
test.create "criticalthreshold=100", "devicename=rtr03", "interval=180", "subtype=pl", "testname=Packet Loss", "testtype=ping", "units=%", "warningthreshold=60", "userName=acme"
test.create "criticalthreshold=1500", "devicename=rtr03", "interval=180", "subtype=rtt", "testname=Round Trip Time", "testtype=ping", "units=ms", "warningthreshold=250", "userName=acme"
test.create "criticalthreshold=100", "devicename=rtr04", "interval=180", "subtype=pl", "testname=Packet Loss", "testtype=ping", "units=%", "warningthreshold=60", "userName=acme"
test.create "criticalthreshold=1500", "devicename=rtr04", "interval=180", "subtype=rtt", "testname=Round Trip Time", "testtype=ping", "units=ms", "warningthreshold=250", "userName=acme"
test.create "criticalthreshold=100", "devicename=rtr05", "interval=180", "subtype=pl", "testname=Packet Loss", "testtype=ping", "units=%", "warningthreshold=60", "userName=acme"
test.create "criticalthreshold=1500", "devicename=rtr05", "interval=180", "subtype=rtt", "testname=Round Trip Time", "testtype=ping", "units=ms", "warningthreshold=250", "userName=acme"

 

 #Create a WMI System Uptime test
test.create "testName=System Uptime", "testType=wmi", "subType=sys_uptime", "deviceName=Traverse Server", "loginName=.\\Administrator", "interval=600", "warningThreshold=7200", "criticalThreshold=1800", "units=", "actionName=None", "thresholdType=descend", "resultProcessDirective=8", "resultMultiplier=100.0", "maxValue=0" ,"wmiProperty=\\Win32_PerfFormattedData_PerfOS_System:SystemUpTime:@", "username=traverse"

APPLIES TO:

All versions of Traverse 

 

REFERENCE:

None

 

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section