I just bulk added about 500 client devices (CPE’s) to Observium.  Trying to figure out a bulk way to add them to traffic accounting / billing.  I want to make a bill for each device (customer), based on the device name is fine and then associate a port to the bill.  All of the devices are exactly the same and the name of the port is the same on each.

 

Below would be amazing if this existed.  Or does it?  I would be able to concatenate in Excel right into this.  Like I did to bulk add the devices.

 

./create_bill.php <description> <billing_type> <billing_type> <billing_amount> <billing_day> (customer_reference) (billing_reference) (notes)

 

./add_bill_port.php <description> <device_hostname> <port_name>

(Repeat as necessary)

 

Adding <filename> to the above php scripts, the same way add_device.php has, would be great.

 

Thanks!

 

TRAVIS KREIKEMEIER