Wait time, Examples, Syntax – HP MPX200 Multifunction Router User Manual
Page 87

Enter the date and time in the format ”MM/DD/YYYY HH:MM:SS”.
1
The -time, -find, and -severity keywords are search options that start from the position after -basepos and
-offset
are evaluated and look for a match in the previous direction. If used in combination, they are evaluated in
this order: -time, -find, and then -severity.
2
Setting -previous=-1 or -next=-1 displays all records before or after the current position in the log after evaluating
the -basepos, -offset, -time, -find, and -severity keywords. These two keywords can be used in combination,
but show some duplicate output: first displaying for -next, and then for -previous.
Examples
To view the last five entries in the current log on the router, issue the following command:
c:\> rcli view log -basepos=end -previous=5 /ip=10.0.0.12
[10.0.0.12]
INFO 04/06/2010 20:03:11 UserApp qapisetsnmpparams_1_svc: snmp settings changed
INFO 04/06/2010 20:03:15 UserApp qapisetntpparams_1_svc: NTP configuration changed
INFO 04/06/2010 20:03:19 UserApp qapisetmigrfctargets_1_svc: Configuration Changed
for migration target
INFO 04/06/2010 20:03:19 UserApp qapisethostgroupinfo_1_svc: VPGroup with index 1
Enabled
INFO 04/06/2010 20:03:19 UserApp qapisethostgroupinfo_1_svc: VPGroup with index 2
Enabled
To repeatedly view 20 entries at a time going back through the log, issue the following command:
c:\> rcli view log -prev=20
To view the last 20 entries in a saved log file, issue the following command:
c:\>rcli view log -file=savelog.dat -basepos=end -previous=20
To view the last log entry that has an error severity in a saved file, and then view all remaining
log data from that point to the most recent log entry, issue the following command:
c:\> rcli view log -file=savelog.dat -basepos=end -severity=error
-next=-1
To find the last log record that has restart in the description in a saved file, and then display the
20 previous log records, issue the following command:
c:\> rcli view log -file=savelog.dat -basepos=end -find="restart"
-prev=20
To search the saved log file for a record with a specified timestamp or older, and then display the
previous 20 log records, issue the following command:
c:\> rcli view log -file=savelog.dat -basepos=end -time="08/28/2009
12:34:50" -prev=20
To locate the 150th log record from the start of the saved file, and then display the next 20 log
records, issue the following command:
c:\> rcli view log -file=savelog.dat -basepos=start -offset=150 -next=20
wait time
The wait time command displays a countdown timer to introduce a time delay in scripts that
need to wait.
Syntax
wait time
wait time
87