These are the built-in remote access functions available to use within the pmpolicy file.
Name | Description |
---|---|
remotefileexists | Check a file exists on a host. |
remotegroupinfo | Check if a group exists on a host. |
remotegrouplist | Get a list of groups from a host. |
remotesysinfo | Get the uname information from a host. |
remoteusergroups | Get a list of a user’s groups on a host. |
remoteuserinfo | Get a user’s information from a host. |
Get a list of users on a host. |
int remotefileexists ( string hostname, string filename )
The remotefileexists function checks whether a filename exists on the remote system hostname.
Returns true if the file exists; otherwise, it returns false.
The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.
print(remotefileexists(runhost,"/etc/passwd"))
list remotegroupinfo ( string hostname, string groupname )
remotegroupinfo returns the group ID and a list of members of the specified group from the remote host.
The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.
#print the bin group info from the runhost print(remoteuserinfo(runhost,"bin"))
list remotegrouplist ( string hostname )
remotegrouplist returns the full list of group names and the associated group IDs located on the remote host.
The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.
#print the remote groups on runhost print(remotegrouplist(runhost))
© 2024 One Identity LLC. ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center