Hi there,
I attempt to write short bash script to read/write some value from the confD DB.
so I can for example do:
confd_cmd -dd -o -c 'maapi_delete "/lldp/enable"'
confd_cmd -dd -o -c 'mcreate "/lldp/enable"'
to crete/delete an entry regarding lldp.
from confd_cli
I would type in "lldp enable"/"no lldp [enable]"
to perform the same operation .
by reading the ConfD_User_Guide (ver.6.4), ch 16.26.2, http://66.218.245.39/doc/html/ch16.html#d5e8108
I see that I could use maapi
cmd to achieve the same thing (typing the same text as in confd_cli
) from bash. But when I attempt to use it
$ maapi --clicmd "no lldp enable"
Error: no CONFD_MAAPI_USID environment variable found
I also read from http://66.218.245.39/doc/html/rn01re07.html in “ENVIRONMENT VARIABLES” that
The CONFD_MAAPI_USID and CONFD_MAAPI_THANDLE environment variables are automatically set by ConfD when invoking a CLI command
so I assume this should somehow be set automatically. which it isn’t. What am I missing?
Thank you in advance for your help.