Ok Harsh, nice that you were able to do that with nm.
For the inventory like you are mentioning about, there's no need to have the access to any such machine(maybe such machine doesn't even exist since it's a kind of an example given right there). So I suggest you to run it either in another guestOS/ VM or in order to test you may run it in localhost as well.
For the tox, I'll be able to give to tell only if you let me know the error that you're getting.
Look to hear from you!