Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

BIG-IQ v. 5.1 automation: Script to import multiple BIG-IPs errors out with "401 Authorization Required"

Hi,

I am using "bulkDiscovery.pl" and my own "data.csv" from https://github.com/carldubois/bigiq-cm-restapi-bulk The csv file has just two BIG-IPs (VIP-1\nVIP-2). The script is run with the following command line args: perl bulkDiscovery.pl -a admin:"PASSWD" -v -l -c data.csv -q admin:"PASSWD"

The following error is displayed-

401 Authorization Required


webd

Further analysis shows the error is from line 302 of the script: my $trustTask = &callCurl ($trustCmd, "Establish trust with $mip", $opt_v);

I have tried to curl the URI (line 301) from the command line with various permutations, but it gives the same error every time.

Any advice would be appreciated.

-Thanks

0
Rate this Question
Comments on this Question
Comment made 15-May-2017 by carldubois

Hi, in 5.1 basic authentication was disabled. You can re enabled by ssh into bigiq shell and "set-basic-auth on". Will need to find cycles to retrieve an authentication token and use it for this script.

0
Comment made 15-May-2017 by carldubois

By the way this was optimized to include re import and is located on the downloads.f5.com site for bigiq.

0
Comment made 16-May-2017 by Shashank Sharma 70

Thank you for the solution, Carl. I have downloaded the latest script from downloads.f5.com and it worked perfectly after "set-basic-auth on" on BIG-IQ.

-Regards, Shashank

1

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

by carldubois-

Hi, in 5.1 basic authentication was disabled. You can re enabled by ssh into bigiq shell and "set-basic-auth on".

0