Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
As example I issued the following command on node A #drbdadm role drbd0 it was Primary/Secondary I've issued #echo $? and it returns 0 next I demoted node A to Secondary and now #drbdadm role drbd0 returns Secondary/Secondary but doing #echo $? returns again 0 so looks like there are not exit codes available, if it is, this email turns in a kind implementation request for Linbit developers :-) Thank you for any confirmation Roberto 2013/6/19 Roberto Fastec <roberto.fastec at gmail.com> > Hello to all the list users and to all the Linbit staff too > > I'm reading the DRBD online guide, but I can't find any reference to any > eventual exit code for the drbdadm command > > Mean to manage some batch. > > As example, I have one node that is currently Primary/Secondary > I set it > #drbdadm secondary drbd0 > > on the terminal, the output is > 0:drbd0 Connected Secondary/Secondary UpToDate/UpToDate > > is there any exit code that returns the confirmation that now the > situation is > Secondary/Secondary and hopefully that confirms that the situation is > UpToDate/UpToDate ? > > It would be good as well on 'drbd-overview' command > > Thank you > > Roberto > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130619/58bd7be8/attachment.htm>