No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

How to Discover an In-service Host by Using its Network Segment in the Windows OS?

Publication Date:  2012-07-20 Views:  64 Downloads:  0
Issue Description
The IP address of the management network port the S5000 is changed. How to discover the new IP address by using the dos commands and the network segment in the Windows OS?
Alarm Information
None
Handling Process
The following batch-processing command is used:
for /L %i in (100,1,200) do @ping -l 8 -w 100 -n 1 192.168.0.%i|find "Reply"
Note: The for command is a dos cycle command. This case circularly values from 100 to 200 by adding 1 each time. You can scan IP address in the entire network segment by changing the (100,1,200) parameter to (1,1,255). The parameters behind do is the specific cycle command. Ping -l indicates the packet length. -w indicates that the latency unit is millisecond. -n indicates the number of packets. find indicates filtering implementation like grep in the Linux OS. @ indicates echo disabled.
This command is used to scan the entire network segment and then output the IP address of the in-service host.
Root Cause
The batch-processing commands in the Windows OS can be used to discover the changed IP address.
The ping command is executed to detect the in-service host.
The for command is executed to write the script and IP addresses are filtered by using the channel.
The find command is executed to filter IP addresses.
Suggestions
The batch-processing command in the Windows OS has the same effect as the shell script in the Linux OS. A batch-processing command consists of a Windows command and a cycle command. It is efficient to use the batch-processing command to discover the IP address of the in-service host.

END