Anyone know how to configure the saved job result to NOT overwrite the previously saved job result file??? Looking to schedule this and not have to manually edit the NCM job every day to manually change the saved job log file name.
NCM 7.3
Thank ya!
Why not just use Real Time Change Detection? You can probably use ${YYYY}_${MM}_${DD}_${Time} to add a timestamp. Not certain, so give it a whirl
However, RTCD is the way to go and nightly jobs should just be catch alls.
Tim,
I am using Real Time Change Notifications currently…receiving the daily emails. However, our compliance dept. is requesting we have a historical log of these changes. That said, the nightly config backup has the “change notification” built in where it will save the log to a server, etc.. This is the dilemma as each night it overwrites the previous log. I’m looking to have this log NOT overwrite and possibly change the name to include the birthdate.
Can you clarify how using RTCD will replace the need for the logs? I am curious if I am not understanding this service.
Thank you kindly!!
Gerald
ohionetadmin,
I had the same issue, each night my job file overwrites the previous file because it was the same name. Tim's suggestion worked for me, use variables with date (and time) in the filename.
Filename:
C:\...show ip arp ${YYYY}_${MM}_${DD}.txt
9/24/2014 was when I upgraded to NCM 7.3.2 from NCM 7.1.1 and "Show ip arp.txt" was being overwritten each day.
Now with the date variable, it will give me a new date/file each day.
http://www.solarwinds.com/cirrusdocs/wwhelp/wwhimpl/js/html/wwhelp.htm?context=CirrusDocs&file=CirrusAGVariables.htm
Search for variables and others will show up as well. I can't find the complete list, but here are some.
Configuration Archive Variables
Cirrus Configuration Manager stores all downloaded configurations in a database. It can also store a copy of them in the configuration archive directory. The directory structure can be specified using any of the previous variables.
Additional variables may also be used when specifying the configuration archive directory. Many of these variables use the localization settings for the current language and region.
Property
Description
DateTime
Local date and time in short date and local time format
Date
Date in short date format
LongDate
Date in long date format
MediumDate
Date in medium date format
Time
Time in short time format
LongTime
Time in long time format
MediumTime
Time in "medium time" format
ShortTime
Time in "short time" format
DOW
Day of the week (spelled out)
D
Day of the month
DD
Day of the month (with leading zero, if needed)
ABREVIATEDDOW
Day of the week in abbreviated format
LocalDow
Day of the week in the local language
Month
Number of the current month
M
MM
Number of the current month (with leading zeros, if needed)
MMM
Abbreviated name of the month
MMMM
Name of the month
LocalMonthName
Name of the month in the local language
DAYOFYEAR
Day number of the year
YYYY
4 digit year
YY
2 digit year
YEAR2
YEAR4
H
Hour
HH
2 digit hour (with leading zero, if needed)
N
Minute
NN
2 digit minute (with leading zero, if needed)
S
Seconds
SS
2 digit seconds (with leading zero, if needed)
AMPM
AM or PM
CRLF
Carriage return - linefeed combination
ConfigType
Type of configuration ( running, startup, etc )
Caption
Caption of the node (NodeCaption)
Node Variables
All fields in the nodes table may be used as variables, including any custom properties added to your nodes.
Nodes Table Field
NodeID
Unique ID assigned to each Network Node
NodeCaption
Displayed name for the node. The default for NodeCaption is a variable. ${SysName}
NodeGroup
Group to which this node belongs. Some group examples includeRouters, Accounting, or simply ${Building}. The last example refers to a custom property named Building.
AgentIP
The IP address used when communicating with the node. A router or server may have many IP addresses. This IP address is the one used when Cirrus Configuration Manager makes SNMP requests or transfers configuration files.
AgentIPSort
Numeric equivalent of the AgentIP. Used for sorting by IP address in reports.
ReverseDNS
Reverse lookup of the AgentIP
ResponseTime
Current response time of the node in milliseconds
ResponseError
OK if the node is responding. Returns an error message if the node is not responding.
Status
Numeric status of the node.
1 = Up
2 = Down
Community
SNMP community string
SNMPLevel
The version of SNMP supported by the Node.
0 = SNMP not supported
1 = SNMP V1
2 = SNMP V2
3 = SNMP V3
SysName
System name of the node.
SysDescr
System description of the node.
SysContact
System contact information collected from the node.
SysLocation
System location information collected from the node.
SystemOID
System OID discovered from the node.
Vendor
Hardware vendor of this network node.
VendorIcon
Name of the vendor icon used.
MachineType
Type of hardware. This information is discovered by SolarWinds Discovery Engine.
LastBoot
Last time the node rebooted.
OSImage
Operating system running on the node
OSVersion
Version of the operating system running on the node
ConfigTypes
Types of configuration files supported by this node
NodeComments
Any comments about this node entered by the user.
NextDiscovery
Time for next complete discovery of this node
NextPoll
Time for next poll (up/down and response time)
Username
Login username
Password
Login password
EnableLevel
Enable level used when transferring configs or running scripts
EnablePassword
Enable level password
ExecProtocol
The protocol used when executing scripts. This is set to${GlobalExecProtocol} by default.
TransferProtocol
The protocol used when downloading configs. This is set to${GlobalTransferProtocol} by default.
Command Script Variables
Command script variables are used within command scripts, as well as within device command templates. For more information on creating command scripts, see “Working with Command Scripts”.
Value used to specify the type of configuration
CR
Carriage return
DownloadConfig
Series of commands used to download a configuration from a device
EnableIdentifier
Only used when a device does not return the "#" symbol at the end of a prompt to indicate enable mode. Value that is displayed while in enable mode for a device.
EnterConfigMode
Series of commands used to enter the configuration mode of a device
ExitConfigMode
Series of commands used to exit the configuration mode of a device
IPAddress
The IP address of the server where Cirrus Configuration Manager is installed
Precommand
Specifies the device requires a pre‑command. For more information and valid pre-command variables, see “Pre-Command Variables”.
Reboot
Series of commands used to reboot the device
RebootAt
Series of commands used to reboot a device at a specified time. Use the variables listed in the “Configuration Archive Variables” section of this section to assign the date and time.
RESET
Series of commands used to set the length and pagination of the session
Running
Value used to specify a running configuration type
SaveConfig
Series of commands used to write the configuration to the devices memory
Startup
Value used to specify a startup configuration type
Version
Series of commands used to display the software version of the device