Server Uptime and start_date

smfoister
Giga Expert

I have a requirement to display server up time on server forms. I noticed there is a start_date field on linux servers that is getting populated by OOB discovery methods but the start_date field on a Windows machine is left blank.

Are there plans to populate this in the future, or has anyone satisfied this requirement with some other method?

I'm on Madrid Patch 1

1 ACCEPTED SOLUTION

Gotcha!  If you have access to the K19 labs, I did this very thing in patterns.  But be sure to have started with patterns in your discovery, if you have been running with probes and sensors you will want to wait to use patterns till the NY release.

View solution in original post

6 REPLIES 6

Harps1
Giga Guru

You can add an extension section to the windows pattern to populate that OOTB field. Running the command - wmic /node:"Hostname" OS get LastBootUpTime should return the value from the host. From there set the parameter value to the field. 

For the wmic command, What parsing strategy and how is it configured?

doug_schulze
ServiceNow Employee
ServiceNow Employee

Be sure to search the community, you might find your very question asked and answered!

 

https://community.servicenow.com/community?id=community_question&sys_id=cc934765dbd8dbc01dcaf3231f96...

Yah I found that.. it's 6 yrs old and talks about probes.