Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate an Offline SSID with the first and last part of the nodename to allow owner to recognise wich node is down #7

Open
wants to merge 2 commits into
base: generic
Choose a base branch
from

Conversation

rubo77
Copy link

@rubo77 rubo77 commented Nov 11, 2016

No description provided.

@viisauksena
Copy link
Owner

viisauksena commented Nov 11, 2016

mhm, ssid is normaly limited to 32 byte (afaik) , so taking FF_OFFLINE_ (11Byte) so my name=$(nodename status|tail -c 21) but this nodename is a dependency i didnt mention and should in this branch be changed to uname -n like u did, i prefer to keep this script oversimple , so not sure how happy i am with your nodename length calculations

@rubo77
Copy link
Author

rubo77 commented Nov 11, 2016

sure it works, I tested it, if a node name is for example

nodenamewithverymanycharacters

it will result in something like

FF_OFFLINE_nodename..ycharacters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants