Follow

Sample BVE API commands

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"

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.