WSMan connection failed due to: Access is Denied. - HP-UX

Hi All,

Let me start with a little bit of a background, I have followed all the steps mentioned on

https://technet.microsoft.com/en-in/library/hh212926.aspx?f=255&MSPPError=-2147217396

http://blogs.technet.com/b/kevinholman/archive/2012/03/18/deploying-unix-linux-agents-using-opsmgr-2012.aspx

https://social.technet.microsoft.com/Forums/en-US/038f88aa-a554-4d37-8bf9-3661ce4bf8c9/ssh-connection-error-hp-ux?forum=operationsmanagerunixandlinux

http://social.technet.microsoft.com/wiki/contents/articles/7375.configuring-sudo-elevation-for-unix-and-linux-monitoring-with-system-center-2012-operations-manager.aspx

It is able to install and monitor fine on the Unix boxes when using the root account, however when we try to use the scom account, it keeps teliing us that "The agent responded to the request but the WSMan connection failed due to: Access is Denied." However using putty i am able to ssh to the UNIX box without issues.

Could you let us know what more should be done, I have also enabled logging on the account, and do see that there is a connection from the SCOM server to the UNIX server, however the access is not given as the creds are read as being invalid.

The following is the code from the sudoers file:

scomuxaa ALL=(root)      NOPASSWD: /bin/sh -c cp /tmp/scx-*/scx.pem /etc/opt/microsoft/scx/ssl/scx.pem; rm -rf /tmp/scx-*; /opt/microsoft/scx/bin/too
ls/scxadmin -restart, \
                                  #/bin/sh -c sh /tmp/scx-*/GetOSVersion.sh; EC=$?; rm -rf /tmp/scx-*; exit $EC, \
                                  #/bin/sh -c  cat /etc/opt/microsoft/scx/ssl/scx.pem, \
                                  #/bin/sh -c  rpm -e scx, \
                                  #/bin/sh -c /usr/sbin/swremove scx, \
                                  #/bin/sh -c echo *, \
                                  #/bin/sh -c /bin/rpm -F --force /tmp/scx-*/scx-1.[0-9].[0-9]-[0-9][0-9][0-9].rhel.[0-9].x[6-8][4-6].rpm; EC=$?; cd /
tmp; rm -rf /tmp/scx-*; exit $EC, \
                                  #/bin/sh -c /bin/rpm -U --force /tmp/scx-*/scx-1.[0-9].[0-9]-[0-9][0-9][0-9].rhel.[0-9].x[6-8][4-6].rpm; EC=$?; cd /
tmp; rm -rf /tmp/scx-*; exit $EC, \
                                  #/opt/microsoft/scx/bin/scxlogfilereader -p, \
                                  #/usr/bin/uncompress -f /tmp/scx-scomuxaa/scx-*; /usr/sbin/swinstall -s /tmp/scx-scomuxaa/scx-* scx; EC=$?; cd /tmp;
rm -rf /tmp/scx-scomuxaa; exit $EC
scomuxaa     ALL=(ALL)       NOPASSWD: ALL, !/usr/bin/su -
Defaults:scomuxaa !requiretty

Could you please help.

Thanks,

Giftson. P

April 29th, 2015 7:23am

Hello,

If you are able to ssh to the computer with your scom account, but get access denied errors with WSMan, it is possible that there is an issue with the PAM settings. Is the scom account a local user or Kerberos user? Can you check /etc/pam.conf for OMI settings, which would be indicated with this comment:

# The configuration of omi is generated by the omi installer

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2015 11:48am

Hi,

Verify that the username and password for agent verification were input correctly and that the user is a valid user on the target host.

--------------------------------------------------------------

G.R.V

  • Proposed as answer by SuperROHIT 20 hours 21 minutes ago
May 26th, 2015 6:46am

Hi,

Verify that the username and password for agent verification were input correctly and that the user is a valid user on the target host.

--------------------------------------------------------------

G.R.V

  • Proposed as answer by SuperROHIT Tuesday, May 26, 2015 10:50 AM
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 10:45am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics