Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nm[host]['osmatch'] does not work #11

Closed
DoktorByte opened this issue Nov 21, 2019 · 1 comment
Closed

nm[host]['osmatch'] does not work #11

DoktorByte opened this issue Nov 21, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DoktorByte
Copy link

In the function "def scan(self, network):" i get the following error:

"KeyError: 'osmatch'"

For this reason, in the function is the except part called and every host has as Description "unknown host".

Here is a example of the nm[host] variable:

{'hostnames': [{'name': 'XXX', 'type': 'PTR'}], 'addresses': {'ipv4': 'XXX', 'mac': '00:50:56:01:0A:CF'}, 'vendor': {'00:50:56:01:0A:CF': 'VMware'}, 'status': {'state': 'up', 'reason': 'arp-response'}}

We see that there is no Key like osmatch there.

@lopes lopes self-assigned this May 26, 2020
@lopes lopes added the bug Something isn't working label May 26, 2020
@lopes
Copy link
Owner

lopes commented May 26, 2020

In future versions Nmap scan will be completely removed from this script, thus it'll read the Nmap output file in XML and use that information to fill the description field in NetBox. See #18 for more information.

@lopes lopes closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants