Skip to content

dsgnr/phpipam-bulk-delete-ips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Delete multiple IPs easily from phpIPAM

It's quite a slow process to delete IP address from phpIPAM. So here's a script to make this a quick process.

phpIPAM credentials

Currently the credentials are not stored within this file (for obvious reasons). You may make a secrets.sh file with your phpIPAM credentials inside.

secrets.sh:

ipam_creds=username:password

How to use this script

  • Set your Subnet ID in the remove.sh file
  • Update the hostname and your 'my_app' name as per the API documentation here
  • Add all the IP addresses from the respective Subnet ID into the ips.txt file
    • If you need to add a range of IPs to the ips.txt file, you can use the ip-range-creator.sh script to create your range quickly.

      Example usage:

      ./ip-range-creator.sh 192.168.1.1 192.168.1.50 > ips.txt
      

      Then run the remove.sh script as normal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages