BatchPatch Forums Home › Forums › BatchPatch Support Forum › Display IP in grid
- This topic has 5 replies, 5 voices, and was last updated 5 years, 1 month ago by hchntpete.
-
AuthorPosts
-
September 9, 2019 at 8:49 pm #9398ohmusParticipant
I recently upgraded to ver 2019.3.19.15.59 and there is no longer a column displaying the IP address of the host.
I typically import from AD and we have many subnets across multiple offices, so sometimes it helps to move them to other tabs based on IP.
Is there a way to enable it? I haven’t found a setting for it.
September 9, 2019 at 10:38 pm #11698dougModeratorThere was never a column dedicated for displaying the IP address. The behavior didn’t change in the 2019.3.19.15.59 version. There is a Host column where you may enter the hostname, the FQDN, or the IP address. If you ping a host in BP, it will display the IP that is being pinged in the ping reply column. This is how it has always been.
September 11, 2019 at 9:10 am #11705DavidSParticipantCould use the following local command;
wmic /node:$computer nicconfig “IPEnabled=true” get IPAddress
But will give 2 lines, the following works in a cmd prompt, but BP doesn’t like the pipe…
wmic /node:$computer nicconfig where “IPEnabled=true” get IPAddress | find “{“
June 25, 2020 at 4:51 pm #12388cwheeler33Participantis it possible to add a column for IP address in a future release. It would be very helpful to me as well for similar reasons.
the result of something like this powershell:
Test-Connection -ComputerName hostname -Count 1 | Select IPV4AddressIt would return the primary IP of the primary NIC – which is good enough.
Thanks.
June 26, 2020 at 2:32 pm #12394dougModeratorConsidering that you can see the IP in the ‘ping reply’ column when you ping a host, and that you can enter an IP directly into the host column if desired, could you elaborate on why it would be beneficial to have an additional column that displays the IP? What is your use case?
Also btw fyi you can put the following syntax into either a BatchPatch ‘local command’ or into a BatchPatch ‘remote command (logged output)’ to get the result as well:
powershell.exe "Test-Connection -ComputerName $computer -Count 1 | Select IPV4Address"Thanks.
September 17, 2020 at 9:45 am #12516hchntpeteParticipantOne step further, this will return just the IPv4 address without a column header:
powershell.exe "((Test-Connection -ComputerName $computer -Count 1).IPV4Address).IPAddressToString" -
AuthorPosts
- You must be logged in to reply to this topic.