Hide Forgot
Description of problem: preamble - a config file has been created via the web interface on the satellite server and the system has been subscribed to the correct configuration channel. what works - if you use the webGUI to deploy the config file to the system, an run rhn_check, everything works and the macro is interpreted and the configuration file looks correct. what doesn't work - if you use the exact same config file without changes but you use the rhncfg-manager cli tool on the same client system to get the file using the below command it doesn't interpret the macro: cli command - # rhncfg-manager get -c example-configs /etc/issue -t / config file content: <snip> *** Example Inc. *** No trespassing allowed. IP={|rhn.system.ip_address)|} </snip> Version-Release number of selected component (if applicable): [root@desktop10 config-mgmt]# rpm -q rhncfg-management rhncfg-management-5.9.27-1.el6sat.noarch How reproducible: very :) Steps to Reproduce: as described above... Actual results: [root@desktop10 config-mgmt]# rhncfg-manager get -c example-configs -t / /etc/issue Red Hat Network username: configurator Password: Deploying /etc/issue [root@desktop10 config-mgmt]# cat /etc/issue *** Example Inc. *** No trespassing allowed. IP={|rhn.system.ip_address|} [root@desktop10 config-mgmt]# rhn_check [root@desktop10 config-mgmt]# cat /etc/issue *** Example Inc. *** No trespassing allowed. IP={|rhn.system.ip_address|} [root@desktop10 config-mgmt]# ## DEPOYED VIA WEBGUI ## [root@desktop10 config-mgmt]# rhncfg-manager get -c example-configs -t / /etc/issue Deploying /etc/issue [root@desktop10 config-mgmt]# cat /etc/issue *** Example Inc. *** No trespassing allowed. IP={|rhn.system.ip_address|} [root@desktop10 config-mgmt]# rhn_check [root@desktop10 config-mgmt]# cat /etc/issue *** Example Inc. *** No trespassing allowed. IP=192.168.0.10 Expected results: the macro should be interpreted both ways
Side note - macro's are expanded out on server side, not client side tools.