The CreatorCon Call for Content is officially open! Get started here.

SSH Integration Servicenow to Fedora

arwinblones
Tera Contributor

Hi,

Just want to ask is there someone who already done an integration with ServiceNow using VM Fedora?

Since im trying to make an integration with my VM and getting my VM Details without using the Discovery and Pattern im kind of lost on how can i able to retrieve the informations. I tried to make some scripts (Script Include, Mid Server Script), Scheduled Job, ECC Queue, Credentials, MidServer and Server, and Business Rules. Im not sure if i missed something important but when i run my code i still doesnt get the information that i wanted or any output from my VM details.

2 REPLIES 2

Ravi Gaurav
Giga Sage
Giga Sage

Hi @arwinblones 

Good question . Let me break this down clearly, because this is a very common confusion when someone wants to pull VM details (like CPU, memory, OS info, etc.) into ServiceNow without using OOTB Discovery/Patterns.

1. How ServiceNow Usually Does It

Normally, Discovery + Patterns handle this for you:

  • MID Server sends probes (WMI, SSH, SNMP, API calls, etc.)

  • Results return via ECC Queue back to the instance

  • The Pattern/Probe updates CMDB (cmdb_ci_computer, cmdb_ci_vm_instance, etc.)

Since you want custom integration, you’ll have to replicate part of that manually.

2. What You Need for a Custom Integration

To collect data from your Fedora VM into ServiceNow without Discovery:

  1. MID Server installed (you already did ).

  2. Credentials configured (SSH username/password or key for Fedora).

  3. A way to send commands to Fedora through MID server and collect the results.

    • Option A: Use PowerShell/SSH Command Probe (via mid.server.script.include → SSHCommand API).

    • Option B: Write a Custom Script Include that uses sn_ws.RESTMessageV2 or GlideRecord to talk to an API exposed by your VM.

    • Option C: Use Orchestration Activity Packs (if licensed) to run SSH commands.

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


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

hi @Ravi Gaurav ,

sorry for late response. im currently on the way from ecc_queue -> mid server -> vm -> mid server -> ecc_queue -> cmdb_ci_linux

but im kind of loss in here on the following ecc_queue script on the script include since i dont know what command or what names should i need to use in the ecc_queue.name, ecc_queue.source, ecc_queue.topic.

i always have an error says 

'name' is not recognized as an internal or external command,
operable program or batch file.