Hello I am trying to do some basic CLI Scripting.
${SystemName}
is resulting in <nodename.domain.local>
I just need the nodename and my script should be ok.
I am invoking the script from the config page drop down menu.
${Caption}
Unfortunately I get the same result as ${SystemName}.
Ultimately that depends what the actual values are for that node.
If both ${Caption} and ${SysName} (same as ${SystemName} macro), provide the same value, then you'll probably need to update the Caption of the nodes enabling you to use the ${Caption} macro, removing the dns zone info. I use a script to do that, removing any dns zones and then capitalizing the captions so myswitch.example.local would become MYSWITCH.
documentation.solarwinds.com/.../ncm-understanding-ncm-macros.htm
Can you please elaborate how you clean the caption data?
There's an example of it here using the SwisPowerShell module in PowerShell.
thwack.solarwinds.com/.../powershell-to-update-captions---what-features-am-i-missing