Update user defined digitmap from a script

<< < (2/2)

infin8loop:
On an OBi110/100 you can clear the call history by using the following URL

http://your-obi-ip-address/callhistory.htm?item=0

This can be done by typing the URL into a browser or emulating a call to it in a script.

Caution: There is no confirmation prompt and a single page showing "Number of calls in history: 0" will be returned (which could be ignored by a script).

Here is a link to an updated version of a script I posted earlier elsewhere on this forum. This version has an option to clear the call history.

obi-historydumpinatorV2.vbs:  https://www.box.com/s/9vdwpvswrvja3wbkuptd

The script must be configured by editing it:

''**** You must change the following 4 values to your specific configuration

strIP = "192.168.0.40"
''change 192.168.0.40 above to the local IP address of your Obi

strPassword = "obipassword"
''change obipassword above to the password of your local Obi page login

strDirectoryPath = "C:\Call_History"
''change C:\Call_History above to the full path of the directory to save the history files into. The Directory must already exist.

flgClearHistory = "N"
''change N above to Y to clear history after saving (if desired)
''Please test and ensure the script is saving history correctly to the appropriate directory before changing to Y!

''**** You must change the above 4 values to your specific configuration

The script will save the history file as: callhistory_ip_yyyymmdd_hhmmss.xml

Where "ip" will be the last part of the IP address for the Obi (after the last "." in the ip address) followed by date (yyyymmdd) and time (hhmmss) saved.  I have two OBi110's, so I have two configured versions of the script, one for each OBi.

As QBZappy said, the resulting XML imports into MS Excel nicely.

"Inator" is inspired by watching too much Phineas and Ferb with my 23 year old daughter. Doofenshmirtz Evil Incorporated.

DeanJunk:
Thanks for the most relevant information:)  I just need to clear the history since I will download a version of it each day and keep my own history.  Using curl to get the XML file works fine until there are more than 50 entries.  Usually it's not just the proper format of the XML file that is the issue.  It's portions of the history missing from the end of the file.  Seems like it just plains stop transferring after x bytes.

I can use my method to retrieve the file and process it (with PERL) and then your URL to wipe the history on the device.  I wish I could find a way to dismiss/acknowledge the confirmation popup through curl.  Then my whitelist/blacklist process would be fully automated by updating the digitmaps in the same process:)

I'm running Linux, so anything VB isn't an option for me.

Thanks again!

Navigation

[0] Message Index

[*] Previous page