Highlighted
Absent Member.. Absent Member..
Absent Member..
130 views

processdiscovery failed for sunos

Jump to solution
Hi

Working on UD10.10 on windows 2008

While discovering SUN Solaris server, at the time of host resourcess and application by shell job, getting error like "Filed to discover processes by shell" for Solaris server (SunOS Sun4V)


I checked log and according to that /usr/ucb/ps -auxwwww command is not working on latest solaris servers.

So the command has been changed to /usr/bin/ps but expected output format doesnot match the command output.


/usr/bin/ps ====> output format is as below

PID TTY TIME CMD

7136 pts/1 0:00 ksh

7182 pts/1 0:00 ps


But as per process_discoverer script in discovery resources of data flow probe the output format is as below


@output: PID TT S Time command ===> where S is process state like running, sleeping etc.


Hence as per communication log, it doesnot show processes as output is not as per expected format so unable to discover processes for Solaris servers.


Please let me which script need to change other than process_discoverer script to get process CIs for solaris server.






Relevent log is being pasted as below



<CMD>[CDATA&colon; /usr/bin/ps ; echo ERROR_CODE:$?]</CMD>
<RESULT>[CDATA&colon; PID TTY TIME CMD
7627 pts/2 0:00 ksh
7719 pts/2 0:00 ps
ERROR_CODE:0]</RESULT>
</EXEC>
<log start="12:11:22" severity="debug">Process line 'PID TTY TIME
CMD' does not match the pattern, ignoring</log>
<log start="12:11:22" severity="debug">Process line '7627 pts/2
0:00 ksh' does not match the pattern, ignoring</log>
<log start="12:11:22" severity="debug">Process line '7719 pts/2
0:00 ps' does not match the pattern, ignoring</log>
<log start="12:11:22" severity="debug">Failed to discover processes by
shell
Traceback (most recent call last):
File "TTY_HR_Main", line 167, in DiscoveryMain
ValueError
</log>
<log start="12:11:22" severity="debug">Reporting warning code 143 to
framework.</log>
<log start="12:11:22" severity="debug">Warning message is: Failed to
discover processes by shell</log>



with regards,

Nick

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: processdiscovery failed for sunos

Jump to solution

Hi All,

 

This issue is resolved. We received fix from HP Support for the same and successfully discovered Solaris version 11 process list.

 

 

Thanks to all.

 

 

with regards,

Nick

 

 

View solution in original post

0 Likes
7 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: processdiscovery failed for sunos

Jump to solution

Hello Nick,

 

Could you please let us know what version of Solaris do you have on that server?

 

Regards,

Irina

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: processdiscovery failed for sunos

Jump to solution

Hi,

Please keep in mind, that default "/usr/bin/ps" is System-V tool and it works diffrently thant "/usr/ucb/ps" which is BSD-style. DFP propbe uses the BSDish tool, not the default one. Although they both display process list, they do it quite differently, and hence cannot be used interchangeably.

 

I guess you should consult your unix admins to check why the BSD ps is not working properly.

 

regards

Gregory

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: processdiscovery failed for sunos

Jump to solution

Please check that OS type was discovered properly (at the beggining of comm log).

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: processdiscovery failed for sunos

Jump to solution

Hi,

 

it is Solaris 11 version .

 

And /usr/ucb/ps is not working  with root userid too.  

 

/usr/bin/ps is worked and got output but given output is not as per the format so want to know which scripts need to change to modify the format.

 

Hi Dima,

 

OS type is also discovered properly.

 

 

Please suggest how to achieve process list details for solaris servers.

 

 

with regards,

Nick

 

 

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: processdiscovery failed for sunos

Jump to solution

As Gregory was saying above probe is using  /usr/ucb/ps. Ask your IT to fix that.

The problem: /usr/ucb isn't available in the standard Solaris 11 (Express) installation!

The solution: Install an optionally available package with the following command to get them:

$ pkg add compatibility/ucb
Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: processdiscovery failed for sunos

Jump to solution

Hi,

 

Thanks Dima.

 

 I chekc this option with  SYSADIN.

 

 

with regards,

Nick

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: processdiscovery failed for sunos

Jump to solution

Hi All,

 

This issue is resolved. We received fix from HP Support for the same and successfully discovered Solaris version 11 process list.

 

 

Thanks to all.

 

 

with regards,

Nick

 

 

View solution in original post

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.