NonStop Servers
1825766 Members
2268 Online
109687 Solutions
New Discussion

Re: SAFECOM command for filtered info

 
nayrbbizkit
Occasional Contributor

SAFECOM command for filtered info

Hi experts,

is there a way to get a filtered output from safeguard? 

what we want is for safeguard to output only the last-logon of the users in the system. try also the WHERE expression like the FUP program but seems Safecom dont have this feature.

i tried the commands but got syntax error:

SAFECOM

INFO USER TANDEM.*, LAST-LOGON

ILLEGAL SYNTAX; COMMAND NOT EXECUTED.

2 REPLIES 2
Vinky_99
Esteemed Contributor

Re: SAFECOM command for filtered info

@nayrbbizkit 

Good day!

Looks like you're trying to use the SAFECOM utility to retrieve the last logon information for users in the Tandem system. However, based on your provided command, it appears that there might be a syntax error.

To retrieve information about the last logon of users in Safeguard, you may need to use a different syntax. Unfortunately, the specific syntax can vary depending on the system and version you are using.

Here's a general example of how you might structure the command:

SAFECOM "INFO USER TANDEM.*, LAST-LOGON"

However, keep in mind that the actual syntax might differ based on your system. It's recommended to refer to the documentation or help resources for your specific version of Safeguard to get accurate information on the command syntax.

If the WHERE expression is not supported directly in Safeguard, you may need to use additional commands or utilities to filter the output. Alternatively, you might consider using other system tools or scripting languages to process and filter the information after retrieving it with SAFECOM.

Hope this helps!

These are my opinions so use it at your own risk.
nayrbbizkit
Occasional Contributor

Re: SAFECOM command for filtered info

@Vinky_99 

Thank you for reply. Based on the SAFECOM manual looks like the option for INFO is limted only to following:

is one of:
GENERAL
DETAIL
AUDIT
CI
OSS
REMOTEPASSWORD
DEFAULT-PROTECTION
GROUP
OWNER-LIST
ALIAS
TEXT-DESCRIPTION
SECURITY-GROUP1
TIMESTAMPS 

And the WHERE expression is limted to:

WHERE expression
causes the command to apply to only those authentication records for aliases who belong to the groups specified by
expression .
expression has the form:
group [ {AND | OR} group ] ...
CREATION-TIME [AFTER] dd mmm yyyy [, hh:mm ]
CREATION-TIME [BEFORE] dd mmm yyyy [, hh:mm ]

 

Hopefully for the next RVU, HPE will include it to filter the LAST-LOGON and LAST-MODIFIED since it is commonly used for Auditing.