Hi All, Maybe you have an idea on how to accomplish that. I have servers that the ip address of them is 1.140.X.X while the IPMI ip of those servers is 192.140.X.X. I wonder if its possible to create a tool that will open https://192.140.X.X without configuring this IP on each server. If I understand correctly I need to create a function that will return only the number after the first dot and concatenate it with 192 at the beginning,
Thanks fbsdmon That's exactly what I was looking for. I was able to add it in the device appearance and it working perfect. One last thing is how do I add this to the tool? What should be the tool syntax Thanks Again.
Joined: Fri Dec 30, 2011 12:37 am Posts: 28
Not sure if you can. I have no experience with creating tools, but from the examples and my short test to implement your idea, I can say that it is impossible Looks like you can only pass device variables/information to the tools. So, no functions available.
What you could do is, set the IPMI ip address of each device in one of the custom fields of the device settings. This way, you could access the ip address from the tool as a device variable.
Joined: Fri Nov 05, 2010 7:08 am Posts: 104
Location: Toowoomba, Australia
I suggest making a tool that passes the IP address parameter into a VB script. Make a VB script that does the substitution of the first octet of the IP address and then calls whatever application you need using that address.
Not the greatest solution but you could put the ip address in custom field 1 and put this as the command under your new tool... http://[Device.CustomField1]
web192-Tool000160.png [ 15.38 KiB | Viewed 1267 times ]
I tried adding that concatenate string to a function and then putting the function into the command but it didn't seem to work. The call to a vb script or .bat from a tool would probably be the fastest.
Users browsing this forum: No registered users and 5 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum