OcNOS DC : System Management Guide : Logging Server Command Reference : VLOG Commands
VLOG Commands
This chapter describes virtual router log (VLOG) commands.
show vlog all
Use this command to display the output of all virtual router log show commands. For column descriptions, refer to descriptions of the individual commands.
Command Syntax
show vlog all
Parameters
None
Default
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
>enable
#show vlog all
 
Type Name FD UserVR AllVrs VRCnt
tty /dev/pts/8 12 vr222 --- 1
tty /dev/pts/4 13 <PVR> --- 1
 
VR-Name VR-Id PVR-Terms VR-Terms LogFile CurSize
<PVR> 0 1 0 /var/local/zebos/log/pvr/my-log 1624320
vr111 1 0 0 n/a n/a
vr222 2 0 1 /var/local/zebos/log/vr222/log-vr222 0
vr333 3 0 0 /var/local/zebos/log/vr333/log-vr333 0
 
Name Id MsgCnt ConTime ReadTime
NSM 1 1 Fri May-15 21:05:04 Fri May-15 21:05:04
IMI 19 1 Fri May-15 21:05:02 Fri May-15 21:05:02
show vlog clients
Use this command to display all attached virtual router log clients (protocol modules).
Command Syntax
show vlog clients
Parameters
None
Default
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
>enable
#show vlog clients
 
Name Id MsgCnt ConTime ReadTime
NSM 1 1 Fri May-15 21:05:04 Fri May-15 21:05:04
IMI 19 1 Fri May-15 21:05:02 Fri May-15 21:05:02
Table P‑2-37 explains the output:
Table 2-37: Virtual router log clients
Name
Name of protocol module
Id
Protocol module identifier
MsgCnt
Number of log messages received from protocol module
ConTime
Time the connection was established
ReadTime
Time the last log message was received
show vlog terminals
Use this command to display all active connections where VLOGD is forwarding log output.
Command Syntax
show vlog terminals
Parameters
None
Default
None
Command Mode
Privileged exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
>enable
#show vlog terminals
 
Type Name FD UserVR AllVrs VRCnt
tty /dev/pts/8 12 vr222 --- 1
tty /dev/pts/4 13 <PVR> --- 1
Table P‑2-38 explains the output:
Table 2-38: Virtual router log terminals
Type
Type of terminal
Name
Device name
FD
File descriptor
UserVR
Name of the Virtual Router where in which the user is logged in
AllVRs
Whether the PVR user requested debug output from all VRs
VRCnt
Number of VRs to which a terminal is attached
show vlog virtual-routers
Use this command to display virtual router statistics such as the number of terminals attached.
Command Syntax
show vlog virtual-routers
Parameters
None
Default
None
Command Mode
Privileged exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
>enable
#show vlog virtual-routers
 
VR-Name VR-Id PVR-Terms VR-Terms LogFile CurSize
<PVR> 0 1 0 /var/local/zebos/log/pvr/my-log 1624320
vr111 1 0 0 n/a n/a
vr222 2 0 1 /var/local/zebos/log/vr222/log-vr222 0
vr333 3 0 0 /var/local/zebos/log/vr333/log-vr333 0
Table P‑2-39 explains the output:
Table 2-39: Virtual router statistics
VR-Name
Virtual router name
VR-Id
Virtual router identifier
PVR-Terms
Number of attached PVR terminals
VR-Terms
Number of attached VR terminals
LogFile
Name of VR log file (this column is empty if writing to a log file is disabled)
CurSize
Log file current size