network device discovery - error for unsupported shell

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 02:24 PM
ios is definitely not bourne-shell compatible.
The feature meant to deal with ios is allow unsupported shells. You can add allow_unsupported_shells = true to your probe and it will not assume bourne-shell compatibility: it won't try to set the path, it won't do anything with sudo, it won't handle scripts, etc.
The catch is, probes are stateless and ios is very stateful. I am aware of no way to string commands together in ios.
You might consider looking at patterns.
- Tim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 02:43 PM
So, to give you background on what I am doing/struggling with... I am failing to get Discovery to identify switch port relationships to the devices and mac addresses that are associated. I have read through the docs around l2 discovery here. Under the section "additional" probe called, I had enabled the option but get the error above that the shell is unsupported when I review the ecc queue. I have also added in the allow unsupported shells parameter to the probe but I'm still getting the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2019 05:16 PM
Ravish,
Network device discovery is only really supported by SNMP. What's more then likely happening here is that it has SSH port open so it's trying it first and then giving you that message because the shell isn't supported. From what I remember (and there was a really good indepth article on here somewhere) it's futile effort to try to discover network devices with shell and you should just use SNMP. Hope this helps.