Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
Regular Contributor.. Jungwoo Regular Contributor..
Regular Contributor..
173 views

When i discover inventory, i get message "arguments too long"

When i execute inventory scan schedule, i get message "arguments too long" with below script.

Target server is the linux csh environment.

How can i solve this situation?

perl -e '
use File::Basename;
$d = shift;
-d dirname($d) || print("Path not found\n") && exit 1;
$d =~ s/\s/\\$&/gs;
@files = glob($d);
$count = @files;
for $file (glob($d)){
    if (-l $file and not -e readlink($file)){
        if ($count>1){
            next;
        } else {
            print("Path not found\n") && exit 1;
        }
    }
    print "<==>\n";
    @Stat = stat $file;
    printf("%s <=>\n", $Stat[7]);
printf("%s <=>\n", basename($file));
}' "/root/.discagnt/sca_tmp"

2 Replies
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: When i discover inventory, i get message "arguments too long"

Hi

As you know Linux has a maximum filename length of 255 characters for most filesystems (including EXT4), and a maximum path of 4096 characters.,  so Basename variable for some reazon is to long, so we should check how it was built,  so please open a ticket with support and upload the communication log with the results included and the information of the system

 

Allan Alberto Rojas Vargas

UCMDB Engineer L1

allan-alberto.rojas.vargas @microfocus.com

Microfocus values your feedback regarding your overall Support experience. Contact us at software.satisfaction@microfocus.com or my manager vega@microfocus.com directly

  • Call the HP Response Center at 1-800 633 3600
  • Say, “Existing Case”
  • Enter Case ID
  • Ask for the person taking your call to engage the HP Software Support Engineer.
____________________________
Alan Alberto Rojas
uCMDB Engineer L1
allan-alberto.rojas.vargas @microfocus.com



Highlighted
Regular Contributor.. Jungwoo Regular Contributor..
Regular Contributor..

Re: When i discover inventory, i get message "arguments too long"

Thank you so much.

I opened ticket(ID : SD02435132).

And, I will send log to you soon.

 

Best Regards.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.