SunScreen EFS Release 3.0 Reference Manual

Listing Log Macros

Log macros in the primary registry can be displayed using the logmacro sub-command of ssadm edit. Individual macro definitions can be displayed. Also, all Screen-non-specific 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 type to display a specific macro definition, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> 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 type to display all Screen-non-specific definitions, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> 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 type to display all definitions specific to a Screen, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro print sys=slave
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to display all definitions specific to any Screen, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro print sys=
SYS="master" NAME="HQ-routing" VALUE="port
rip src HQ-routers" DESCRIPTION="routing activity in HQ district"
...
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to produce name lists, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro names sys=
SYS="master" NAME="HQ-routing" VALUE="port
rip src HQ-routers" DESCRIPTION="routing activity in HQ district"
...
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to display all Screen-non-specific names, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro names
NAME="mail-only"
NAME="pkts-only"

The following is an example of what you type to display all names specific to a Screen, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro names sys=slave
SYS="slave" NAME="SFO-routing"

The following is an example of what you type to display all names specific to any Screen, while logged in to the primary Screen:


admin% ssadm -r primary edit Initialedit> logmacro names sys=
SYS="master" NAME="HQ-routing"
SYS="slave" NAME="SFO-routing"

The following is an example of what you type to display a specific macro definition, while logged in to the primary 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=slave name=SFO-routing
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to display all Screen-non-specific definitions, while logged in to the primary 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 type to display all definitions specific to a Screen, while logged in to the primary Screen:


admin% ssadm -r secondary logmacro print sys=secondary
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to produce name lists, while logged in to the primary Screen:


admin% ssadm -r secondary logmacro names sys=secondary
SYS="slave" NAME="SFO-routing" VALUE="port
rip src SFO-routers" DESCRIPTION="routing activity in SFO district"
...

The following is an example of what you type to display all Screen-non-specific names, while logged in to the primary Screen:


admin% ssadm -r secondary logmacro names
NAME="mail-only"
NAME="pkts-only"

The following is an example of what you type to display all names specific to a Screen, while logged in to the primary Screen:


admin% ssadm -r secondary logmacro names sys=secondary
SYS="slave" NAME="SFO-routing"