Podman discovery

Michael Lineba2
Tera Contributor

Looking to see if anyone has a successful discovery of podman and has suggestions of how to do so.     Since it assigns ports dynamically and does not have a process running on the server I am finding it challenging.

 

Any suggestions would be appreciated.

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Michael Lineba2,

 

Discovering Podman within a ServiceNow environment presents challenges due to its dynamic port assignment and the lack of a central process running on the server. However, several approaches can be taken to achieve successful discovery: 
 
1. Leverage Existing Discovery Patterns:
  • Extend Windows OS - Servers Pattern:
    While primarily designed for Windows servers, this pattern might be adaptable to identify Podman containers by analyzing processes within the host operating system. 
     
  • Discovery Task Simulator 9.1:
    This tool can help simulate discovery tasks and test the effectiveness of various configurations. 
     
  • Custom Discovery Script:
    Develop a custom script using scripting languages within ServiceNow to directly query Podman's API or analyze relevant logs. 
     
2. Focus on Port Mapping and Network Traffic:
  • Identify Ports Used by Podman:
    While Podman assigns ports dynamically, understand which port ranges are typically used for containerized applications. 
     
  • Analyze Network Traffic:
    Use tools within ServiceNow to monitor network traffic on the host server and identify patterns related to Podman containers. 
     
  • Use Dynamic Port Discovery:
    ServiceNow offers features to detect dynamically assigned ports. Explore how these features might be used in conjunction with other discovery methods. 
     
3. Utilize the Podman API:
  • Access Podman API:
    Podman provides an API that allows for programmatic access to container information, including ports, running processes, and more.
  • Integrate API Calls:
    Create ServiceNow scripts that call the Podman API to retrieve information about containers.
  • Extract Relevant Data:
    Use the API to extract the necessary information, such as container names, container IDs, and the ports they are listening on. 
     
4. Collaborate with the ServiceNow Community:
  • Idea Portal:
    Submit a request to ServiceNow's Idea Portal to suggest enhancements to ServiceNow's discovery capabilities. 
     
     
    If this is helpful, please hit the thumbs up button and accept the correct solution by referring to this solution; it will be helpful to them.
     
    Thanks & Regards,
    Abbas Shaik