ntc-templates
ntc-templates copied to clipboard
Aruba AOSCX show system output fails when the uptime contains string "under a minute"
ISSUE TYPE
- Template Issue with error and raw data
TEMPLATE USING
Value Required HOSTNAME (\S+)
Value CONTACT (\S+)
Value LOCATION (\S+)
Value VENDOR (\S+)
Value PRODUCT (.+)
Value SERIAL (\S+)
Value BASE_MAC (\S+)
Value VERSION (\S+)
Value TIME_ZONE (\S+)
Value UPTIME_WEEKS (\d+)
Value UPTIME_DAYS (\d+)
Value UPTIME_HOURS (\d+)
Value UPTIME_MINUTES (\d+)
Start
^Hostname\s+:\s+${HOSTNAME}
^System Description\s+:\s*\S+
^System Contact\s+:\s+${CONTACT}
^System Contact\s+:
^System Location\s+:\s+${LOCATION}
^System Location\s+:
^Vendor\s+:\s+${VENDOR}
^Product Name\s+:\s+${PRODUCT}
^Chassis Serial Nbr\s+:\s+${SERIAL}
^Base MAC Address\s+:\s+${BASE_MAC}
^ArubaOS-CX Version\s+:\s+${VERSION}
^Time Zone\s+:\s+${TIME_ZONE}
^Up Time\s+:\s+${UPTIME_WEEKS}\sweek -> Continue
^.*${UPTIME_DAYS}\s+(day|days) -> Continue
^.*${UPTIME_HOURS}\s+(hour|hours) -> Continue
^.*${UPTIME_MINUTES}\s+(minute|minutes) -> Record
^CPU
^Memory
^-+$$
^\*+$$
^\s*$$
^. -> Error "LINE NOT FOUND"
SAMPLE COMMAND OUTPUT
Hostname : 6300
System Description : FL.10.10.1070
System Contact :
System Location :
Vendor : Aruba
Product Name : JL664A 6300M 24G 4SFP56 Swch
Chassis Serial Nbr : xxxxxxxxxx
Base MAC Address : 001122-334455
ArubaOS-CX Version : FL.10.10.1070
Time Zone : America/Edmonton
Up Time : 2 weeks, 22 hours under a minute
CPU Util (%) : 8
Memory Usage (%) : 25
SUMMARY
On Aruba AOSCX the show system command has the string 'under a minute' as part of the Up Time output which breaks the current template. It is just chance someone will run into this.
STEPS TO REPRODUCE
EXPECTED RESULTS
The output to be parsed successfully
ACTUAL RESULTS
"Error: \"LINE NOT FOUND\". Rule Line: 37. Input Line: Up Time : 2 weeks, 22 hours under a minute."