I use something like "^ceph(0[1-9])|(1[0-9])$", but in a script that checks a parameter for a "correct" ceph node name like in: wantNum=$1 if [[ $wantNum =~ ^ceph(0[2-9]|1[0-9])$ ]] ; then wantNum=${BASH_REMATCH[1]} Which gives me the number, if it is in the range 02-19 Dunno, if that helps :) Ciao, Uli > On 27. Jan 2023, at 18:17, E Taka <0etaka0@xxxxxxxxx> wrote: > > Hi, > > I wonder if it is possible to define a host pattern, which includes the > host names > ceph01…ceph19, but no other hosts, especially not ceph00. That means, this > pattern is wrong: ceph[01][0-9] , since it includes ceph00. > > Not really a problem, but it seems that the "“host-pattern” is a regex that > matches against hostnames and returns only matching hosts"¹ is not defined > more precisely in the docs. > > 1) https://docs.ceph.com/en/latest/cephadm/host-management/ > _______________________________________________ > ceph-users mailing list -- ceph-users@xxxxxxx > To unsubscribe send an email to ceph-users-leave@xxxxxxx _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx