Can anyone point me in the direction of a list of NCM Built-in Macros?
Here is what I got from the NCM scripting guys....
Places where macros can be used
Macros' categories
DateTimeMacros
These will be replaced with current date in different formats:
${DATETIME}
${DATE TIME}
${DATE/TIME}
10-29-2019 2-55 PM
${DATE}
${SHORTDATE}
${SHORT DATE}
10-29-2019
${LONGDATE}
${LONG DATE}
Tuesday, October 29, 2019
${MEDIUMDATE}
${MEDIUM DATE}
29-Oct-19
${LONGTIME}
${LONG TIME}
2-55-48 PM
${MEDIUMTIME}
${MEDIUM TIME}
02-55 PM
${TIME}
${SHORTTIME}
${SHORT TIME}
14-55
${DOW}
${DAY OF WEEK}
${DAYOFWEEK}
Tuesday
${D}
${DAY}
29
${DD}
29 (for example for 5th of it would be 05)
${ABREVIATEDDOW}
${ABREVIATED DAY OF WEEK}
${ABREVIATEDDAYOFWEEK}
Tue
${MONTH}
${M}
10
${MM}
10 (for May it would be 05)
${MMM}
${ABBREVIATEDMONTH}
${ABBREVIATED MONTH}
Oct
${MMMM}
${MONTHNAME}
${MONTH NAME}
October
${DAYOFYEAR}
${DAY OF YEAR}
302
${YEAR2}
${YEAR 2}
${YY}
19
${YEAR4}
${YEAR 4}
${YEAR}
${YYYY}
2019
${H}
${HOUR}
14
${HH}
14 (for 5 AM it would be 05)
${N}
55
${NN}
${MINUTE}
55 (for 5 minutes it would be 05)
${S}
48
${SS}
${SECOND}
48 (for 5 seconds it would be 05)
${AMPM}
${AM/PM}
PM
${CR}
${CRLF}
\r\n
NodeMacros
Values of these macros are taken from NCM_Nodes table in database - Names in square brackets correspond to table's columns
${AGENTIP}
if [ManagedProtocol] is 0 then [AgentIP] else [AgentIPv6]
${CAPTION}
[NodeCaption]
${SYSTEMNAME}
${SYSNAME}
if [SysName] is not empty then [SysName] else same as AGENTIP
${SYSTEMLOCATION}
${SYSLOCATION}
[SysLocation]
${SYSTEMCONTACT}
${SYSCONTACT}
[SysContact]
${DESCRIPTION}
${SYSDESCR}
${SYSTEMDESCRIPTION}
${SYSDESCRIPTION}
[SysDescr]
${SCPSTORAGEADDRESS}
if [Settings.SCPAutoRetriveIP] then [EngineIP] else [Settings.SCPServerAddress]
${STORAGEADDRESS}
if [Settings.TFTPAutoRetriveIP] then [Settings.TFTPServerAddress] else [EngineIP]
${SCPSERVERUSERNAME}
[Settings.SCPUserName]
${PCADDRESS}
${SERVERIP}
${IPADDRESS}
${TFTPSERVER}
${LOCALIP}
[EngineIP]
${HOSTNAME}
${LOCALHOSTNAME}
[EngineServerName]
${TRANSFERPROTOCOL}
[TransferProtocol]
GlobalMacros
every [SettingName] from [NCM_GlobalSettings] can be used as macro - it will be replaced with [SettingValue]
TransferMacros
${CONFIGTYPE}
${[node's ConfigType]}
${STORAGEFILENAME}
[node's ConfigFilename]
${CONFIGTEXT}
[node's Script]
CommandMacros
Every Command from Device Template can be used as macro - ${Command's Name} would be changed to the Command's Value
Bump.
Can any fellow Thwackers help on this please?
I recognize this list. :-)