Ian Dale1709161148 Posted October 27, 2020 Share Posted October 27, 2020 Using Citrix ADC 13.0.67.39. Added an entry into the IP block that contained an ampersand ("&"). Seems it didn't like this. Now when I try to delete the entry I receive the following error message: I cannot add another entry as it says an entry with the same IP address already exists. Is there a way I can manually edit the file from the command line? Any assistance would be greatly appreciated Link to comment Share on other sites More sharing options...
Rhonda Rowland1709152125 Posted October 27, 2020 Share Posted October 27, 2020 Where were you adding the ip block in the GUI? (to better understand the remove command you need) Or show the runningconfig command where it was created: show ns runningconfig | grep <ip> -i And you should be able to remove it from the CLI if the GUI doesn't work. It can be stripped from the config file as a last resort, but I'd try to remove it via cli first. You would still want to know the original cli command reference. Link to comment Share on other sites More sharing options...
Ian Dale1709161148 Posted October 27, 2020 Author Share Posted October 27, 2020 Rhonda, I was adding the IP Block (Private IP Address) via the GUI for the GEO Mapping function. Will run that command and get back to you. Regards, Ian Link to comment Share on other sites More sharing options...
Ian Dale1709161148 Posted October 27, 2020 Author Share Posted October 27, 2020 DOH!!! Apologies. It was not a Citrix ADC but a Citrix ADM 13.0.67.39, Its the Application Delivery Manager. I'm setting up private IP addresses for the Geo Mapping function and I created this entry incorrectly. Apologies for the confusion. What is the table I modify in the ADM CLI for Geo Mapping private IP addresses? Regards, Ian Link to comment Share on other sites More sharing options...
Rhonda Rowland1709152125 Posted October 28, 2020 Share Posted October 28, 2020 Ah. There isn't a cli for ADM. But maybe someone else knows this one :) You might have to go through support if you can't figure out the setting in the GUI. I don't know this exact setting and therefore how to fix it. But I can look on my system later to see if I see a cause and fix. Link to comment Share on other sites More sharing options...
CarlStalhood Posted October 28, 2020 Share Posted October 28, 2020 Does the Nitro API let you delete it? See the Nitro API reference on the Help Center node of the ADM interface menu. Link to comment Share on other sites More sharing options...
Ian Dale1709161148 Posted October 29, 2020 Author Share Posted October 29, 2020 Using Nitro API Worked...YAY!! Here's what I did: First to find out what the record ID actually was. Did this by entering the following URL in a browser: https://<Address of ADM>/nitro/v1/config/ip_block After entering the above it prompted for a username and password. Once entered it then listed all the IP BLOCK entries. It showed the record I was interested in had an id of: "BLAH & BLAH" I then needed to see if I could retrieve this individual record. For that I entered the following URL in a browser: https://<Address of ADM>/nitro/v1/config/ip_block/BLAH & BLAH (NB: I needed to change & to just &) It successfully retrieved the record, something I could not do in the GUI so I new I was onto something. Using powershell I then constructed the following REST API delete request: $Cred = Get-Credential $Url = "https://pnavadm01.nafdanav.com.au/nitro/v1/config/ip_block/BLAH & BLAH" Invoke-RestMethod -Method 'delete' -Uri $url -Credential $Cred Request was successful and returned the following information errorcode : 0 message : Done operation : delete resourceType : ip_block username : BLAH tenant_name : Owner tenant_id : BLAH-SECRET-BLAH resourceName : BLAH & BLAH ip_block : {@{id=BLAH & BLAH}} Thankyou all for your assistance. Regards, Ian 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now