cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ndtrack unable to complete inventory on HP ux server

Team,

Any idea on this issue 

 

 

[Thu May 26 07:21:23 2022 (G, 0)] {23594} ************************************************************
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Program arguments are '/opt/managesoft/libexec/ndtrack -t machine'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Preferences loaded
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Inventory Setting file is '/var/opt/managesoft/tracker/inventorysettings/InventorySettings.xml'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Obtaining semaphore lock (to ensure only one instance is running)...
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Obtained semaphore lock.
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Program version is 'ManageSoft Inventory agent 18.0'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Program path is '/root'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Program build number is '551'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Program user is 'system'
[Thu May 26 07:21:23 2022 (G, 0)] {23594} Inventory tracking started
[Thu May 26 07:21:24 2022 (U, 0)] {23594} QUERY: Gathering inventory
[Thu May 26 07:21:24 2022 (U, 0)] {23594} ----------------
[Thu May 26 07:21:24 2022 (U, 0)] {23594} FlexNet Manager Platform will generate an inventory of hardware and software on your computer.

 

Do you wish to continue?
[Thu May 26 07:21:24 2022 (U, 0)] {23594} ----------------
[Thu May 26 07:21:24 2022 (U, 0)] {23594} RESPONSE: OK

 

[Thu May 26 07:21:27 2022 (G, 0)] {23594} Started tracking hardware
[Thu May 26 07:21:27 2022 (G, 0)] {23594} Loaded HPUXOperatingSystem provider for MGS_OperatingSystem class
[Thu May 26 07:21:27 2022 (G, 0)] {23594} Loaded HPUXProcessor provider for MGS_Processor class
[Thu May 26 07:21:39 2022 (G, 0)] {23594} Loaded HPUXPhysicalMemory provider for MGS_PhysicalMemory class
[Thu May 26 07:21:39 2022 (G, 0)] {23594} Loaded HPUXComputerSystemProduct provider for MGS_ComputerSystemProduct class
[Thu May 26 07:21:39 2022 (G, 0)] {23594} Loaded HPUXBIOS provider for MGS_BIOS class

 

(12) Replies

Hi @durgeshsingh ,

1) Can you check if there is any other process running on the system other than flexera process.
2) check if there are multiple ndtrack process running. If yes, Kill the process and re-trigger the ndtrack. 

You can try updating the config file with low profile to true and trigger the ndtrack and check if it completes. 

Team,

 

I have killed all process including ndtask. But no luck.

ChrisG
By Community Manager Community Manager
Community Manager

I did some searching for any known issues with symptoms like this, but couldn't find anything. This may be something that hasn't been investigated previously.

Have you worked out whether the ndtrack process is crashing, or whether it is hanging? i.e. Does the ndtrack process still exist after the last line of logging that is appearing, or has the process gone away?

Here are some thoughts on troubleshooting steps you might consider to try to get more of a handle on what is going on here:

  1. Run ndtrack with the Inventory diagnostic trace class enabled in the etcp.trace file. For example, commands like the following will enable the tracing settings, run ndtrack to produce tracing in the file /tmp/tracker-trace.log, and then restore previous trace configuration:
    cp /opt/managesoft/etcp.trace /opt/managesoft/etcp.trace.orig
    
    sed -e 's/#+\(Inventory\)$/+\1/g' -e 's/filename=.*/filename=\/tmp\/tracker-trace.log/g' /opt/managesoft/etcp.trace.orig >/opt/managesoft/etcp.trace
    
    /opt/managesoft/libexec/ndtrack -t machine
    
    cp /opt/managesoft/etcp.trace.orig /opt/managesoft/etcp.trace​
  2. Try [temporarily] commenting out (by adding a "#" at the start of the line) either or both of the following provider=... settings in the /var/opt/managesoft/etc/config.ini file to see if inventory gathering will proceed further:
    [ManageSoft\Tracker\CurrentVersion\HP-UX\Hardware\MGS_BIOS]
    
    provider=HPUXBIOS
    
    [ManageSoft\Tracker\CurrentVersion\HP-UX\Hardware\MGS_DiskDrive]
    
    provider=HPUXDiskDrive​

    Commenting out these lines will stop the ndtrack process from gathering data related to the BIOS and disk drives, which is what will be happening around the final lines of the logging you are seeing.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

Hi Chris , 

I have similar issue with ndtrack, it just gets hangs at the  stage ExcludeEmbedFileContentDirectory and for days it remains on same step. 

I tried to comment out this section /var/opt/managesoft/etc/config.ini and reran the cmd ndtrack -t machine ,however there is no luck .

Any other suggestions or thoughts ?

 

