aimonb
Joined: 10 Jun 2008 Posts: 2
|
Posted: Tue Jun 10, 2008 3:04 am Post subject: remove_device.php & remove_graph.php CLI scripts |
|
|
Given the advent of cloud computing and the ultimate reality that servers will disappear forever having the ability to use the CLI to remove devices and graphs has become quite useful. So I have created remove_device.php & remove_graph.php CLI files which i would like to contribute. I used as much as possible the programming style of the add_device.php and add_graph.php files.
I will add the remove_graph.php file soon.
| Code: |
A very simple command line utility to remove a device or multiple devices from Cacti
Remove device usage: remove_device.php --device-id=[device ids]
Required:
--device-id comma separated list of host/device IDs.
List devices usage: remove_device.php --list-devices
List Options:
--list-devices Lists all devices
|
| Description: |
1.0.1 tag. This contains minor fix to help output.
uncompress and drop in the CLI folder in your cacti install |
|
 Download |
| Filename: |
remove_device.php.zip |
| Filesize: |
1.17 KB |
| Downloaded: |
46 Time(s) |
|
|