Unsupported shell '$0'. Supported shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 09:57 AM
Hi Team;
I am trying to discover HPE Blade device through SSH probe, which is giving below error. But when it discover using SNMP it works fine. But our requirement is probe through SSH to get all the config.
Unsupported shell '$0'. Supported shells are [tcsh, csh, ksh, sh, dsh, bash], and Bourne compatible shells in that list are specified by 'mid.ssh.shells_supported' (defaults to [ksh,sh,bash]).
Looking for help on this to fix?
Thanks in Advance.
Balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 10:14 AM
HI @balaji_prusty1 ,
I trust you are doing great.
This error typically occurs when the SSH probe is attempting to connect to the device using a shell that is not supported or recognized by the probe. To resolve this issue, you'll need to ensure that the SSH probe is configured to use one of the supported shells mentioned in the error message.
To specify the supported shells for the SSH probe, you'll need to modify the 'mid.ssh.shells_supported' parameter in the ServiceNow instance. Here's an example of how you can do this using the ServiceNow Script Includes:
// Update SSH probe supported shells
var probe = new SshProbe(); // Replace 'SshProbe' with the actual name of your SSH probe
var supportedShells = ['tcsh', 'csh', 'ksh', 'sh', 'dsh', 'bash']; // Add or remove shells as needed
probe.setParameter('mid.ssh.shells_supported', supportedShells.join(','));
probe.update(); // Save the changes
// Run the SSH probe discovery again
var discovery = new Discovery(); // Replace 'Discovery' with the actual name of your Discovery object
var result = discovery.runProbe(probe); // Replace 'probe' with the actual name of your SSH probe
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2023 04:29 AM
Hi Amit;
As per below KB article, I added 'mid.ssh.shells_supported' in mid-server configuration parameter. But still the same error.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695258
As per your comments, which script include I need to update?
Thanks
Balaji Prusty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2024 11:56 PM
Hi Balaji,
Were you able to resolve this
Unsupported shells error?
Thanks,
Kiran.