[Fri May 20 12:48:47 2022 (G, 0)] {62438} Started tracking software
[Fri May 20 12:48:47 2022 (G, 0)] {62438} Started tracking files
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking looking for files in directories '/'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking looking for files not in directories '/var/spool/postfix/maildrop/;/usr;/vobs;/view;/clearcase;/Clearcase;/tmp;/var/tmp;/var/crash;/var/depot;/home;/applis/etev;/shares;/applis/ergf;/applis/ergk;/share;*/backup;*/oneoffs;/applis/grcp/siebfs;/applis/grcp/actuatefs;/applis/grcp/actuatefs/emission;/applis/grcp/gcl;/applis/grcp/actuatefs/services;/applis/grcp/actuatefs/SGI;/applis/grcp/siebfs81;/applis/mcf*/emission;/applis/mcf*/reception;/applis/mcf*/extraction;/applis/mcf*/injection;/applis/mcf*/archives;/applis/burt/bnk;/share/eur*/gpfsshare;/applis/netapp/eur*/share;/applis/xrcp;/var/tmp/fmw'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking looking for files with names 'jboss-modules.jar;jboss-systems.jar'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking looking for files with extensions 'sys;sys2;swtag;cmptag;lax;swidtag;sig'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking will include file content with extensions 'swidtag'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking will include file content for directories '/'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking will exclude file content for directories '/var/spool/postfix/maildrop/;/usr;/vobs;/view;/clearcase;/Clearcase;/tmp;/var/tmp;/var/crash;/var/depot;/home;/applis/etev;/shares;/applis/ergf;/applis/ergk;/share;*/backup;*/oneoffs;/applis/grcp/siebfs;/applis/grcp/actuatefs;/applis/grcp/actuatefs/emission;/applis/grcp/gcl;/applis/grcp/actuatefs/services;/applis/grcp/actuatefs/SGI;/applis/grcp/siebfs81;/applis/mcf*/emission;/applis/mcf*/reception;/applis/mcf*/extraction;/applis/mcf*/injection;/applis/mcf*/archives;/applis/burt/bnk;/share/eur*/gpfsshare;/applis/netapp/eur*/share;/applis/xrcp;/var/tmp/fmw'
[Fri May 20 12:48:47 2022 (G, 0)] {62438} File tracking looking for files without extensions 'html;txt;dat;log;xml;aud'

@gsc_mysam_sggl - what you're describing these doesn't sound related to the topic being discussed in this thread. You may want to start another thread if you want to get feedback from Community members about this.

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

I have tried but now below is result

[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} ************************************************************
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Program arguments are '/opt/managesoft/libexec/ndtrack -t machine'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Preferences loaded
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Inventory Setting file is '/var/opt/managesoft/tracker/inventorysettings/InventorySettings.xml'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Obtaining semaphore lock (to ensure only one instance is running)...
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Obtained semaphore lock.
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Program version is 'ManageSoft Inventory agent 18.0'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Program path is '/opt/managesoft/bin'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Program build number is '551'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Program user is 'system'
[Mon Jun 6 13:59:09 2022 (G, 0)] {12567} Inventory tracking started
[Mon Jun 6 13:59:10 2022 (U, 0)] {12567} QUERY: Gathering inventory
[Mon Jun 6 13:59:10 2022 (U, 0)] {12567} ----------------
[Mon Jun 6 13:59:10 2022 (U, 0)] {12567} FlexNet Manager Platform will generate an inventory of hardware and software on your computer.

Do you wish to continue?
[Mon Jun 6 13:59:10 2022 (U, 0)] {12567} ----------------
[Mon Jun 6 13:59:10 2022 (U, 0)] {12567} RESPONSE: OK

[Mon Jun 6 13:59:13 2022 (G, 0)] {12567} Started tracking hardware
[Mon Jun 6 13:59:13 2022 (G, 0)] {12567} Loaded HPUXOperatingSystem provider for MGS_OperatingSystem class
[Mon Jun 6 13:59:13 2022 (G, 0)] {12567} Loaded HPUXProcessor provider for MGS_Processor class
[Mon Jun 6 13:59:24 2022 (G, 0)] {12567} Loaded HPUXPhysicalMemory provider for MGS_PhysicalMemory class
[Mon Jun 6 13:59:24 2022 (G, 0)] {12567} Loaded HPUXComputerSystemProduct provider for MGS_ComputerSystemProduct class
[Mon Jun 6 13:59:24 2022 (G, 0)] {12567} Loaded HPUXNetworkAdapterConfiguration provider for MGS_NetworkAdapterConfiguration class
[Mon Jun 6 13:59:26 2022 (G, 0)] {12567} Loaded HPUXVideoController provider for MGS_VideoController class
[Mon Jun 6 13:59:26 2022 (G, 0)] {12567} Loaded UnixSystemEnclosure provider for MGS_SystemEnclosure class
[Mon Jun 6 13:59:26 2022 (G, 0)] {12567} Loaded HPUXComputerSystem provider for MGS_ComputerSystem class

The logging you’re seeing now suggests that the process is getting a little further, but hanging at the "HPUXComputerSystem" step.

For troubleshooting, you could try also commenting out that setting in the config.ini file to see if it makes a difference. (You won’t necessarily get a complete set of inventory being gathered with these configuration changes, but at least it will help you narrow down what is and is not working.)

I may be barking up an entirely wrong tree here, but from looking at some internal details I can see that the inventory gathering logic related to both "HPUXBIOS" and "HPUXComputerSystem" steps share some code which calls the confstr(3C) system call to get partition identity information:

confstr(_CS_PARTITION_IDENT, …)

As a wild guess, another troubleshooting step to do may be to try executing a command line like the following on this computer to see if it successfully returns a value:

getconf CS_PARTITION_IDENT

 

(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

I have tested below command 

But its seems to hang & no output 

 

getconf CS_PARTITION_IDENT 

That's very interesting. Maybe that wild guess has some legs in it! At this point I would be suspecting that whatever is causing the "getconf" process to hang will also be causing the "ndtrack" process to hang.

I'd suggest working with whoever manages this server to see if they can work out what is causing the "getconf CS_PARTITION_IDENT" to hang. If that can be resolved, then I would be hopeful that it will also allow ndtrack to proceed with its work.

BTW - make sure you restore any changes to the /var/opt/managesoft/etc/config.ini file that were made to avoid leaving it in an unusual state.
(Did my reply solve the question? Click "ACCEPT AS SOLUTION" to help others find answers faster. Liked something? Click "KUDO". Anything expressed here is my own view and not necessarily that of my employer, Flexera.)

@durgeshsingh - I assume that you are running a version of HP-UX that is officially supported by Flexera?

Its 

HP-UX 11.31

We are also facing issue, We are not getting IP address. 

We are using ndtrack.sh (version 20.3)to gather inventory but IP address missing inn inventory.