Log macros in the primary registry can be displayed using the logmacro subcommand of ssadm edit. Individual macro definitions can be displayed. Also, all Screen-nonspecific definitions, or all definitions specific to a Screen, or all definitions specific to any Screen, can be displayed. An abbreviated listing containing just the names of these last three classes of macros can also be generated.
The following is an example of what you would type to display two specific macro definitions, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro print name=mail-only NAME="mail-only" ENABLED VALUE="svc smtp" DESCRIPTION="SMTP mail"... edit> logmacro print sys=secondary name=SFO-routing SYS="secondary" NAME="SFO-routing" VALUE="port rip src SFO-routers" DESCRIPTION="routing activity in SFO district" ... |
The following is an example of what you would type to display all Screen-nonspecific definitions, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro print NAME="mail-only" ENABLED VALUE="svc smtp" DESCRIPTION="SMTP mail" ... NAME="pkts-only" ENABLED VALUE="loglvl pkt" DESCRIPTION="only network packets" ... |
The following is an example of what you would type to display all definitions specific to a Screen, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro print sys=secondary SYS="secondary" NAME="SFO-routing" VALUE="port rip src SFO-routers" DESCRIPTION="routing activity in SFO district" ... |
The following is an example of what you would type to display all definitions specific to any Screen, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro print sys= SYS="primary" NAME="HQ-routing" VALUE="port rip src HQ-routers" DESCRIPTION="routing activity in HQ district" ... SYS="secondary" NAME="SFO-routing" VALUE="port rip src SFO-routers" DESCRIPTION="routing activity in SFO district" ... |
The following is an example of what you would type to display all Screen-nonspecific names, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro names NAME="mail-only" NAME="pkts-only" |
The following is an example of what you would type to display all names specific to a Screen, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro names sys=secondary SYS="secondary" NAME="SFO-routing" |
The following is an example of what you would type to display all names specific to any Screen, while logged in to the primary Screen:
admin% ssadm -r primary edit Initial edit> logmacro names sys= SYS="primary" NAME="HQ-routing" SYS="secondary" NAME="SFO-routing" |
The following is an example of what you would type to display two specific macro definitions, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro print name=mail-only NAME="mail-only" ENABLED VALUE="svc smtp" DESCRIPTION="SMTP mail" ... admin% ssadm -r secondary logmacro print sys=secondary name=SFO-routing SYS="secondary" NAME="SFO-routing" VALUE="port rip src SFO-routers" DESCRIPTION="routing activity in SFO district" ... |
The following is an example of what you would type to display all Screen-nonspecific definitions, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro print NAME="mail-only" ENABLED VALUE="svc smtp" DESCRIPTION="SMTP mail" ... NAME="pkts-only" ENABLED VALUE="loglvl pkt" DESCRIPTION="only network packets" ... |
The following is an example of what you would type to display all definitions specific to a Screen, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro print sys=secondary SYS="secondary" NAME="SFO-routing" VALUE="port rip src SFO-routers" DESCRIPTION="routing activity in SFO district" ... |
The following is an example of what you would type to produce name lists, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro names sys=secondary SYS="secpndary" NAME="SFO-routing" |
The following is an example of what you would type to display all Screen-nonspecific names, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro names NAME="mail-only" NAME="pkts-only" |
The following is an example of what you would type to display all names specific to a Screen, while logged in to the secondary Screen:
admin% ssadm -r secondary logmacro names sys=secondary SYS="secondary" NAME="SFO-routing" |