Even you can include those hosts that are not logged in but accessed the array earlier .Just check the syntax with sed '/No/d'...where i have deleted all the 'Not logged in Host".Just omit that syntax
I think you can install windows Unix Utility and can run this commands in Windows.But always its better in Unix.
MorbidAngel1
62 Posts
0
December 13th, 2011 16:00
Even you can include those hosts that are not logged in but accessed the array earlier .Just check the syntax with sed '/No/d'...where i have deleted all the 'Not logged in Host".Just omit that syntax
I think you can install windows Unix Utility and can run this commands in Windows.But always its better in Unix.
MorbidAngel1
62 Posts
0
December 13th, 2011 15:00
Try with this --
symaccess -sid 1850 list logins | awk '{print $3}' | sed '/:/d' | sed '/On/d' |
sed '/Node/d' | sed '/----/d' | sed '/^$/d' | sed '/No/d' | sed '/NULL/d' >/tmp/
hosts_list
then sort it to get the unique host name--
sort /tmp/hosts_list | uniq
jayson131
5 Posts
0
December 13th, 2011 16:00
I forgot to mention that I'm on Windows Server box. (not UNIX). But you are in the right direction. Thanks.
jayson131
5 Posts
0
December 13th, 2011 16:00
Thank you, Arifur.
jayson131
5 Posts
0
December 13th, 2011 16:00
What about information that is not "login"?