- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 02:40 AM
Hi,
I am working on Helsinki version and discovered Windows and Unix devices. On server form RAM label is in Gb but value appears in Mb. Please help me how to convert Mb value into Gb value before populating the RAM field.
Regards,
Nick
Solved! Go to Solution.
- Labels:
-
Discovery
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2017 03:15 AM
Tried:
if (columns[0] == "MemTotal:")
ram += parseInt(columns[1]) / 1073741824;
...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2017 11:50 PM
Hi,
Thanks Dave.
I got the correct value for Windows server Memory capacity. But unable to get Gb value for Linux server
I checked in Linux-Memory probe and made changes in below line but same is not changinng value. Please suggest.
if (columns[0] == "MemTotal:")
ram += parseInt(columns[1]) / 1048576;
Reggards,
Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2017 03:15 AM
Tried:
if (columns[0] == "MemTotal:")
ram += parseInt(columns[1]) / 1073741824;
...?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2017 12:27 PM
A lot of creative answers here, but I have a simple one for you. Field Transformation: https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/field-administration/...
Literally one of the examples they give for field transformation is for RAM. You set a small script on the field so that it converts post-discovery. Easy to maintain and you do not need to customize Discovery.