Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage:
packard:~$ ipcalc -n 192.168.1.0/24
[...]
HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001
HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage:
192.168.1.1
192.168.1.2
[..]
192.168.1.254
Tout ça dans un script BASH
Ceci au moins jusqu'au /16
Il y a bien un debut ici
http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips-
subnet.html
Mais je ne saispas trop par ou continuer...
Auriez-vous un truc dans vos bookmarks?
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
LENHOF Jean-Yves
Le 25/04/2011 22:20, Mihamina Rakotomandimby (R12y) a écrit :
Bonjour,
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage: packard:~$ ipcalc -n 192.168.1.0/24 [...] HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001 HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage: 192.168.1.1 192.168.1.2 [..] 192.168.1.254 Tout ça dans un script BASH Ceci au moins jusqu'au /16
Il y a bien un debut ici http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips- subnet.html
Mais je ne saispas trop par ou continuer... Auriez-vous un truc dans vos bookmarks?
Le 25/04/2011 22:20, Mihamina Rakotomandimby (R12y) a écrit :
Bonjour,
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage:
packard:~$ ipcalc -n 192.168.1.0/24
[...]
HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001
HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage:
192.168.1.1
192.168.1.2
[..]
192.168.1.254
Tout ça dans un script BASH
Ceci au moins jusqu'au /16
Il y a bien un debut ici
http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips-
subnet.html
Mais je ne saispas trop par ou continuer...
Auriez-vous un truc dans vos bookmarks?
Le 25/04/2011 22:20, Mihamina Rakotomandimby (R12y) a écrit :
Bonjour,
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage: packard:~$ ipcalc -n 192.168.1.0/24 [...] HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001 HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage: 192.168.1.1 192.168.1.2 [..] 192.168.1.254 Tout ça dans un script BASH Ceci au moins jusqu'au /16
Il y a bien un debut ici http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips- subnet.html
Mais je ne saispas trop par ou continuer... Auriez-vous un truc dans vos bookmarks?
le 25/04/2011 à 22:20, Mihamina Rakotomandimby a écrit dans le message <ip4l2u$ucd$ :
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage: packard:~$ ipcalc -n 192.168.1.0/24 [...] HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001 HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage: 192.168.1.1 192.168.1.2 [..] 192.168.1.254 Tout ça dans un script BASH Ceci au moins jusqu'au /16
Il y a bien un debut ici http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips- subnet.html
Mais je ne saispas trop par ou continuer... Auriez-vous un truc dans vos bookmarks?
http://packages.debian.org/squeeze/prips
-- Benoit Izac
Bonjour,
le 25/04/2011 à 22:20, Mihamina Rakotomandimby a écrit dans le message
<ip4l2u$ucd$1@cabale.usenet-fr.net> :
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage:
packard:~$ ipcalc -n 192.168.1.0/24
[...]
HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001
HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage:
192.168.1.1
192.168.1.2
[..]
192.168.1.254
Tout ça dans un script BASH
Ceci au moins jusqu'au /16
Il y a bien un debut ici
http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips-
subnet.html
Mais je ne saispas trop par ou continuer...
Auriez-vous un truc dans vos bookmarks?
le 25/04/2011 à 22:20, Mihamina Rakotomandimby a écrit dans le message <ip4l2u$ucd$ :
Avec ipcalc, je peux afficher le HostMin et HostMax d'une plage: packard:~$ ipcalc -n 192.168.1.0/24 [...] HostMin: 192.168.1.1 11000000.10101000.00000001. 00000001 HostMax: 192.168.1.254 11000000.10101000.00000001. 11111110
Maintenant, je cherche à afficher tous les hosts de cette plage: 192.168.1.1 192.168.1.2 [..] 192.168.1.254 Tout ça dans un script BASH Ceci au moins jusqu'au /16
Il y a bien un debut ici http://www.unix.com/shell-programming-scripting/137518-awk-print-all-ips- subnet.html
Mais je ne saispas trop par ou continuer... Auriez-vous un truc dans vos bookmarks?
http://packages.debian.org/squeeze/prips
-- Benoit Izac
Mihamina Rakotomandimby (R12y)
On Mon, 25 Apr 2011 22:38:21 +0200, Benoit Izac wrote:
http://packages.debian.org/squeeze/prips
Mer-ci! :-)
On Mon, 25 Apr 2011 22:38:21 +0200, Benoit Izac wrote: