Giter Club home page Giter Club logo

Comments (8)

JumpingYang001 avatar JumpingYang001 commented on May 22, 2024

@gl2014 try run /opt/microsoft/scx/bin/tools/GetLinuxOS.sh , it seems only be called while installation, not very sure.

from scxcore.

gl2014 avatar gl2014 commented on May 22, 2024

Hello, Thanks for your reply. Sorry, copy/paste issue. In my solve description, it's indeed execute '/opt/microsoft/scx/bin/tools/GetLinuxOS.sh', I just corrected it in my comment.
That script updates the scx-release file correctly, a restart of the service seems to be needed for the updated info to be taken into account.
Would it be possible to be checked and updated automatically?

from scxcore.

JumpingYang001 avatar JumpingYang001 commented on May 22, 2024

@gl2014 I checked the code if /etc/opt/microsoft/scx/conf/scx-release doesn't exist and /opt/microsoft/scx/bin/tools/GetLinuxOS.sh, our code will run /opt/microsoft/scx/bin/tools/GetLinuxOS.sh.

every time below providers be queried above code will be triggered.
SCX_UnixProcessStatisticalInformation_Class_Provider.cpp
SCX_Agent_Class_Provider.cpp
SCX_UnixProcess_Class_Provider.cpp

so needn't to restart omi, just queries will be trigger, but need to remove /etc/opt/microsoft/scx/conf/scx-release ... otherwise it will not be triggered.

from scxcore.

gl2014 avatar gl2014 commented on May 22, 2024

Thanks, after deleting the release file, an updated version has been automatically created.
So I just have to schedule a script to compare the scx-release with redhat-release and delete the scx-release if the version doens't match.
That said, the value in the OperatingSystem provider seems not to be updated unless I restart the omi service. Did you mean running a query like '"winrm enumerate http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_UnixProcess?__cimnamespace=root/scx' would have been enough? I tried it but no change.

from scxcore.

JumpingYang001 avatar JumpingYang001 commented on May 22, 2024

@gl2014 I check the code, the updates of OS provider will only be refreshed when OS provider first time loaded in omiagent process:

m_osEnum = new OSEnumeration();
, and as I know if there is no any new query in 2~3 minutes, any provider will be unloaded.

I mean restart omi is way, another way is to wait 2 minutes without any new OS provider query, and the provider will be unloaded, after that you query OS provider again, it will update.

from scxcore.

gl2014 avatar gl2014 commented on May 22, 2024

Hello, thanks for the feedback. I'll schedule check in SCOM comparing the info in scx-release and redhat-release, then if it differs delete the scx-release file and restart omi service

from scxcore.

Klaas- avatar Klaas- commented on May 22, 2024

Hi,
I don't think this is actually fixed, the OS reported in heartbeat won't change unless I delete /etc/opt/microsoft/scx/conf/scx-release and restart the agents

from scxcore.

JumpingYang001 avatar JumpingYang001 commented on May 22, 2024

@Klaas- if there is no this file /etc/opt/microsoft/scx/conf/disablereleasefileupdates, the scx-release will be updated when every time GetLinuxOS.sh is called.
https://github.com/microsoft/pal/blob/master/source/code/scxsystemlib/common/GetLinuxOS.sh#L331

when restart the agents, new queries will come and GetLinuxOS.sh will be called.

from scxcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.